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
Search - "stride"
-
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 -
The company I work for offered a Javascript Course/Training for every developer to enroll, which happens to take place on 3 days. In the description it was ensured to be for everyone, doesn't matter if you are an expert or beginner: there's something to learn for everyone.
The company described him as a top coacher in Austria and that he is overbooked for 2 years. High in demand indeed. "Has to be good", I thought. As a relatively average JS developer, there has to be something to learn for me.
Sitting here the second day, I fucking regret to join this shit. I have never seen such a bullshit in my lifetime. Why the fuck would you even book this man, he doesn't even understand basic concepts of software engineering. Just reading down the script, opening the script on one laptop and showcaseing it on the other. When someone asks a question, there's a 70% chance he doesn't know the answer. It takes this scumbag 30 fucking seconds to define a function; probably making spelling mistakes alongside.
I don't even want to know how much this dude will make from this "coaching". Hoped that it'd get better over time but I don't see an improvement. Contacting my boss that I'll leave this "training".7 -
Okay so this is my first desk job. I'm experiencing some personal issues and wondering if they are normal, what you do to combat them, etc.
First of all, some days, I literally almost fall asleep on the job. Caffeine doesn't work much. I know it's just my sleep schedule but what should I do in this situation? What if I actually do fall asleep?
Secondly, I'm finding that my productivity only exists in bursts. I'll do three hours of work in 10 minutes, and then 10 minutes of work in three hours. I can't just catch a stride. How do I become more consistently productive? Should I be more consistent?
My legs hurt. Sitting all day is not for me. I guess this is more situation to situation, and I do walk almost 6k steps a day on my breaks, but it really doesn't feel great most of the day.9 -
"Man Of Steel"
Many men was I
before I was the man I am.
And each a stranger had I come to know
In a strange land.
In every man there is a nation
of dreams, in every spirit, like a flame
Many visions, many plans.
How do I choose, how must I choose
the destiny of all among the one
united by our pain, and hopes, and blood
and beneath this eternal sun, and the rule of petty men
learn to stand tall, to walk, to run.
If I could stand upon the shoulders
of giants, and stride for but a minute
in great men's shoes, forever and a day
All the world would be mine to gain, mine to lose
And bend the course of mankind
To a better way.
If I could stride full measure in that minute
And take it like the reigns
Of a chariot that could cross the sky
What a man they would exclaim, for generations,
fathers unto untold sons.
And speak in solemn words setting new foundations,
a truth greater than any lie
It is every man's will to fight.
And it is to rogues to do and die. -
In january this year i convinced my whole team to switch from Skype to Stride. And now Stride announced that they are teaming up with Slack... I am going to look like complete idiot because we have to switch once again ... 😥5
-
!rant
Struggled for 2 hours now. How the heck can a create a directory on android. My code:
File dir = new File(Environment.getExternalStorageDirectory(), "Directory");
dir.mkdirs();5 -
how to avoid getting robbed:
1. make a T-pose
2. stride towards the robber
3. start reciting the date of your death over and over5 -
Get rid of Facebook, and use devRant instead. The only way to improve your skills is by getting out of the comfort zone.
-
!rant
I just know the basics of js and I had an interview with the ceo of a company. He said that if I am able to build a Twitter Client in React.js in 2 months, they will give me the opportunity, to work at the company in the summer. What do you guys think, is it possible for me to learn React and the Twitter API in 2 months. (I am a student, so keep in mind :D)3 -
!rant
Just switched to a Mac, so far everything is going fine. (From Windows)
Any Windows-to-Mac switchers out there ?
How was the switch and the learning curve ?5