Details
-
AboutFunctional programming newbie.
-
SkillsAndroid, Kotlin, Java, Clojure, ES 2015
-
LocationKathmandu
Joined devRant on 7/7/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
-
When you turn up to work and realise you forgot your headphones so you gotta try and concentrate while overhearing every conversation in the office.4
-
Getting ready for my new React project.
Vim: Check ☑
TernJS: Check ☑
Webpack: Check ☑
Gulp: Check ☑
Nodemon: Check ☑
Now I begin 😆8 -
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 -
Would like to suggest all my devRant friends to watch TVF Pitchers. If you like Silicon Valley you will definitely like this.
Available on YouTube or TVFplay.com , this is a story about 4 friends. I am suggesting this because this web series was a deal breaker in India. One of a kind to go to No.25 on IMDB's top 250 TV shows.
A must watch :)3 -
How to tell if someone had never developed before and never looked at Linux before: I'm not familiar with symlinks.1
-
Now I know for sure that my coworkers can't read error messages.
Every fucking time git doesn't push or pull properly they can't figure out what's going on, almost one year since we migrated to git ... come on... read the fucking message!7 -
Does anyone remembers phone Symbian OS ?.....yeah, those were the SHIT! (i meant it in a good way)5
-
// Just in case
if ($scope.currentPlatform === 'android') {
$scope.enableDatePicker = true;
} else {
$scope.enableDatePicker = true;
}5 -
when i worked in IT, some coworkers told me to install some stuff in the "happy" and delete some files from the "surprised". I spend several days confused, until they explained me... Idk if they are idiots or geniuses.
happy disk (C:)
surprised disk (D:)
maybe they were both.7 -
I get really tired of people shitting on php and getting greated with immediate laughter when I say I work as a full stack LEMP/LAMP dev. I work just as hard as you (ruby/python/node devs) do and feel like I make some pretty cool shit.
Why can't we all just agree we do great things with our tools and while I may use a different hammer than you, we still use the same nails!!!19 -
Fucking hate when "senior" and "lead" devs ignore the advice of numerous junior devs when it comes to technical and process driven decisions. Especially when said higherups don't even code anymore and don't really understand the consequences of their decisions.10
-
Cracking open Unity for the first time, tonight after the daughter goes to bed, for an augmented reality project.
Cheers! 🍺7