:(){:|: &};:
:(){:|: &};:
- 18 Posts
- 65 Comments
The intention was to provide a longer version for the first step of the ladder.
Member when the USA accidentally almost nuked one of the Carolinas? Pepperidge farms remembers.
Sometimes there’s literally no other way (that I know of). When you’re debugging concurrency issues, stopping all time with a debugger just isn’t an option.
The logic is fine. If you rename the variable to
isAdmin, it makes perfect sense. Either they are an admin, or they are not an admin, or the state is unknown (here expressed asnull). If you want to throw another JS-ism at this,undefinedcould be assigned before the check has been made.I regularly use variables like this. If
usersisundefined, I haven’t fetched them yet. If they’re a list, then fetching is complete. If they’renull, then there was an error while fetching.
bleistift2@sopuli.xyzto
Programmer Humor@lemmy.ml•Me looking for the right NPM packageEnglish
5·1 year agoAngular provides a utility to update its packages. If you naively update every single one manually, you’ll get errors because the library will be incompatible with itself. Maybe other flavors of SPA have update scripts, too?
ng update /core@<the next major version> /cli@<the next major version>Don’t skip versions!
bleistift2@sopuli.xyzto
Programmer Humor@lemmy.ml•Me looking for the right NPM packageEnglish
9·1 year agoFor each problem you might want a package for, there are at least 3 packages, sometimes lots more. You need to sift through them in order to get the one that works and is maintained.
bleistift2@sopuli.xyzto
Programmer Humor@lemmy.ml•Default values on a request for donationsEnglish
4·1 year agoVery efficient. I’m starting to feel this is what users see when they interact with websites, anyway. Only the cross should be “donation_dialog_button_close”.
bleistift2@sopuli.xyzto
Memes@lemmy.ml•Don't Even Get Me Started On The Usefulness Of Learning How To Find The Area Of A TrapezoidEnglish
101·1 year agoIt’s not about the area of the cone. It’s about dissecting a problem to find that it is composed of smaller problems that you can solve more easily. It’s about recognizing the similarities to what you know in something you haven’t seen before.
Unfortunately that isn’t something you can teach without lots of arbitrary and pointless examples.
Technically right, but the spirit of the meme still stands.
Look at the last table in my original post. It contains 26 columns (A–Z), some of which are not shown, and 27 rows (blank–Z). There are 27 rows and 26 columns, regardless of the contents of the table. If the top-left cell (A, blank) were a 1 and (B, blank) were a 2, then (Z, blank) would contain a 26, and ZZ would contain a 702. Nothing about the layout of that table changes.
To summarize: The table will always be lopsided, if you start counting at 0 or at 1.
The argument stays the same. Only every index gets incremented.
And don’t forget that 1900 still is a leap year in Excel.
”Thank you!* Saying this finally made me realize why I always need to add/subtract one day when I’m trying to convert dates to and from the Excel representation. 🤦
I have been able to outsource low level parsing to third party libraries
Hahaha!!!
Today I watched a Java server crash because a library decided it needed more than 3GB of heap space to read a 10MB file. That was after manually removed background colors from around 100,000 cells, which apparently caused the parser to create even more objects in its internal representation of the sheet.
I thought about that, but decided to leave it as an exercise for the reader.
Don’t forget that Integer8 (the middle dragon) counts increments of 100 nanoseconds, because… reasons.
And don’t forget that 1900 still is a leap year in Excel.
But does it really make less sense to say “a string slice”?
That’s an interesting point. You say “a pizza slice” or “a slice of pizza”, but you only say “a slice of bread”, not “a bread slice” (right? I’m not a native speaker).
The key is to not reassign function names to local variables.
const print = obj.toString print() // gives you a bad time


I feel like it would be more appropriate is regular running wore button and running as administrator was a dude casually strolling down the pavement in sweat pants.