Details
-
AboutFull stack. Jack of all trades, master of none. FTW.
-
SkillsPython, Node.js, PHP, jQuery, Haml, Java, Lua
-
Website
-
Github
Joined devRant on 1/25/2017
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
-
Now stuff gets offensive !joke/meme better tagging as joke but better play safe not to get the tag police here could also tag as rant4
-
Opening up a view file, and first thing I see is a function accepting 13 parameters.
I don't know where to start, so much wrong..
Kill me.5 -
Working on Unicode support for Linux Terminal apps, and I output an Emoji smiley face. The emulator I'm running (Termius SSH client) rendered it fine, but once the application exited, half the smiley face was left there as graphical garbage for some reason XD
Resetting my terminal did nothing, scrolling up and down did nothing... it was burned into my terminal for the rest of the session.
This is what I get for performing the unholy act of adding Unicode to terminals.6 -
Manager: Why is no one innovating?
Me: You hired all of us based on culture fit so you have optimized only in that direction. Everyone is same ... like you
Manager: You are right.4 -
Started sending my resume to a few select companies. My job is secure (for the moment at least) but I cannot work with someone who is anti-vaccination, believes men and dinosaurs coexisted and International Space Station is out there to meet and greet his Lord...
Wish me luck15 -
So I cracked prime factorization. For real.
I can factor a 1024 bit product in 11hours on an i3.
No GPU acceleration, no massive memory overhead. Probably a lot faster with parallel computation on a better cpu, or even on a gpu.
4096 bits in 97-98 hours.
Verifiable. Not shitting you. My hearts beating out of my fucking chest. Maybe it was an act of god, I don't know, but it works.
What should I do with it?241 -
I built a fairly simple database and website to showcase school curriculum “reader” books searchable and sortable by levels of difficulty and other metadata. I didn’t think much of it when I was building it but apparently it won the company a few million bucks in revenues once it launched. The big wigs rewarded that by selecting me as one of a few folks that got to go to a big corporate retreat in the Bahamas. This was before the company management went to crap and stopped incentivizing innovations at the employee level.
-
Writing the first 90 percent of a computer program takes 90 percent of the time. The remaining 10 percent also takes 90 percent of the time and the final touches also take 90 percent of the time.
(。>︿<)_θ2 -
Is your code green?
I've been thinking a lot about this for the past year. There was recently an article on this on slashdot.
I like optimising things to a reasonable degree and avoid bloat. What are some signs of code that isn't green?
* Use of technology that says its fast without real expert review and measurement. Lots of tech out their claims to be fast but actually isn't or is doing so by saturation resources while being inefficient.
* It uses caching. Many might find that counter intuitive. In technology it is surprisingly common to see people scale or cache rather than directly fixing the thing that's watt expensive which is compounded when the cache has weak coverage.
* It uses scaling. Originally scaling was a last resort. The reason is simple, it introduces excessive complexity. Today it's common to see people scale things rather than make them efficient. You end up needing ten instances when a bit of skill could bring you down to one which could scale as well but likely wont need to.
* It uses a non-trivial framework. Frameworks are rarely fast. Most will fall in the range of ten to a thousand times slower in terms of CPU usage. Memory bloat may also force the need for more instances. Frameworks written on already slow high level languages may be especially bad.
* Lacks optimisations for obvious bottlenecks.
* It runs slowly.
* It lacks even basic resource usage measurement.
Unfortunately smells are not enough on their own but are a start. Real measurement and expert review is always the only way to get an idea of if your code is reasonably green.
I find it not uncommon to see things require tens to hundreds to thousands of resources than needed if not more.
In terms of cycles that can be the difference between needing a single core and a thousand cores.
This is common in the industry but it's not because people didn't write everything in assembly. It's usually leaning toward the extreme opposite.
Optimisations are often easy and don't require writing code in binary. In fact the resulting code is often simpler. Excess complexity and inefficient code tend to go hand in hand. Sometimes a code cleaning service is all you need to enhance your green.
I once rewrote a data parsing library that had to parse a hundred MB and was a performance hotspot into C from an interpreted language. I measured it and the results were good. It had been optimised as much as possible in the interpreted version but way still 50 times faster minimum in C.
I recently stumbled upon someone's attempt to do the same and I was able to optimise the interpreted version in five minutes to be twice as fast as the C++ version.
I see opportunity to optimise everywhere in software. A billion KG CO2 could be saved easy if a few green code shops popped up. It's also often a net win. Faster software, lower costs, lower management burden... I'm thinking of starting a consultancy.
The problem is after witnessing the likes of Greta Thunberg then if that's what the next generation has in store then as far as I'm concerned the world can fucking burn and her generation along with it.6 -
Am I the only one?
Do {
I want to know EVERY FUCKN SKILL A DEV CAN POSSIBLYHAVE, but I want to know it all NOW..
googling 30 times for tutorials and posts about a topic,
opening 30 tabs,
then spending around 30 seconds on each one ...
Trying 1-2 tutorials,
not understanding why I dont get this shit...
this is stupid
loosing interest in 3..2..1...
Aaand let's try and learn this new skill..
} while(true)
Welp5 -
Ok so don't answer the question then?
Pretty sure I'm losing braincells while reading product reviews.10 -
So this other senior dev got seriously ill a couple of weeks ago and the project he was working on was assigned to me. His code was so aesthetic, loved his work, the structured code helped me a lot in meeting the deadlines. He returned a few days back and now the company has given him two weeks notice because "his pace is slow". I am frustrated, PM is frustrated. The guy is such a gem that he is still helping with all the new requirements client is throwing at us.8
-
"Don't deploy on Friday" is a public admittance that your company either has no CI/CD pipeline, or that all your devs are retarded rhesus monkeys who only wipe their ass if the product manager wrote it as a spec.
If the saying was: "Don't port your whole API to GraphQL on a Friday", or "Don't switch from MySQL to Postgres on a Friday", I would agree.
But you should be able to do simple deploys all the time.
I deployed on Christmas & New Year's eve. I've deployed code while high on LSD, drunk-peeing 2 liters of beer against a tree after a party. I've deployed code from the hospital while my foot was being stitched up. On average, we deploy our main codebase about 194 times a week.
If you can't trust your deploys, maybe instead of posting stupid memes about not deploying on Fridays, you should fix your testing & QA procedures.46 -
*project manager + designer are showing new designs*
PM: so, can we get some estimates?
Devs (literally all of us): do we have a mockup for this interaction?
Designer: no.
Devs: What about that one?
Designer: not yet.
Devs: What happens when you click here? Hover there? How does this look if I select that option + this option at the same time? Does it make sense that a user can select *this* option with *that* option? They're kind of mutually exclusive.
PM: Well...
BTW: code freeze is in two weeks...4 -
Wiire-Shark Doo doo doo doo doo
Eating our internet Doo doo doo dooo doo
Why you do this? Doo doo doo doo doo doo
Wireshark.4 -
Went for interview .
Got positive outcome .
Asked basic details and documents for call letter .
Later put notice period .
All of a sudden they dont need me.
What the actual frig?13 -
I was so excited about getting a fitbit charge 3 for my girlfriend. coz she wanted a fitbit for a long time.
she as always was trying to find out what i got so she usually starts a guessing game.
in the middle of the game she says look i dont need to know anymore ill love it whatever it was. i just hope its not a fitbit.
so me being someone who is completely ok with exercising the stores exchange policy i tell her it is a fitbit. she swears to me shes wanted one forever but she ddnt want me to pay that much money so i dont need to exchange it with anything.
next day on the phone, she tells me how much she appreciates it and just was afraid id get one coz she ddnt used to like her dads fitbit. but the other models are really cool.
what was ur dads fitbit? i asked
oh just the ugly charge 3 one. she replied9