Details
-
AboutScala dev
-
SkillsScala, fp
Joined devRant on 7/14/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
-
Client: This new feature is not working on Internet Explorer.
Me: Do you have enough oxygen in the cave you are living in?7 -
Today at school I borrowed an oscilloscope and a few capacitors and used a circuit I made at home to just demonstrate the discharge of a capacitor, since my physics teacher asked me to teach the class about this on Friday
So it's one of those old analogue scopes, so to get a nice line I turned the speed right down and did a long exposure shot with my phone and it turned out brilliantly!31 -
I thought I'd opened every shitty type of Chinese-grade electronics by now. Glued in shit, ultrasonically welded shit, potted shit. And occasionally the now very rare piece of electronics that has actual screws.
Until now. Remington, apparently yet another company filled with certified enganeers. My razor is from them, and I wanted to open it up to see why the lithium cell inside was failing, and to replace it with a bigger one. 2 screws in the back of the unit, Phillips head. But holy fuck, those things sat in there more tightly than the glory hole of the Asian girl that probably assembled this thing. Externalizing our own features in our craft? Check!
Pretty hard to remove them but that's fine. But the unit didn't open up, and there seems to be no screws left. I guess that they leveled up their level of certified enganeering and actually used both screws and ultrasonic welding. Because why wouldn't you, right?!
Motherfuckers.5 -
It isn't written in English but I trust you will understand the most important wordjoke/meme head hunters recruiters head hunter machine learning ml ninja job board recruiter blockchain5
-
All this "political correctness" cancer spreading through the Python community at the moment over "master/slave" terminology has me wondering where will it end. When the pendulum swings will be have a pro-life movement opposed to pre-emptively killing processes? Will a branch of PETA form to oppose the taxonomic appropriation of reptilian names for the language as a whole? Are we going to need to find gender-neutral names for motherboards to avoid offending those who are offended by the oppressive digital binary? Will removing "mother" from the name motherboard invite 6th wave feminists to decry the influence of toxic masculinity in electronics? Do snake lives matter? Seriously, some people need to take a month off to go fuck themselves somewhere far far away and stop confusing "diversity" with "rampant idiocy".14
-
Dear management,
You can’t say “Move fast and break things”, and then be mad when a tiny thing is broken from time to time.
Love,
Concerned Dev2 -
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
So far, this is my inspiration to refactoring the code right after it works as gift to my future self.8 -
Git.
The smallest utility made its way to being the largest companies must-have, the most critical part of the whole development landscape.
Using just plain C, Git can shred huge amounts of data insanely fast. It never gets old.
Git is a developer's scalpel.11 -
ɴᴏᴡ ᴘʟᴀʏɪɴɢ: devRant Podcast #3 (Feat: Mark Zuckerberg)
─●──────────────────────────
◄◄⠀▐▐ ⠀►►⠀⠀ ⠀ 4:𝟷𝟾 / 𝟷𝟹:37 ᴴᴰ Sound ❐ ⊏⊐18 -
Job application asked if I have experience with difficult customers and needing to repeat concepts in different ways.
How many people in the vast field of computers and technology HAVEN'T experienced this?4 -
How i listen to songs while coding:
Take a headphone, using it, start coding..., after 2 hours, damn i forgot start the music 🙄16 -
If I run into a problem with code or a configuration of some kind, like a good little programmer, I Google it.
One of two things will happen:
1) I quickly find the answer to my problem.
or
2) After hours of searching, I can't find anything about my problem. At all. I change the search phrasing, adjust the advanced search settings, read all the somewhat related but still unrelated articles. Nothing.
If #1 happens, awesome, life is great, thanks Internet!
If #2 happens, it's because of one of two things:
1) I am the first person in the world to stumble upon this issue. Quick! To the Blog Cave!
2) I AM TOO STUPID TO BE DOING WHAT I AM TRYING TO DO BECAUSE MY MISTAKE IS SO UNBELIEVABLY DUMB THAT NO ONE HAS BOTHERED NOR WILL BOTHER TO WRITE ABOUT IT, ANYWHERE, EVER. I LOOK AT MY WORK AGAIN FOR THE 100TH TIME AND FINALLY REALIZE MY EMBARRASSING NOOBERY.
2.1 is a unicorn. 2.1's happen to other people.
I am dealing with a 2.2.2 -
There's a bunch of things I want to get around to this year:
- learn Scala
- get a job/an internship in programming
- start a blog
- start and finish at least a couple of projects that have piled on in my to-do list
- write code that sucks less
- get better at explaining my train of thought to others and teaching -
I'm currently rewriting perfectly clean and functioning Scala code in Java (because "Enterprise", yay). The amount of unnecessary boilerplate I have to add is insane. I'm not even talking big complicated code but two liners or the lack of simple things like a range from 5 to 10.
Why do I have to write
List<Position> occupiedPositions = placedEntities.stream()
.flatMap((pe) -> pe.occupiedPositions().stream())
.collect(Collectors.toList());
instead of simply
val occupiedPositions = placedEntities.flatMap(_.occupiedPositions)
Why on earth does `occupiedPositions.distinct` suddenly become a monstrosity like `occupiedPositions.stream().distinct().collect(Collectors.toList())` where the majority of code is pure boilerplate? And this is supposed to be the new and better Java8 api which people use as evidence that Java is now suddenly "functional" (yeah no, just no).
Why do APIs that annotate parameters with @Nullable throw NullPointerExceptions when I pass a null? Why does the compiler not help prevent such stupidity? Why do we use static typing PLUS those annotations and it still crashes at runtime like every damn dynamic, interpreted language out there? That's not unfortunate, it's a complete waste of time.
Why is a simple idea like a range from x to 10 (in scala literally `x to 10`) not by default included in Java? There's Guava's version of Range which does not have a helper for integer ranges (even though they are the most used ones). Then there's apache.commons version which _has_ a helper for integers, but is strangely not iterable (wtf I don't even...).
Speaking of Iterable: How difficult could it be to convert an abstract Iterable<T> into a concrete List<T>? In scala it's surprisingly `someIterable.toList`. I found nothing like that so I took to stackoverflow where I found a thread in which people suggested everything from writing your own ListUtils helper class, using Guava (which is a huge dependency!) to using the new Java8 features inline (which is still about three lines long). I didn't know this was such a hard problem in computer science, TIL.
How anyone can be productive in this abomination of a language is beyond me now, even though I've used it for many years while learning to code (back then I didn't know there were much better ways to do things). The only good part is that I have to endure this nonsense for only about 3 days longer then I'm free again!12 -
As soon as I'm starting a project in my spare time again, I'm starting to dream in code again..
Came up with a solution in my sleep though.2 -
No, I don't want desktop notifications
Yes, I understand you use cookies
No, I don't want free books
We see you use AdBlock ...
[closing the tab]
And this happens every time I desperately search for smth5 -
currently in a hackaton right now and I really hate my self for being so dumb in presenting/explaining my idea. oh well, better luck next time.2
-
People talk about how the use of Linux as a desktop requires an inordinate amount of time, as if that's a unique problem in Linux. There is no such thing as an operating system that I don't spend weeks and months tweaking to make my own.
The difference is that Linux doesn't resist me like other OSes.2