16
u/jewishsupremacist88 Oct 02 '20
this is every fortune 500 company ever. contractors are there just to clean up the mess from the previous group of contractors. even if you do the job right and to spec, in 3-6 months the reqs will change and it will have to be re-done
7
u/fifa_addict_ps4 Oct 02 '20
anyone ever wondered what happens if you add extra row on sys.dual table ? ( DO NOT TRY IT IN PROD! )
2
5
9
6
Oct 02 '20
I install kill switches deep in code. I'm gone more than 7 work days in a row, all tables disappear
14
Oct 02 '20 edited Oct 02 '20
I put ASCII art in my code and comment it out. I just finished a database project with dozens of views & sprocs, and in any of the significant ones you'll find some random ASCII picture, either a comic, or famous work of art, etc., most of which have names of business partners involved & the date the code was deployed.
Serves a dual purpose. One, I think it makes the code beautiful, but more importantly it tells me who was involved n the relevant business decisions. We don't have comprehensive documentation yet (haha, probably never will), but these help serve as markers. For example, in one particularly complex piece of codes I have an ASCII penguin, because the head of a certain team uses a penguin as their avatar. This person wrote the book on the subject matter which the sproc deals with, and let's me/everyone else know that it was signed off on by the highest levels.
Later I'll use these markers as I develop documentation... if I ever have time.
2
Oct 02 '20
Love this idea!! Stealing it! Add some pop culture to your scripts
3
Oct 02 '20
If I'm waiting for jobs to run I'll Google things like, "famous ASCII art" and poke around. I try to find something relevant to the code itself, so for example in one of our views that is pretty crazy (if you select * from it, it will generate 1B rows and take a really long time to run) I included a Beavis and Butthead ASCII piece where they talk about breaking a computer, then signed my, and the initials of other people involved in building it, along with the date it was deployed.
0
2
1
u/TikiTDO Oct 03 '20 edited Oct 03 '20
My approach is simple. I genuinely do the best I can, taking advantage of any opportunity to expand my skill-set, under the understanding that the skills I develop are worth a whole lot more than some job security at a replaceable job that seems me as a replaceable part.
People in IT fields seem to constantly have this fear that they might have to take their 2-5 years of additional relevant job experience, and have to go through the trouble of finding a more senior job that pays better, with a better culture-fit, and more interesting projects. What actually ends up happening is that they inevitably jump ship anyway, and all the weird hacks and tricks they put into their code in the name of "job-security" end up as a genuine nightmare for someone that's probably not qualified to understand even a fraction of the problems being solved, nor the reasoning behind such convoluted approaches.
There's rarely much benefit in clinging onto the same job while you develop an ever-evolving set of advanced skills, while there's often a huge benefit to occasionally hopping onto a new project, if only because you can demand significantly more from a new employer for the extra years of experience than you could expect to get as a raise from one employer. If you can take that next job after learning a healthy set of useful skills and good design patterns, that's only better for you. By contrast, if you spent half your time writing code that belongs in a obfuscated code contest, you're just shooting yourself in the foot with a rocket launcher because the type of code you spent most of your time writing will inevitably affect the type of code you write in the future.
1
u/datb0mb Oct 12 '20
I've always wondered something. You know when sports announcers on TV come up with crazy stats?
"LeBron has had 10 triple doubles in the last 3 years with total points above 20 when down by 10 in the 3rd quarter."
Do they use SQL to pull back stats for this?
0
24
u/Luffydude Oct 02 '20
How to screw up text searches without being as obvious as dropping th index? Asking for a friend