Details
-
AboutHi there! My name is Omer Shamai the official Oscilloscope Guy (C). I am 19 years old from Israel. I am interested in coding and have been coding for about 8 years, since I was in second grade.
-
SkillsiOS UIKit (Swift), C#, x86 ASM, Arduino C and standard C/C++. FUCK OBJECTIVE C.
-
LocationRamat Gan, Israel.
-
Github
Joined devRant on 5/9/2018
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
-
Saying "Java is the best programming language because it works across all platforms" is the same as saying "Butt sex is the best form of sex because it works across all of the animal kingdom"10
-
$work: Ey @Root, make this super simple thing.
$work: No, not like that.
$work: It also needs to do A, B, and C.
$work: No, not there. You should build it somewhere else, but I won't tell you where.
$work: You need to build out F and G, too.
$work: What do you mean you don't have the data? Just ask support drone #3. (who directs me to #2, and that one to #8 who doesn't know, and that one to #12 who won't answer)
$work: Why can't I do K, Y, or S? You should be able to infer these from the mind of whoever wrote the ticket by its wording, despite no mention of them whatsoever.
$work: Are you done yet? It's a super simple ask!7 -
Last week in dR Hunger Games...
▶ https://youtu.be/Aj97BNLuhZI
Watch as 24 tributes from the number of devRant users beat each other in this violent simulation. Introducing the 2nd week of craziness, now in entertaining video form! 🤣47 -
Working with assembly is just something different... note to self: keep a cheat-sheet with the labels and corresponding addresses at hand.....8
-
Stakeholder: There’s a bug on the site.
Me: That’s not a bug. The site is supposed to do that. Your team asked for that feature and we implemented it last summer.
SH: They did?
Me: Yes, they did.
SH: You sure it’s been like this since last summer?
Me: YES!!!5 -
Not bad vs 2022. Not bad !
I wanted to write that (really, not a joke).
Sometimes, auto complete just works. -
Me and my Jewish friend were eating lunch and I farted. He got mad so I said "cmon man a little gas never killed anyone".14
-
Thinking of starting an OnlyFans where I post all the atrocious shitcode that I find to make my fans miserable….6
-
I work in huge corporation. Got an offer for smaller company and gave 2 week notice. My corporation offered me better base salary and retention bonus to stay. I accepted (mistake) and now they are not coming back with retention bonus or salary increase. I found out they did same trick with different person. Wtf... huge corporation is doing those kind of shenanigans?6
-
In Soviet Union, people cut x-ray films into circles and used them to make vinyl records of popular Western music that wasn't available because of the iron curtain. Sound quality was atrocious, but that wasn't the point. I have several of such records in my vinyl collection, it was my grandma who was involved in this culture when she was young.
https://en.wikipedia.org/wiki/...18 -
Behold the PHP pyramid of doom!
You know what kind of code is coming... a big pile of shite! 😍
Obviously you have to return by reference (&) because of performance and memory reasons. ☝️🤓
Man... I've seen code...22 -
Once C++ walks into a bar and sees C.
C is drunk, falling on the floor, spitting, and swearing.
How classless! -says C++4 -
!rant, TL;DR at the bottom
Holy fuck, Yesterday, I got absolutely schooled by a literal newbie.
And I mean, NEWBIE newbie, the dude just started a Computer Science degree, and has been learning Java only for a MONTH. He has 0 prior experience with code or anything of the like, and he's somewhat of an Ars(Israel's version of a Gopnik).
So I was helping him with some stuff he didn't understand, and lo and behold his code was probably the most aesthetically pleasing and organized code I have seen in my 8 years of programming(I know 8 is not much, but It's at least above beginner level). The dude's a perfectionist, so I was like, "Okay, very impressive, but makes sense for perfectionism"(I straight up told him: "Damn, I've seen people with years of programming experience who can't learn to write this well, and you do this by default? I envy whoever's going to work with you"), and then I saw the way he writes checks(as in, methods that return a boolean) and I think I came.
The code was:
[First method in the picture]
And I know, it doesn't look as ✨ WOW✨ as I make it sound, but in my personal opinion this both looks much better and is much more readable than what I normally write:
[Second method in the picture]
and whenever there are longer or more complicated checks it makes it look like a simple puzzle that just fits in all the pieces nicely, for example in a rectangle class we had to write an 'isIn' method, this is how I wrote it:
[Third method in the picture]
His way of writing the same thing was:
[Fourth method in the picture]
Which I think is soooooo much better and readable and organized,
It's enough just looking at the short return statement to immediately understand everything that's going on.
"Oh, so it just checks if the SW(South West, i.e. Bottom Left) corner is above and to the right, and if the NE(North East, i.e. Top Right) corner is bellow and to the left"
Point of the story? Some people are just fucking awesome. And sometimes the youngest/most inexperienced people can teach you new tricks.
And to all of you dinosaurs here with like, 20+ years of experience, y'all can still learn even from us stupid ones. If 8 years can get schooled by a 1 month, 20 years can get schooled by a 1 year.
Listen to everyone everybody, never know where you might learn something new.
TL;DR: Got schooled by a local "Gopnik" who only started learning programming a month ago with 0 prior experience with his insane level of organization and readability.30