What is the freakout?!?!?!?!?!?!?!? Maybe i want to read other people’s code in a wacky comic-looking silly goofy totally awesome monospaced font!?!?!?!
What is the freakout?!?!?!?!?!?!?!? Maybe i want to read other people’s code in a wacky comic-looking silly goofy totally awesome monospaced font!?!?!?!
__LINE__
returns the line of code its on, and 10
means “remainder 10.” Examples:
1 % 10 == 1
...
8 % 10 == 8
9 % 10 == 9
10 % 10 == 0 <-- loops back to 0
11 % 10 == 1
12 % 10 == 2
...
19 % 10 == 9
20 % 10 == 0
21 % 10 == 1
In code, 0
means false
and 1
(and 2
, 3
, 4
, …) means true
.
So, if on line 10, you say:
int dont_delete_database = true;
then it will expand to:
int dont_delete_database = ( 10 % 10 );
// 10 % 10 == 0 which means false
// database dies...
if you add a line before it, so that the code moves to line 11, then suddenly it works:
// THIS COMMENT PREVENTS DATABASE FROM DYING
int dont_delete_database = ( 11 % 10 );
// 11 % 10 == 1, which means true
Thanks :) I didn’t see anyone mention the points made by the svelte guys https://news.ycombinator.com/item?id=35892250 which is a shame since I thought they made better points than the dramatic “type gymnastics” argument haha (i am biased toward type-safety, as long as there is idiomatic, algebraic data types w/ pattern matching)
Overall it sounds like a major change with a few minor/moderate benefits, but it’s their choice and time will tell if it was worth it :P
I’m not really involved in javascript land so im parroting off of what i’ve heard for “why js over ts?”
So mainly: devs who don’t prefer strongly typed languages, and library devs who find typescript to be less transparent and more time consuming for new and old contributors than it’s worth
Mint is great, i’d say stick to it if it’s working! :P
Unless you want to branch out, I don’t think it’s much of a failure to return back home to a “noob distro.” To my eyes no such thing exists, they are just working operating systems and there’s nothing noob or beginner about that
I do use Arch, but because I’ve had bad luck with (proprietary) OS’s in general, so being able to choose exactly what to install and being able to fix it myself (if something ever happens) is something I value a lot. But I will say it takes a delicate type of nerd to handle that 🤣
agreed. r/infp especially, i always felt more at home there (even if my interests are more intp-like)
There’s one for hearing too i think, so while i’m like a 4 when it comes to sight, i feel hearing the sound in my “minds ear” makes up for it. The limit is how much of the song I remember, otherwise i can loop a part of the song as much as I like, and switch to whatever other song I want :) (And not just songs but the sound of my gf’s voice for example. Not as effortless as the songs, but still possible)
i interpreted it as the user’s first DE was gnome :)