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
Search - "witchcraft"
-
"I made your static HTML pages into a dynamic site! Now just include <%Header%> instead of copy pasting that nav into every page!"
...1 week later...
"You made our website all crazy. None of the pages have headers in the source code but it still shows up by some kind of witchcraft. Put it back."2 -
Witchcraft: Code that has been optimized to a point at which even its author has no concept of exactly how it works, only what it is used for.1
-
Me: Listen dude, the code worked perfectly and all the test cases passed so I'm done here.
Also me: What is this? What the fuck is this? Why does this work? What witchcraft is this?
*Screams internally*1 -
Seeing anything serious written in cpp with in line assembly, that level of witchcraft fascinates me2
-
What profession would you say is most like software development? I'd love to be able to give people an idea of what I do, without making it sound like witchcraft...10
-
Developing a web app that I'm sure was touched by Satan himself. Bugs come out from no where.
Yesterday when I left everything worked. Today when I arrived nothing works! Lots of angular errors. WTF. No one else worked on it . :O4 -
I am currently a high school student. I am currently working in an internship for a local company. Super nice mentors and owner.
Anyhow, I was working on turning sensors data into JSON files which would be later sent to a server through HTML GET requests. I struggled with this for several days. The server received the data but displayed them as 'null'. Mentor came in to help. He changed 'println' to 'print' in the code where the JSON data are compiled. Then the thing works.
Witchcraft, I tell thee.
PS. First post2 -
devRant.. I need your help.
So for the last year I've been self teaching myself python, go, & haskell. I've really been enjoying myself, to the point we're I would like to make it my career. Insert problem, I stumbled upon ECU(engine control unit) reprogramming & flashing, and instantly fell in love with the idea. However I can not find any information it. Every college I've called talks to me like I just asked them to teach me witchcraft.
Does any dev have experience with ecu programming? How did you get into it?
Thanks!5 -
I'm currently between jobs and have a few rants about my previous job (naturally). In retrospect, it's somewhat therapeutic to range about the sheer brainfuckery that has taken place. Enjoy!
First, let me set the scene: legacy B2B web app made with LEMP stack and sencha ext.js 3 + 4 (don't ask) and a lot of madness. Let's call that app "Alpha".
Alpha is a self made CMS build for typical ERP stuff. Yes, a self made CMS: entities are containers, containers have types and fields and values. Like so many legacy PHP apps, it does not have a dedicated FE: the HTML is rendered on the server and then spewed out to the browser.
Easy right? Coding like it's 1999! But there was a twist: Because everything is basically a container, the HTML-templates are saved in the DB. Along with the nessary JS and the CSS. And the translation variables. Why? Because fuck you! That's why. Who needs a git history anyways.
For some reason, Alpha was kinda slow.
There was also an editor, that allowed you to modify templates (web, mail, pdf) on the fly in prod. Because templates contain repeating data (header/footer), one template could contain additional templates. Much confusion. You could change templates via migration (slow, boring) or just ctrl-c/ctrl-v that sucker (fast, much excitement).
Did I mention Alpha was slow?
On with the rant: e-mails! How do they work? Noone knows. How to send mails asynchronous in PHP? Witchcraft is the only possible answer to that riddle. Here is your enterprise™ solution:
1. create mail
2. insert mail into DB
3. WAIT UP TO 59 SECONDS FOR A FUCKING CRON TO SEND MAIL
Why? "Because that way, we can resend mails in case the network is down :)"
Same procedure for the SOAP-API (db-queue + cron). You read that right: all requests to various other systems are processed once a minute.
Alpha slow.
Alpha was only one of several systems. Imagine a bunch of monolithic php apps, interconnected via SOAP, REST and GraphQL like a godamn intergalactic orgy. Image having to debug that cluster fuck.
Let's say there is a bad request. These things happen. No biggie. Remember the db-queue? Let's try to send the bad request a second time! And a third time! Still no luck? How odd. Let's create a specific file in a specific directory: a LOCK-file. Now, "the db-queue is on hold and no request gets processed :)"
Golly gee thanks Alpha.
Anyhow, did you know that MySQL has a join limit of 61 tables?3 -
Can somebody please explain to me why I need to be an expert at witchcraft & dark magic just to merge 2 SVN branches. And why the fuck anybody still uses SVN when there's git.5
-
Witchcraft is what windows update is. Turned my C:\ drive partition to RAW during an upgrade. I had to start over, no files...nothing. I was shaved bald. It was a sad night.
-
Alright so when I take over the world in my dreams I will burn all non modifiable devices (so many new Samsung phones and every Mac product, though that is for separate reasons, etc) in a cleansing blaze. And possibly their owners because they are witches, but the church of Aquarius has yet to ratify an official position on witchcraft. Also we are fairly green so the cleansing fire is more symbolic than anything.
Anyway, QUICK. Someone give me a good name for my controlled purge/culling. Bonus points for dramatic sounding names that are secretly punny/funny (haha inside jokes in dark times). This definitely isn't for a novel that I don't want to give you any credit for. -
Tfw you see "So here is the magic behind the following." as coding comment the day after you declared a separate modification that you made as "witchcraft".