Details
-
Aboutcodes android and laravel for food
-
Skillsjs, ruby,java,SQL
-
LocationNairobi
Joined devRant on 6/28/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
-
when in doubt,
write everything manually,
because even if a package exists,
it's so old and outdated,
it's not even worth fixing all the errors,
so you may as well,
grow your own APIs
it'll be faster!3 -
It's kinda nice to have a long weekend for a change to work on my endless list of unfinished side projects and code what I want to code, and not having to use fucking Windows 11 on a slow-ass work laptop.
-
Javascript really needs a way to define consts for a block 1 level up.
So instead of
const el = wide ? els.wide : els.tall
You can do
if (wide) const el = els.wide
if (!els) const el = els.tall
// etc..
Just makes chaining and backup values way easier than inline conditionals 🤔15 -
What’s the difference between a coder, programmer, developer and a software engineer? I see many people who attend a 2 month coding bootcamp where they learn html, css, javascript and put software engineer in their title9
-
An old one, but funny af. Shows the pain freelancers have to go through.
Please design a logo for me.
With pie charts.
For free.
http://www.27bslash6.com/p2p.html1 -
Maybe not worst, but most frustrating. One of the systems I helped maintain at my first job had a few different bugs that caused bad data in the database. The "solution" to the problem was to write SQL queries to directly fix the production data. This would take one member of our team (it rotated weekly) about an hour every day to fix because there were literally dozens of these errors.
All the devs knew that we could identify the root cause and fix it in, probably, 3-4 days tops. Management would never approve the time because it would take longer to fix the root cause than it took to fix the data.
I worked at that company for 7 years. The bug was there when I came on, and it was there when I left.2 -
I've found and fixed any kind of "bad bug" I can think of over my career from allowing negative financial transfers to weird platform specific behaviour, here are a few of the more interesting ones that come to mind...
#1 - Most expensive lesson learned
Almost 10 years ago (while learning to code) I wrote a loyalty card system that ended up going national. Fast forward 2 years and by some miracle the system still worked and had services running on 500+ POS servers in large retail stores uploading thousands of transactions each second - due to this increased traffic to stay ahead of any trouble we decided to add a loadbalancer to our backend.
This was simply a matter of re-assigning the IP and would cause 10-15 minutes of downtime (for the first time ever), we made the switch and everything seemed perfect. Too perfect...
After 10 minutes every phone in the office started going beserk - calls where coming in about store servers irreparably crashing all over the country taking all the tills offline and forcing them to close doors midday. It was bad and we couldn't conceive how it could possibly be us or our software to blame.
Turns out we made the local service write any web service errors to a log file upon failure for debugging purposes before retrying - a perfectly sensible thing to do if I hadn't forgotten to check the size of or clear the log file. In about 15 minutes of downtime each stores error log proceeded to grow and consume every available byte of HD space before crashing windows.
#2 - Hardest to find
This was a true "Nessie" bug.. We had a single codebase powering a few hundred sites. Every now and then at some point the web server would spontaneously die and vommit a bunch of sql statements and sensitive data back to the user causing huge concern but I could never remotely replicate the behaviour - until 4 years later it happened to one of our support staff and I could pull out their network & session info.
Turns out years back when the server was first setup each domain was added as an individual "Site" on IIS but shared the same root directory and hence the same session path. It would have remained unnoticed if we had not grown but as our traffic increased ever so often 2 users of different sites would end up sharing a session id causing the server to promptly implode on itself.
#3 - Most elegant fix
Same bastard IIS server as #2. Codebase was the most unsecure unstable travesty I've ever worked with - sql injection vuns in EVERY URL, sql statements stored in COOKIES... this thing was irreparably fucked up but had to stay online until it could be replaced. Basically every other day it got hit by bots ended up sending bluepill spam or mining shitcoin and I would simply delete the instance and recreate it in a semi un-compromised state which was an acceptable solution for the business for uptime... until we we're DDOS'ed for 5 days straight.
My hands were tied and there was no way to mitigate it except for stopping individual sites as they came under attack and starting them after it subsided... (for some reason they seemed to be targeting by domain instead of ip). After 3 days of doing this manually I was given the go ahead to use any resources necessary to make it stop and especially since it was IIS6 I had no fucking clue where to start.
So I stuck to what I knew and deployed a $5 vm running an Nginx reverse proxy with heavy caching and rate limiting linked to a custom fail2ban plugin in in front of the insecure server. The attacks died instantly, the server sped up 10x and was never compromised by bots again (presumably since they got back a linux user agent). To this day I marvel at this miracle $5 fix.1 -
What to do when you only think about suicide...
I'm so frustrated about my situation... 3 years with a burn out, My boss keeps treating me badly, no one cares enouf to help, can't go to the owners of the company or else my dad will turn his back on me,...
So saturated
So tired of only suffer
No personal life
On my limits...
One more and I may just cut my rists in front of my jerk boss just so he won't forget of what he did to me...
Saw Start wars Ep VII yesterday... that scene with a bloddy hand on a storm trooper's helmet cames to my head everytime I think about it lol
Wish I had no family... so I wouldn't feel guilty and just get on with it.
Sory for the sad post... have to trow it out and I only trust devrant to do it.... (and not having 20 people following me and never leaving me alone)22 -
Well, I gotta give it to the following:
Gaming-
It was the thing that made me curious about programming and actually brought me into programming in the first place.
Makes my mind fresh and ready to code as well ☺️
Curiosity-
I always had curiosity and that helps me learn all I know. It helped especially in programming since it’s much easier ( imo ) to code if u dive deep in the intricacies of the system.
Support from parents-
I got a lot of support from my parents. Especially my mom who always listened to me babbling of programming and showing interest, and motivating me to continue it 🤗🤗 -
I have been on this project back and forth with this client who keeps adding to the job scope in the name of African elderly person, i just want to get done and collect my money
-
I sometimes wrote song lyrics in comment format on my code while i listen to the music, so my boss will think that i actually write some badass lines of codes.
-
My dad's a silicone guy, my little brother is a java-dev, my mom works for the NHS.
I'm a web and mobile dev.
So... My dad and little bro think I do WordPress and my mom thinks she should earn more than me.
In her defence I'm an NHS patient and I also think her and anyone else in the health industry should earn more than me.8 -
Computer Scientists put the root at the top of their trees because they've never been outside to see what a real tree looks like3
-
Was really motivated and started out with Android development.
Android studio is sick as fuck.I am struck in the second step.The only solution I can find is "try restarting your system".
Like wtf arrrgh!!
After gazillion times of restarts later. Finally, I am giving up.
Thank you google, now go f*ck yourself.9 -
The Devrant Algorithm not only reads everything and then sort by sarcasm but sees everything and then sort by sarcasm.
Even puts Google's cloud vision to shame. -
Had an idea for a devrant tv show, worked in characters and plotline, wrote things down... Took too long to realize it was silicon valley and the it guys...