Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Zakkâ
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #286405 |
> this is a standardization for writing pseudo code.
Yes,
> for context-free grammars
.
What I have noticed, you are asking different questions on this site. It looks like you are trying to achieve something related to parsing. (more) |
— | over 2 years ago |
Comment | Post #285999 |
@#8176 What about a minimal reproducible example? (more) |
— | over 2 years ago |
Comment | Post #286357 |
@#56529 Good code is simple, clear, unambiguous, self-explanatory and -when possible- short.
That said, if you have
``` javascript
if (condition) {
action1();
} else {
action2();
}
// and nothing goes here
```
you can simplify it like
``` javascript
if (condition) {
ac... (more) |
— | over 2 years ago |
Comment | Post #286307 |
@#56529 You wrote in a [comment](https://software.codidact.com/comments/thread/6166#comment-17183):
> If you meant that it's harmful to use on an entire document than I would agree that it's a problematic approach which can destroy **many passages of content**.
What you asked for was straightfo... (more) |
— | over 2 years ago |
Comment | Post #286065 |
I don't know if this will solve your issue, but I think it's better to call `exit()` after `header()`:
```
header('Location: '.$_SERVER['REQUEST_URI']); // reload
exit();
```
You can make it as a reusable function if you wish:
```
function goto_page(string $page): void
{
header('... (more) |
— | over 2 years ago |
Comment | Post #286306 |
@#56529 Take a look at [this question](https://stackoverflow.com/questions/38872290/how-to-get-pseudo-element). (more) |
— | over 2 years ago |
Edit | Post #286307 |
Post edited: Added a link to the user who helped : ) |
— | over 2 years ago |
Suggested Edit | Post #286307 |
Suggested edit: Added a link to the user who helped : ) (more) |
helpful | over 2 years ago |
Comment | Post #286304 |
You already wrote an answer. No need to (re)write mine. Glad my answer helped! (more) |
— | over 2 years ago |
Comment | Post #286306 |
From [your previous post](https://software.codidact.com/posts/286304), it looks like you have a [XY Problem](https://xyproblem.info/). (more) |
— | over 2 years ago |
Comment | Post #286304 |
> ... **wherever it is in a webpage**, with vanilla JavaScript.
>
> **It doesn't matter where that character would appear**...
>
> ... **Wherever it will appear, it will be deleted.**
The OP used **_wherever_**, **_It doesn't matter where_** and **_Wherever_**. He absolutely means everywhere. ... (more) |
— | over 2 years ago |
Comment | Post #286304 |
One solution would be to use `replace()` on `document.body.innerHTML`:
```
document.body.innerHTML = document.body.innerHTML.replace(/x/g, '*');
``` (more) |
— | over 2 years ago |