

Yeah. My last job, a PR with commented out code typically wouldn’t get approved. Either leave it in version history, or stick it on a branch
Yeah. My last job, a PR with commented out code typically wouldn’t get approved. Either leave it in version history, or stick it on a branch
Yes, being out and visible is helpful. You can form bonds, and get people off the fence when they see they’re not alone, or you’re just people like anyone else. But as I said, that’s not enough on its own.
Without the plausible threat of action, you will be ignored. Action could be violence (eg: throwing a brick at a cop), or economic (eg: we’re all going to stop working for you, we’re all going to stop spending money at your business). But there needs to be something.
When it’s just “we meet up for an hour on saturday, sing, and go then home,” that’s just not very effective on its own. You can sing and dance, but there needs to be a backing of “If you don’t treat us well, we can hurt you” if you want to be taken seriously.
Call the function from the if block.
Now your tests can more easily call it.
I think at my last job we did argument parsing in the if block, and passed stuff into the main function.
This doesn’t seem like a good idea.
One, releasing should be easy. At my last job, you clicked “new release” or whatever on GitHub. It then listed all the commits for you. If you “need” an Ai to summarize the commits, you fucked up earlier. Write better commit messages. Review the changes. Use your brain (something the AI can’t do) to make sure you actually want all of this to go out. Click the button. GitHub runs checks and you’re done.
Most of the time it took a couple minutes at most to do this process.
I read about this concern (for the us) in like 2004 when I took a basic poli sci course in undergrad, and wrote a paper about how climate change is a national security threat. People knew. Most people don’t care or have no power.
They dont usually have benefits (eg: health insurance) or time off
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
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.
Javascript is like Dungeons and dragons. It’s a mess, weighed down by legacy decisions, too heavy in some places and too light in others, and used in far more places than it should be. It also has some diehard fans, and some diehard fans who have never used anything else.
I’ve been saying similarly for ages. We’re all emotional to some degree, but the right wing often turns it up to 11. Facts don’t matter. In-group belonging matters.
I don’t know a better word for it than “Stupid”, but it is deeply what I’d call stupid. Doesn’t care about facts, consistency, outcomes. Just feeling good about being a member of the group.
The oatmeal did a comic about this: https://theoatmeal.com/comics/believe
People are making these decisions. Shitty people. And engineers are implementing it.
Can’t we stop them? Why can’t we stop them? I’m so tired of people going out of their way to make things worse. I just want to backhand someone
I had an argument about this with a friend once. I was saying if we just abolish the police, private enterprise will probably step in to fill the gap. I don’t want that. I don’t want amazon offering policing services (as part of Prime. vomit).
I think the police need to be split up into smaller institutions, and have a lot less murder powers.
Someone needs to address the “Someone broke into my house and stole my TV” problem, without a profit motive and with accountability.
There should be something to address “My neighbor is screaming at his wife and I think he’s hitting her” that doesn’t involve some low empathy assholes with guns rolling up to mock the woman.
I don’t know how to fix this.
The guys in those hypothetical lynch mobs are the cops today.
At least in this scenario you could get your buds and shoot back at the klan fuckers, maybe.
“Use a different language” is a common defense of javascript, but kind of a weird one.