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 hkotsubo
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #284597 |
Post edited: |
— | about 3 years ago |
Edit | Post #284597 | Initial revision | — | about 3 years ago |
Answer | — |
A: What is HEAD in Git? First, we need to understand what a Git repository actually is. For that, refer to this article: it explains that a Git repository is actually a DAG (Directed Acyclic Graph). I'm not going into the mathematical details (which can be checked here), but basically, we can think of a Git repository as a ... (more) |
— | about 3 years ago |
Edit | Post #284596 | Initial revision | — | about 3 years ago |
Question | — |
What is HEAD in Git? In Git documentation, there are lots of references to the term "HEAD". But what exactly is it? Some places refer to it as "a pointer to the current branch". So it's a branch? What is it used for? (more) |
— | about 3 years ago |
Edit | Post #282753 |
Post edited: |
— | about 3 years ago |
Comment | Post #284465 |
@#36363 `div` doesn't work, but `span` and `p` seems to do. Check [this test](https://a.dev.codidact.org/posts/315) I've made on the dev server. (more) |
— | about 3 years ago |
Comment | Post #284444 |
Whether is cheap or not, it depends. If you think it is, then go for it :-)
Just reminding that it's not only one instance, there's also the cost of an extra method call every time you get/set/delete an attribute. If that's not a concern, and you think is worth the convenience of having the syntat... (more) |
— | about 3 years ago |
Comment | Post #284386 |
@#36363 I'm very sorry if I sounded arrogant or offensive. It really wasn't my intention. I've just tried to give constructive feedback - but it seems that I have completely failed, and for that I again sincerely apologize.
Anyway, I stand by my answer. To understand the terminology (bubbling, pro... (more) |
— | about 3 years ago |
Comment | Post #284465 |
If you're just looking for a shorter way to write the left-to-right mark character, there isn't.
Are you editing the HTML directly? Because you can set specific parts of the page to have a different text direction. Ex: `מתודת <span dir="ltr">document.write()</span>` - if the page is configured as ... (more) |
— | about 3 years ago |
Comment | Post #284465 |
@#36363 If you put the text inside HTML, with `dir` attribute set to "rtl", it works: `<div dir="rtl">מתודת document.write()</div>` (at least in the editor's preview it worked, not sure if it will in the rendered post) (more) |
— | about 3 years ago |
Comment | Post #284444 |
Sorry, I meant "additional instance for each dictionary".
(more) |
— | about 3 years ago |
Comment | Post #284444 |
If that's a good idea, it depends on what you need.
Is this functionality (syntatic sugar) worth the overhead of having an additional class for each dictionary you want to wrap? It's hard to tell without knowing the requirements and/or motivations to have such class (it's only syntatic sugar/"ters... (more) |
— | about 3 years ago |
Edit | Post #284424 |
Post edited: Ops, fixing markdown |
— | about 3 years ago |
Suggested Edit | Post #284424 |
Suggested edit: Ops, fixing markdown (more) |
helpful | about 3 years ago |
Edit | Post #284424 |
Post edited: Added code from the answer, rephrased some parts, changed tags |
— | about 3 years ago |
Suggested Edit | Post #284424 |
Suggested edit: Added code from the answer, rephrased some parts, changed tags (more) |
helpful | about 3 years ago |
Comment | Post #284420 |
@#36363 And I apologize for sounding like an accusation, I really didn't mean that. (more) |
— | about 3 years ago |
Comment | Post #284420 |
@#36363 If you have problems with long texts, I'm afraid there's nothing I can do to help. You asked lots of things, and in order to answer everything, it needs a reasonable amount of text (and I also admit I have difficulty to be succint, which makes things even "worse" for you).
It seems we got to... (more) |
— | about 3 years ago |
Comment | Post #284420 |
@#36363 It is - IMO - one of the most confusing things of the language... (more) |
— | about 3 years ago |
Comment | Post #284420 |
Anyway, I'm also a non-native speaker of English, and don't know how to make the answer clearer... Perhaps we both must work on our English skills :-) (more) |
— | about 3 years ago |
Comment | Post #284420 |
@#36363 Well, I would say that JavaScript as a whole is a confusing language. Have you studied about [this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this)? :-) (more) |
— | about 3 years ago |
Comment | Post #284420 |
@#36363 You asked **lots** of things, including many misconceptions and misunderstandings about the language, and there was no way to address all of them with a short answer. Complaining that it's "too long", and saying that due to your junior level you can't understand advanced topics, are wrong rea... (more) |
— | about 3 years ago |
Edit | Post #284420 |
Post edited: |
— | about 3 years ago |
Edit | Post #284420 |
Post edited: |
— | about 3 years ago |
Edit | Post #284420 | Initial revision | — | about 3 years ago |
Answer | — |
A: What problem does innerHTML solves? tl;dr According to the documentation, `innerHTML` property "gets or sets the HTML or XML markup contained within the element". Basically, "that's all", but let's see it in more detail. > It makes the element we work on to be copy-pasted into a new empty document No, the property itself d... (more) |
— | about 3 years ago |
Edit | Post #284419 | Initial revision | — | about 3 years ago |
Answer | — |
A: Are there practical reasons for designing a method-only class/object? It depends. Regarding "grouping functions/methods": as a general rule, you should group things that make sense to be together. Yes, it's a very broad and generic rule, and somewhat subjective. How you group those things, though, depends on a lot of factors. The other answers covered some aspect... (more) |
— | about 3 years ago |
Comment | Post #284415 |
Complementing the comment above, when you set the value of something, you're replacing the old value by the new one, which is the same as changing the value. To me, both words can be used interchangeably - unless there's a special use case where they can differ (in the that case, could you provide th... (more) |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Comment | Post #284386 |
@#36363 As you removed `setInterval`/`setTimeout` from the question, I've also removed that from the answer - and also did a complete rewrite, hope it's more focused now. (more) |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Comment | Post #283058 |
@#53249 I'm kinda ambivalent when it comes to Unicode. I have many rants about it (I believe lots of things could've been done differently), but on the other hand, I don't have a better solution and recognize the huge effort behind it. I love that they could come up with a solution for a complex prob... (more) |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |
Comment | Post #284386 |
@#36363 Anyway, I've updated the answer (but I'll review it again later). Perhaps you should edit the question and make clear what are the exact things that you want to know. Do you want to know how events work, or just the meaning of specific terms (or something else)? I tried to cover everything, ... (more) |
— | about 3 years ago |
Comment | Post #284386 |
@#36363 I had no way to be sure about what you know and what you don't, hence I tried to put everything I thought it was relevant. And, as I said in the answer: "*when I say "events", I'm talking about [this](https://developer.mozilla.org/en-US/docs/Web/API/Event)*" <- this link goes to the relevant ... (more) |
— | about 3 years ago |
Edit | Post #284386 |
Post edited: |
— | about 3 years ago |