Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Root7296755dShit, it’s the weekend?!
Fast-Nop3221655dWanted to eliminate some copy/paste code and refactored it out to a dedicated function. Speed dropped by 1.5% - inacceptable.
Re-thought it and did the refactoring a little differently. Speed increased by 2%, and the copy/paste code is gone!
I have refactored a 1200 line file to 1500 lines file. Sounds like a bad tradeoff? The old code was mixing the usage of data, ui and business logic so badly that one couldn't even track the flow without getting confused. Any stream was hiding and showing anything, i broke them down to 50+ clean functions based on the thing they changed . This could later be reafctored to multiple files for better seperation of concerns, bit right now it still looks beautiful .
Now only if my small balled senior let me push those changes and not say "its working so we shouldn't touch that" and instead test my approach! Coupled shit will always eventually brake
Berkmann1885255dDeleting numerous lines of code two projects while fixing bugs (e.g. returning null instead of the expected data) and keeping the testers happy.
10Dev127155dI successfully installed Arch Linux on my first try on an old laptop
Super excited to start playing around with i3 and ricing
VirtualBooth154dNew project (Kioxia) - new opportunirty ;)
spongessuck496053dWatched some Richard Feynman videos.