@ShatteredArm said:
I'm not familiar with the C+ language. I guess that disqualifies me?
You probably wouldn't like it. It's barely above average.
@ShatteredArm said:
I'm not familiar with the C+ language. I guess that disqualifies me?
You probably wouldn't like it. It's barely above average.
From our library code:
public static function getPermissions(Company_User $user) { if (!($user instanceof Company_User)) {
Note: I wrote the original implementation of getPermissions, and the redundant check was not in place. It was added later by another one of our developers, who clearly doesn't understand how type hinting works. The code afterward attempts to go out and get the currently logged in user if a valid user isn't passed to the function. I tried to explain that would never happen, but I don't think he really got the gist of what I was trying to explain.
I'm a web developer for a small ISP, and as a course of doing business we expose limited functionality from our internal Network Management System to our customers. Sadly, this NMS provides zero functional API that I'm aware of, so everything we do with it boils down to a semi-hack. Not a big deal, it still works fairly well most of the time, but recently our admin made a change on the NMS server that broke one of the pieces of functionality we provide (a very simple network monitoring service that allows the user to enter a usage threshold and receive emails when a circuit exceeds that given percentage, as well as a second email when the circuit falls back below the given percentage). After doing some assessment, I laid out what would be needed to fix it -- the data structure that we were originally using wouldn't work, so there would need to be some modifications to a couple database tables, as well as modifications to the scripts that import and process the circuits as well as the code that saves the information on what percentage the customer wants to be alerted at. Fairly simple stuff, perhaps a couple days worth of work though made more complicated due to the fact that I don't have a test environment that will work to fully test the edge cases of the implementation (a WTF in itself). Since I'll be off work all next week, I let the admin know that we probably won't be able to have a fix in place until after the first of the year, due to wanting to make sure that everything works before we push any kind of update out.
The admin, unbeknownst to myself decided to just go off and write a script to try and solve this whole problem himself, despite the fact that when I was trying to explain the process to him yesterday, it took three tries just to get him to understand the simple process of correlating a circuit to a given customer email and threshold percentage, and he's never coded a day in his life. This morning, he IMs me asking for help on his perl script (never mind that I'm still waiting for specifications on which pieces of data we need to be importing/processing in order to make the changes he's requested), and the thing is a total mess. I tell him not to do it, but instead to let it go through the proper channels and fix things correctly instead of trying to institute a hack workaround, since hacks like this are guaranteed to break over the holidays, and better than half our development team will be out for the holidays (including the only person who properly understands how all of this works -- me). He informs me that it "has to be done today", because this customer has been "calling for weeks" (yet the first ticket for it wasn't opened until Wednesday).
My only regret is that I'm not going to be here next week to watch this thing blow up.