Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

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 #284596 Initial revision over 2 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)
over 2 years ago
Edit Post #282753 Post edited:
over 2 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)
over 2 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)
over 2 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)
over 2 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)
over 2 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)
over 2 years ago
Comment Post #284444 Sorry, I meant "additional instance for each dictionary".
(more)
over 2 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)
over 2 years ago
Edit Post #284424 Post edited:
Ops, fixing markdown
over 2 years ago
Suggested Edit Post #284424 Suggested edit:
Ops, fixing markdown
(more)
helpful over 2 years ago
Edit Post #284424 Post edited:
Added code from the answer, rephrased some parts, changed tags
over 2 years ago
Suggested Edit Post #284424 Suggested edit:
Added code from the answer, rephrased some parts, changed tags
(more)
helpful over 2 years ago
Comment Post #284420 @#36363 And I apologize for sounding like an accusation, I really didn't mean that.
(more)
over 2 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)
over 2 years ago
Comment Post #284420 @#36363 It is - IMO - one of the most confusing things of the language...
(more)
over 2 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)
over 2 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)
over 2 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)
over 2 years ago
Edit Post #284420 Post edited:
over 2 years ago
Edit Post #284420 Post edited:
over 2 years ago
Edit Post #284420 Initial revision over 2 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)
over 2 years ago
Edit Post #284419 Initial revision over 2 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)
over 2 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)
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 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)
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Post edited:
over 2 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)
over 2 years ago
Edit Post #284386 Post edited:
over 2 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)
over 2 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)
over 2 years ago
Edit Post #284386 Post edited:
over 2 years ago
Edit Post #284386 Initial revision over 2 years ago
Answer A: What is the main difference between event delegation to other event handling patterns in JavaScript?
tl;dr The purpose of `addEventListener` is to define what happens when an event is triggered at some element. But it also allows us to implement event delegation, due to the bubbling/propagation behaviour. Explaining the terminology Bubbling Suppose I have this HTML: ```html A par...
(more)
over 2 years ago
Edit Post #277341 Post edited:
Linking to relevant (and related) question
over 2 years ago