Details
-
Skillsrust, js, python, ts, react
-
LocationSweden
-
Github
Joined devRant on 11/30/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
-
[Rust]
I have a bunch of computational steps in a Rust program, all very expensive. They all depend on each other, forming a cycle-free and rather small graph of dependencies which is not a tree. The results of each of them for a given input are likely used tens of times by the others, so I would like to cache the subresults dynamically.
How would I go about doing this, considering that caching (rightfully) requires mutable access to the cache and multiple operations often refer to the same subresult?
I can't ask SO because they'd just tell me to use another language or recalculate everything every time, fully convinced that difficult questions can only emerge from design mistakes.12 -
To the left, a conventional circuit board design done by a human. To the right, a design done by TopoR, a software that designs circuits automatically.
It looks absolutely alien, yet beautiful. It doesn't care about how it looks, it doesn't care about angles and alignment. It only cares about efficiency and designs every connection to be as short as possible. It can even account for electric interference.
Humans just cannot compete.25 -
Junior dev complained about my request to remove unnecessary comments because they're too obvious. "They may be obvious to you, but not to others" he said.
The codes and the comments:
// Sort the array
arr.Sort()
// Return the first element of the array
return arr[0]14 -
Two C strings walk into a bar.
The bartender asks "What can I get ya?"
The first string says "I'll have a gin and tonic."
The second string thinks for a minute, then says "I'll take a tequila sunriseJF()#$JF(#)$(@J#()$@#())!*FNIN!OBN134ufh1ui34hf9813f8h8384h981h3984h5F!##@"
The first string apologizes, "You'll have to excuse my friend, he's not null-terminated."1 -
!rant
Monday morning panic...the dreaded question.
Random office colleague: "Do anything fun over the weekend?"
Me internally: Fuck...what did I do? Did I do anything at all? I mowed the yard...played video games...spent 3 hours looking at some random open source package I gave up trying to compile. All that is boring though. Was there nothing exciting I can brag about? Fuck...oh wait. I went to a huge theme park Saturday. Yeah that's cool enough to mention!
Me: "No not really"1 -
I got an email a couple days ago about a tweet a made about how web developers are unanimously very happy that Microsoft is dropping IE. I got a very angry email from someone who really loved Internet Explorer, apparently 🤔, saying that my tweet was, and I quote "offensive to those who used it loyally for years". That was hysterical for me to read.14
-
Big client, sells products in 30+ countries.
Tries to generate newsletter subscribers, so asks for a system to send a coupon upon subscription.
2 days later, client calls in panic. “We have too many subscribers, our marketeers say it’s a bot issue, can you do something?”.
Checked the data, checked analytics, turns out there’s a lot of referral traffic from freebie-sites, no sign from a bot issue.
Called the client back, “sorry, but there’s nothing you can do about that, you wanted your newsletter to become popular. Not you’re the victim of your own success”.
Client: “can we add captcha?”
Me: “why would you want to do that? You don’t even have a bot issue”
Client: “to make it harder for people to subscribe”
I tried to talk som sense in their heads, but after 3 times I gave up and implemented the damn captcha. It’s still there, doing nothing but annoying thousands of people, including me...7 -
My company seems to never have the money to do something right but always have the money to do it twice.3
-
Worked 2 weeks on hunting a memory leak on a product.
Ended up writing object tracker to find the leak(ironically it was in garbage collector). Found the leak and fixed it. It sounds cool but what I pushed was 9 lines commented out 1 line added for 2 weeks work..
Doesn’t feel very fulfilling to work for 2 weeks to comment out few lines. Only silver lining is that I might turn my object tracker into a library for colleagues to use.
P.s: not a linux or windows environment so tools like walgrind aren’t available.2 -
Javascript developer interview
One of the RH interviewers started asking about myself, personal information, etc..
He : well, let me introduce you our tech lead, he will make you some question about JS
Me : alright
Tech Lead : ummm, do you know javascript?
Me : yes..?
Tech Lead : ok, cool. We will call you.
I got the job..9 -
Not a coding test, but:
Them: So you are interviewing for a programmer opening. Do you like programming?
Me: yes.
Them: do you make logos?
Me: ...I can...?
Them: good because you won't always be writing code here.
Me: I'm out.8