

I saw that one too and thought similarly!
I saw that one too and thought similarly!
I don’t know about “fine”. It has a lot of weird stuff baked in. Hoisting. Unexpected type coercion. Too many ways to loop over something and I always forget which one is which. “There’s more than one way to do it” is kind of a recurring problem, come to think of it. Several function declaration syntaxes. Dot notation AND bracket notation for objects.
Also it will forever bother me that object keys aren’t quoted.
const foo = "hello";
const bar = { foo: "world" }
That should be, in my mind, { "hello": "world" }
. It’s not. It’s { "foo": "world" }
But if you want to do that, you need to do const bar = { [foo]: world }
. Which looks like your key is an array with one entry, a string with a value of “foo”
You also end up learning a whole framework, with its syntax and idioms, every couple years. Angular. React. Redux. Whatever.
There’s also a lot of people who have never used anything else, and want to use javascript for everything.
Javascript is basically D&D. Wildly popular. Full of legacy jank. People try to use it for anything even though there are better or more specialized tools.
Reminds me of my first big success at work. There was a weekly report that people wanted generated - it showed how much like each operator had done, how much each warehouse had shipped, how many orders we lost from stock issues, etc. it was a low tech company, so they had someone going through the limited UI, looking up each thing one at a time, copying it into excel, and making the report that way. It took hours, and was error prone from stuff like mis-pasting or accidentally skipping a user.
Took a look at it and was like you could definitely automate this. Used some very primitive scripting to pull all the info out of the system’s UI and dump it into a TSV. Took like a couple minutes to run it, import into excel, and add the colors. But it was super janky because it was manipulating the UI like a user instead of, like, directly querying whatever underlying data store it was running on.
Still, management was impressed. I later learned no one actually looked at the report most weeks, so that took some of the wind out of my sails.
This is an ancient joke but they replaced the original pigeon with a blue thing instead. :confused:
Maybe the design is bad, then.
Javascript could throw an error to alert you that the input is supposed to be a string, like most languages would do.
I had an issue with installing mint. Never figured it out. Got the older LTS and it worked fine though. Maybe try a different version?
At one of my old jobs, we had a suite of browser tests that would run on PR. It’d stand up the application, open headless chrome, and click through stuff. This was the final end-to-end test suite to make sure that yes, you can still log in and everything plays nicely together.
Developers were constantly pinging slack about “why is this test broken??”. Most of the time, the error message would be like “Never found an element matching css selector #whatever” or “Element with css selector #loading-spinner never went away”. There’d be screenshots and logs, and usually when you’d look you’d see like the loading spinner was stuck, and the client had gotten a 400 back from the server because someone broke something.
We put a giant red box on the CI/CD page explaining what to do. Where to read the traces, reminding them there’s a screenshot, etc. Still got questions.
I put a giant ascii cat in the test output, right before the error trace, with instructions in a word bubble. People would ping me, “why is this test broken?”. I’d say “What did the cat say?” They’d say “What cat?” And I’d know they hadn’t even looked at the error message.
There’s a kind of learned helplessness with some developers and tests. It’s weird.
true, though sometimes i find the more verbose style easier to read, and more maintainable (eg: you want to do something else in the block, you can just add a line instead of changing your ternary / etc). Small things
Depends on how it’s set up. If the setting is going into the env it’s a string, so I’d expect some sort of
if os.getenv("this_variable", "false").lower() == "true": # or maybe "in true, yes, on, 1" if you want to be weird like yaml
this_variable = True
else:
this_variable = False
Except maybe a little more elegant and not typed on my phone.
But if the instructions are telling the user to edit the settings directly, like where I wrote this_variable=True, they’d need to case it correctly there.
Is the backend Python and the frontend JavaScript? Because then that would happen and just be normal, because Boolean true is True
in python.
I thought mercurial was older than git, but apparently it’s 12 days younger.
I would be absolutely shocked if we had anything approaching justice for what this administration is doing.
We barely got anything for that whole ass insurrection attempt.
I’ve been told violence isn’t the answer and we shouldn’t just shoot nazis and nazi enablers dead.
The way most people change their mind isn’t based on facts or figures, but emotions. Specifically, in-group belonging. For most people, and this certainly includes me and you some of the time, what our in-group believes is more compelling than an out-groups supposed facts.
They see that guy as someone in their group so they believe him. They see you as a bad outside bad bad bad liar, so nothing you say is likely to get through. (This comic is worth reading on this topic: https://theoatmeal.com/comics/believe )
If you want to change someone’s mind, they have to see you as in-group. Not necessarily the same group as what you’re arguing with. We all belong to many groups. American, new yorker, white guy, middle aged, yankees fan, etc etc there are many such slices. Like how you can’t get a republican to recycle by appealing to environmental concerns (because environmentalists are out-group, so fuck them), but you might be able to get them to recycle via something like “only american ingenuity can turn trash into bridges and tanks!”
This takes a lot of time and effort, and if you don’t get them to stop hanging out with the other group, you won’t make any lasting changes.
So I think you’d need a multi prong approach:
All of which takes a lot of time and effort, and your opposite number is basically trying to do the same thing. Except they have fox news, trump, and such in their corner.
And, again, I’m told we definitely shouldn’t just shoot extreme right wingers and other nazi sympathizers dead. Nor should we burn their houses down. If we’re an emergency responder, we definitely shouldn’t let them die while thinking to ourselves “they would let so many die. without a thought, their passing deserves no mourning” or similar.
You should definitely nullify if you’re on a jury and someone allegedly did violence to a shitty ceo or red-hat, though, bu that’s getting off topic.
Windows sure is bad, though I haven’t seen an actual blue-screen in years. That’s some foul luck.
I think at least New York now requires jobs to post a range. I haven’t even seen bullshit like “$50k - $500k” - maybe the law was written strongly enough that they can’t loophole it that way.
Been doing the job search and it’s frustrating how bad most of the job postings are. There’s so much filler nonsense.
I pretty much just want to know like
Some postings are like “must know Java, go, JavaScript, Ruby, Python, or rust” and I’m like do you use all of those?
Many things. I mean, you could hack a lot of stuff into Excel but generally
SQL has foreign keys and integrity checks. You can make it so like if you delete a user it automatically cascades to delete other rows like their addresses.
You can prevent someone from entering the wrong type of data in particular columns. This one’s an integer and that one’s text.
It’s designed to work on larger scales. Excel stops at 1 million rows per spreadsheet, unless my search just gave me AI slop.
You can do queries, for selecting as well as updating and deleting. You can join tables.
It’s much easier for other applications (such as a website) to talk to a SQL database
You can do transactions.
There’s a lot. That’s just off the top of my head.
Anyone entering through web development. If you’re self taught or did a “coding boot camp”, it might be the only language you’ve used. A lot of places use it for backend stuff now, too