Details
-
SkillsC#, Java, Python, C++
-
LocationEgypt
Joined devRant on 9/21/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
-
Your OS is like a penis... Its fine to be proud of it, its fine to tell people about it. But its not fine to force it on other people...11
-
Does anyone else have a mini heart attack when you touch your pockets and can't feel your phone for a second?12
-
I really like the idea of DevRant; however, it really hurts to turn my head 90 degrees to read what I'm typing on my iPad Pro. Please fix this and make your app support auto rotate. There's no reason to keep it locked to a portrait.1
-
Autocomplete in editors is like that annoying friend that keeps interrupt();ing every singletonInstance():le thing you try{}catch(Exception e)} to say, delay(1000);ing you COUNT(*)ntless of times.3
-
When your happy your rant has enough votes to earn you a stress ball only to realize that they raised the limit since the last time you checked...6
-
This hack is totally shameless. I quit smoking a couple years ago just to start vaping. And I always was allowed to vape at my office desk.
No stressballs Jedi this needs. -
Just finished listening to devRant's new podcast. In fact, I listened twice! So good, so much info and so much fun. Special guest Andy Hunt, surprise devRant community members and more. Each segment was a blast.
Thanks @trogus and @dfox for a great inaugural podcast. Can't wait for the next episode.
I hope everyone has an opportunity to enjoy it. https://devrant.io/podcasts/... -
Probably the biggest one in my life.
TL:DR at the bottom
A client wanted to create an online retirement calculator, sounds easy enough , i said sure.
Few days later i get an email with an excel file saying the online version has to work exactly like this and they're on a tight deadline
Having a little experience with excel, i thought eh, what could possibly go wrong, if anything i can take off the calculations from the excel file
I WAS WRONG !!!
17 Sheets, Linking each other, Passing data to each sheet to make the calculation
( Sure they had lot of stuff to calculate, like age, gender, financial group etc etc )
First thing i said to my self was, WHAT THE FREAKING FUCK IS THIS ?, WHAT YEAR IS THIS ?
After messing with it for couple of hours just to get one calculation out of it, i gave up
Thought about making a mysql database with the cell data and making the calculations, but NOOOO.
Whoever made it decided to put each cell a excel calculation ( so even if i manage to get it into a database and recode all the calculations it would be wayyy pass the deadline )
Then i had an epiphany
"What if i could just parse the excel file and get the data ?"
Did a bit of research sure enough there's a php project
( But i think it was outdated and takes about 15-25 seconds to parse, and makes a copy of the original file )
But this seemed like the best option at the time.
So downloaded the library, finished the whole thing, wrote a cron job to delete temporary files, and added a loading spinner for that delay, so people know something is happening
( and had few days to spare )
Sent the demo link to client, they were very happy with it, cause it worked same as their cute little excel file and gave the same result,
It's been live on their website for almost a year now, lot of submissions, no complains
I was feeling bit guilty just after finishing it, cause i could've done better, but not anymore
Sorry for making it so long, to understand the whole thing, you need to know the full story
TL:DR - Replicated the functionality of a 17 sheet excel calculator in php hack-ishly.8 -
So, I told my programmer friend to bring food for us while you are out.
He has still not came, Should I be worried ?2