~95% of the JS code you see on the Web has semicolons. Apparently, a lot of programmers think it’s worth that extra keystroke to avoid these types of bugs. I agree with them. The difficulty with programming isn’t “Arrgh, there are too many keystrokes, my hands are tired!” It’s “Arrgh, HTF did this bug get in here?!?”
They made it a named function, but this is literally how you format anonymous functions in js, a key feature that usually gets called with stuff like an onclick or onload call in the html domain.
I use prettier which by default adds semicolons. Coming from predominately doing backend stuff (mostly in Java) I don’t really mind, especially when the formatter adds them for me
Something similar happened to me a while back. I was copying some code from a Mac to a remote Linux host. For some reason the Mac was using a thing called an “en dash” – which is slightly longer than a regular hyphen - and was really fucking frustrating to figure out.
I don’t know why I’m here commenting about this, but I love type, so:
Hyphen (-): the short one, used for hyphenated words. fire-eaters. Close-up.
en-dash (–): slightly longer, traditionally the length of a lowercase"n" in the typeface. Used between for things like a timeframe. 10–11:30, August–October
em-dash (—): the longest of the three, and the length of a lowercase “m”. Used as a punctuation mark to denote a side comment or to abruptly cut off a sentence. “It’s a great punctuation mark—in fact I overuse it—but it’s still useful.” “Hey where are you going with that giant—”
I didn’t bother to double check the definitions, so there might be more specific rules, but these are my rules of thumb.
Some mac apps have some quirks, the default note app was probably not meant for pasting code in, but when you do it changes the quotes and makes them all fancy. Drives me up the wall and there’s nobody to blame but me.
I was looking for this. Some text from webpages end up pasting that way too, even on non-mac systems, and it is utterly infuriating. Nothing I hate more than having to paste something into notepad++ so I can fix all the stupid quotes from some online tutorial that is giving you things to paste into a command prompt.
Definitely not the case. I’ve been doing C# for over 20 years. For the last 6 years I’ve used it to write Linux services exclusively.
The “Java” relation was true 20 years ago, and the “Linux” argument was true 7 years ago. But neither hold any water anymore. It’s a great language and framework to write a wide variety of software with.
I do feel kinda bad for people. There’s very few jobs left where you don’t interact with a computer in some form or another, and the reality is that it’s not for everyone. Of course most people can benefit from using these “tools” but since they’re always upgrading, there keeps being something new to learn.
Personally, I love technology and playing around with new tech. However, if I’m great at sales or a lawyer or something, that’s where I add value, not in knowing how a computer works. So I can see how people get frustrated with it.
In the end it boils down to, pretty much everyone needs IT, but IT doesn’t need everyone. Think about it, when was the last time you worked at a company where an employee didn’t have a computer or need a computer for some task that they do?
Most technology problems would be solved by people having basic problem solving skills. I don’t feel bad for people who don’t “understand” technology while at the same time not putting in the slightest amount of effort to understand. Some people get thrown off by 2FA, and every single 2FA I’ve ever done has had easily followed instructions. People just don’t put in the effort.
On the flip side are IT people who are apparently unable to RTFM. They try 15,000 solutions that logically make sense, exhaust logical options and start doing random shit that’s got almost no chance of working, but never stop to just check the docs.
Personally, I usually try something before going to docs. Sometimes I exhaust all ideas I have before going to the docs. But I never just do random shit until I’ve tried everything that makes sense, read the docs, and asked around the internet (maybe try random stuff while waiting for replies online)
I was mostly kidding, though it depends on the problem itself - if I need an explanation for a function argument, no point testing shit if the docs answer it in 15 seconds. If it’s something more solution-y, I might do some testing before consulting the papers
Everyone who uses a computer has a responsibility to understand the basics of how it works because computer usage is so ubiquitous to daily life, and that’s true regardless of your field.
I have worked(as pedagog and construction) with people that doesn’t give a sit about IT. But are forced to it, and it’s just to document they’re work to bosses ex. So they just do what is needed and if there is a problem it’s not they’re respons to get it working, this must be the guy/lady that forced them to it, BUT they have zero sense to solve it problems.
programmer_humor
Oldest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.