Friday Deliveries #1
3 min readFeb 4, 2019
Starting a recurring topic about the boldest, sleekest, most unconventional approaches to software development.
These programming masterpieces are way ahead of their time, but we shall appreciate them as they deserve. Here are some top notch stunts I’ve ever seen developers do.
- Use staging environment to push data to production environment, for “performance purposes”. And permission issues, of course.
- Unknowingly push an experimental feature to production. Found out because of customer compliments.
- Fix error by removing the error message
error = "" // fixed it
- Fix error by removing the error checking
// if (status == 500) then error
- Solve memory overflow by increasing memory limit
ini_set('memory_limit','2048M'); // love me some php
- Solve timeout by removing the timeout.
- Redirecting git blame because you know the code is bad. Yes it exists !
- Precise, descriptive and unequivocal git commit messages
‘Pronto bs’ - 1 line, 1 file‘Greg’s dumb suggestions’ - 2 lines, 1 file‘Gibberish’ - 523 lines, 37 files
- Permafix for automated tests
expect(1).to eq(1) #PASS, ALL DAY BABY
- Build dynamic html on the controller. Much easier :neckbeard:
- Wishful coding
let(:weekday) { 'friday' }
- Store PHP code on the database. Just select and eval :)
- Put PHP code on cookie and eval. No hacker will ever expect this!
- Unexisting models. View/Controller is all you need.
- Import jquery to use it once. “I refuse to write one longer line of code”
- Import/include error fix: Just move all the code to a single file. No more problems.
I’d love to hear more, let me know your top stunts too!