Details
-
AboutGrumpy old programmer.
-
SkillsC++, Haskell, F#, C#, Java, SQL, various assemblers etc. Had a brush with Ada (awful language) and Prolog in university.
-
LocationI'm a westerner, somewhere in Northern Europe
Joined devRant on 6/3/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@rephiscorth Because that could be the name of the function containing the code we discuss, but we're discussing the code itself. ;-)
-
As the Antlr author Terence Parr puts it:
"Why Program by Hand in Five Days what You Can Spend Five Years of Your Life Automating?" -
@matsaki95 It probably increases the steam pressure in the boiler of a mainframe, so that the card puncher gets more power. Not sure though...
-
for (i = 0b1000000000; i != 0; i >>= 1) {}
-
I'm amazed to see so many people finding keys that are less useful than SysRq. :-)
-
@codetinkery It seems we've eaten the same kind of mushroom, because I saw colour too. How weird.
Works the other way round too: when I was visiting the former Eastern Bloc in the 90's, where everything man made was greyish, I started perceiving grass and trees as being grey as well. -
What people actually like, is more interesting: https://stackoverflow.com/insights/...
Rust comes out on top. For some strange reason, C# is more loved than F# and Haskell. I'd wear out both my keyboard and fingers if I'd switch to C#. Anyway, as they say, "It's not whether you win or lose, it's whether you beat Java or not". -
Organising events is such a kick. Few things beat the feeling of "wow - this is really happening!".
-
@Mayhem93 Botched line endings sounds probable. I just hade someone fork one of my GitHub repos and do just that.
So, did he fix his settings and make a new fork? Nope. He fixed the line endings and made a new gargantuan commit. That way, he wont be able to track differences between our forks as they diverge. Genius. Pure genius. -
@runfrodorun Yes, I've found rather elementary questions there with >600 upvotes.
-
Since they dropped the affordable "updatables" (e.g. Nexus 5 and 5X) and went with the Apple priced Pixels, I suggest "Ostrich Liver Paté".
(By updatables, I mean phones that receive updates, unlike the mid range Samsungs I had before the Nexus 5X.) -
Before trying random commands and scripts found on the internet, one should always make the "Is the internet safe"-test.
It's easy to do. Just mix some drugs from random recipes found online. The ingredients can probably be found in random web shops. Now, try the drugs. If you don't get irreparably and possibly fatally poisoned, then the internet is a safe place were everyone is honest and benevolent. If not, collect the Darwin awards. -
Have they stopped teaching Haskell as the first language at Chalmers? Starting with a low level language like C seems like a bad idea.
-
// Starts remote computer
void StartRemoteComputer() {...}
So, the StartRemoteComputer function actually starts a remote computer. Wow. Who could have guessed? -
The software industry proves Dr Kalam wrong: it's quite possible to be competent, efficient and still have no family or social life whatsoever. That's what makes GNU and similar projects possible. :-P
https://xkcd.com/306/ -
@pmarius That was a good example and in cases like that, I totally agree with you.
-
Use three loops when the loop condition uses ternary logic.
-
Get used to being a beginner over and over again. Deliberately make yourself a beginner every now and then. That's how you become a master.
-
I got a bunch of --'s when I made fun of those pesky patent trolls. There must have been a few NPEs online that day.
There's a guy who regularly gets --'s for weird rants and comments seemingly written under the influence of psychedelic drugs. I won't mention his nick, but you'll know when you encounter him. -
@pmarius "notBar = !foo.isBar();"
That roughly reads like "notBar is not isBar". What's the point of that? -
I usually move those to various household objects. Sometime, plebs think that the "Intel inside" sticker on my vacuum cleaner means that it's actually computerised.
Although none has yet thought that my toilet seat runs Vista, even though the sticker says so. -
Add 40kB to it, and you'll have more than anybody could ever need.
(Disclaimer: I'm aware that the 640kB quote is false, but its a classic among fakes.) -
@dandel10n I love that episode. Especially when he answers the phone and doesn't even ask the callers what they want, but just immediately asks "Have you tried ...".
-
Maybe I should search the net for instructions on bomb making. Not for actually making bombs (call me overly cautious, but handling explosives is not for the absent minded theorist), but as a way of getting dating advise from the spooks.
Of course, it could backfire and the advice could be "That serial killer in cell block D finds you attractive". -
@saifat29 The short version is actually more readable to anyone who understands what a boolean is.
The first version is more of a sort of explanation to those who aren't familiar with the language or its logic operators. Such explanations belong in tutorials about the language and should not be repeated in code written in the language.
Having said that, I always prefer the simplest code possible, but adding redundant verbosity is not the same as simplifying. -
They probably want to pay an entry level salary to an expert. Good luck with that.
-
@allanx2000 Correction: the imperative families of programming languages are similar to other languages in the same family, for obvious reasons - hence "family".
Logical and functional languages don't share that heritage. -
One of several advantages of programming in F#, Haskell etc is that you get to say "Curly braces and semicolons are sooo 80's".
-
@yendenikhil If you have to ask about Linux and beards, you're not a true Linux user.
https://reddit.com/r/... -
@yendenikhil Statistics speak against it though: https://statista.com/statistics/...