Details
-
AboutYou should be able to do it without libraries. All you need is a nail and your forehead.
-
SkillsC, OpenGL, JS, C++, Java
-
LocationCanadia
-
Github
Joined devRant on 8/12/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
-
Honestly... I'm my own biggest influence. I had a career shift from law enforcement to developer. I hated my job, my life, where I was at and where I was going. I never want to be in that position again so I got myself to a point where I have more freedom and opportunities.
-
To the guy who said that java is the best programming language. Sorry if it has been posted before.13
-
Swift, oh my god, why do you have to be like this?
I'm looking to write a simple for loop like this one in java
for(int i = 5; i > 0; i--) {
// do shit
}
Thats it, simple, go from 5 to 1 (inclusive), I saw that to iterate over a range in a for loop (increasing ordeR) I can do this
for i in 0...5 {
// do shit.
}
So I thought maybe I could do this to go in reverse (which seems logical when you think about it doesn't it?)
for i in 5..<0 {
// do shit
}
But no, this compiles FINE (THIS IS THE FUCKING KICKER IT COMPILES), alright, when you the code runs you get a fucking exception that crashes the mother fucking application, and you know what the problem is?? This dogshit, shitStain of a language doesn't like it when integer that the for loop starts with is larger than the integer that the for loop ends with MOTHERFUCKER ATLEAST TELL ME THAT AT COMPILE TIME AS A MOTHERFUCKING WARNING YOU PIECE OF SHIT!!
Alright *deep breathing*, now we can't just be stuck on this raging, we're developers need to move forward, so I google this, "Swift for loop in reverse" fair enough I get a straight forward answer that tells me to use the `stride` functionality. The relevant code for it
for i in stride(from:5 to:1 by:-1) {
// do shit
}
Wow looks fine and simple right?? (looks like god damn any other language if you ask me, no innovations here piece of shit apple!) WRONG BITCHES !!! In the latest version of Swift THE FUCKING DEVELOPERS DECIDED TO REMOVE STRIDE ALTOGETHER, WITHOUT ADDING IN A GOOD REPLACEMENT FOR THAT SHIT!
Alright NOW IM FUCKING MAD, I got rage on stackoverflow chat, a guy who's been working on ios for quite a while comes up n says and I quote
"I can sort of figure it out, but besides that, iterating in reverse is uncommon enough that it probably hasn't crossed anyone's mind."
Now hope you guys understand my frustration, and send me cookies to calm me down.
Thank you for listening to me !27 -
A young man was walking along in the forest, when he heard a muffled voice crying for help from behind a log. He leaned over to see a frog sitting in the mud.
The frog looked up at him and said, "I'm actually a beautiful princess, and if you kiss me, I'll transform back into my true self, and be yours for eternity."
Silently, the man scooped up the frog and continued on his walk.
A minute or two later, the frog piped up again, "Hey, buddy, maybe you didn't hear me -- I said, if you kiss me, I'll turn into a princess. What are you waiting for?"
Annoyed, the man stuffed the frog into his coat pocket.
Shocked, the frog yelled from inside the man's pocket, "What the hell? I'm a princess! All you have to do is kiss me!"
Opening his pocket and peering in, the man said, "Listen -- I'm a software engineer. I don't have time for a girlfriend. But a talking frog is kind of cool."3 -
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.9 -
Me: I'm building for 32 bit.
Me: But I feel like I should be building for 64 bit.
Me: But not everyone has a 64 bit OS.
Me: But who the fuck doesn't?
Jerry: The people who can't run our game.1