|
Subjunctive posted:Or they need to put some RAM in the babby server. My contribution to the incident was asking if they got the server out of a skip
|
# ? Nov 22, 2014 12:05 |
|
|
# ? May 21, 2024 00:12 |
|
baka kaba posted:Don't be silly, it clearly gets tomorrow's date today, when today is tomorrow and tomorrow is today Is your name Arnie?
|
# ? Nov 22, 2014 15:33 |
|
nuvan posted:Internal company tool. Also not the only CFMX7 app that we have, though I've never supported any but this and one other. I'm gonna guess zero. I just found a query yesterday with 70 values from the form scope and 10 from the url scope. Web facing. Zero queryparams.
|
# ? Nov 22, 2014 17:13 |
|
linusBorlaug posted:I'm gonna guess zero. I just found a query yesterday with 70 values from the form scope and 10 from the url scope. Web facing. Zero queryparams. Correct, sir! Also, how do you still have a database? I found it's actually a very zen-like experience to go through the codebase adding queryparams. As a result, I've set up a branch where, if I need to relax at work for a bit, I go through and fix up 2 or 3 files. Of course, in order to keep the zen I'm not verifying the DB column types, just picking based on field name and my memory of the DB structure.
|
# ? Nov 22, 2014 18:37 |
|
I'm the frog
|
# ? Nov 22, 2014 20:01 |
|
nuvan posted:Correct, sir! Also, how do you still have a database? Firewalls and dumb luck. I have spent so much time just going through and adding cfqueryparams down a list in unparamed queries. If sp_help didn't exist as a quick way to get all my data types, I probably wouldn't have a liver anymore.
|
# ? Nov 22, 2014 20:17 |
|
TopShelfer fucked around with this message at 03:47 on Nov 29, 2014 |
# ? Nov 24, 2014 17:26 |
|
I'm sure your employer (or even worse, customer) in the oilfield industry is thrilled with his source code (including obvious security holes) being leaked onto the internet. Sounds like you deserve each other.
|
# ? Nov 24, 2014 17:40 |
|
Skuto posted:I'm sure your employer (or even worse, customer) in the oilfield industry is thrilled with his source code (including obvious security holes) being leaked onto the internet. Sounds like you deserve each other. Seriously wtf mate?
|
# ? Nov 24, 2014 18:04 |
|
Also good job leaking it from your personal dropbox account instead of at least using an anonymous pastebin or something
|
# ? Nov 24, 2014 18:06 |
|
Dude... what are you doing
|
# ? Nov 24, 2014 18:07 |
|
The horror is coming from inside the thread?
|
# ? Nov 24, 2014 18:12 |
|
TopShelfer posted:I have struck gold... Amazing
|
# ? Nov 24, 2014 18:22 |
|
|
# ? Nov 24, 2014 18:29 |
|
That man has three hands.
|
# ? Nov 24, 2014 18:39 |
|
TopShelfer posted:I have struck gold... You are not a good person.
|
# ? Nov 24, 2014 18:39 |
|
TopShelfer posted:Please kill me. I think you've killed yourself
|
# ? Nov 24, 2014 19:06 |
|
Suspicious Dish posted:That man has three hands. Nah, he just has one of those drinking birds hitting the F5 key. A really, really fast one. Also, can anyone spot what's wrong with this query when done using the Drupal database API? SQL code:
|
# ? Nov 24, 2014 19:07 |
|
Suspicious Dish posted:That man has three hands. That's his dick smashing into the F5 key over and over
|
# ? Nov 24, 2014 19:09 |
|
Suspicious Dish posted:That man has three hands. Horrors of all kinds welcome in this thread.
|
# ? Nov 24, 2014 19:17 |
|
TopShelfer posted:I have struck gold... Why would you repost your company's source code like that? I guess it's a good thing you took it down already.
|
# ? Nov 24, 2014 19:32 |
TopShelfer posted:I have struck gold... I hope you were planning on finding a new job.
|
|
# ? Nov 24, 2014 19:40 |
|
Suspicious Dish posted:That man has three hands. That's not his hand. Why did he post so much code when a snippet would be fine?
|
# ? Nov 24, 2014 20:03 |
|
Voronoi Potato posted:That's not his hand. Why did he post so much code when a snippet would be fine? Check his post history. Dude was probably high.
|
# ? Nov 24, 2014 20:14 |
|
To be fair, every line of that code was horrendous. SQL query with 31 INNER JOINs, class with over 1400 member variables, nested ternary operators with assignment expressions as arguments... And is it a horror for a switch statement to use decimal numbers as cases?
|
# ? Nov 24, 2014 20:27 |
|
I don't think anyone is questioning the horror in the code. Why would anyone post that much, apparently unaltered, closed source code is beyond me, and the rest of this thread.
|
# ? Nov 24, 2014 20:34 |
|
qntm posted:To be fair, every line of that code was horrendous. SQL query with 31 INNER JOINs, class with over 1400 member variables, nested ternary operators with assignment expressions as arguments... And is it a horror for a switch statement to use decimal numbers as cases? I wish I wasn't as slow at reading this thread.
|
# ? Nov 24, 2014 20:52 |
|
qntm posted:To be fair, every line of that code was horrendous. SQL query with 31 INNER JOINs, class with over 1400 member variables, nested ternary operators with assignment expressions as arguments... And is it a horror for a switch statement to use decimal numbers as cases? You mean like php:<? case 2.54: die_horribly(); break; case 2.55: sunshine_and_rainbows(); break; ?>
|
# ? Nov 24, 2014 21:26 |
Am I the only person who just hates switch statements of all kinds?
|
|
# ? Nov 24, 2014 21:27 |
|
down with slavery posted:Am I the only person who just hates switch statements of all kinds? Nope. https://www.python.org/dev/peps/pep-3103
|
# ? Nov 24, 2014 21:31 |
|
down with slavery posted:Am I the only person who just hates switch statements of all kinds? It should pretty much only be used with enums and is horribly abused in practice with everything else. Then again a giant if/else or ternary chain can be just as bad or worse
|
# ? Nov 24, 2014 21:37 |
|
hobbesmaster posted:It should pretty much only be used with enums and is horribly abused in practice with everything else. Global dictionary of values -> handlers
|
# ? Nov 24, 2014 21:40 |
|
hobbesmaster posted:It should pretty much only be used with enums and is horribly abused in practice with everything else. switch/case on enums is basically a bad language's substitute for pattern matching on algebraic data types.
|
# ? Nov 24, 2014 21:49 |
|
Suspicious Dish posted:That man has three hands. Geeze, everyone's a critic
|
# ? Nov 24, 2014 21:51 |
|
Soricidus posted:switch/case on enums is basically a simpler language's substitute for pattern matching on algebraic data types. switch/case can be used to implement a particularly feature not in the language, yes. goto's and longjmps are also used regularly in C code that needs exception handling.
|
# ? Nov 24, 2014 21:54 |
|
I gotta admit, I'm a coding horror. Something about switch/case just feels so right to me. Generally not for controlling program execution, but I do a lot of undifferentiated string parsing from multiple suspect sources (e.g. EDI files, csv files, multi-standard XML files) so if I want to store "red" then I'm SELECT CASE'ing through "crimson","redd","rouge","scarlet","blood" etc etc.
|
# ? Nov 24, 2014 22:09 |
|
Mogomra posted:I don't think anyone is questioning the horror in the code. Is this source code really something a competitor would want to steal? (I've never worked on/with closed source code, so I don't have much intuitive understanding as to why it's supposed to be sensitive. Most code is almost useless without its documentation or supporting environment anyway, and if it's not, you probably can't claim you wrote it without it being trivially obvious that you did not.)
|
# ? Nov 24, 2014 22:28 |
|
It's not about stealing it, it's about breaking the NDA or other contract you inevitably signed with your employer saying you won't share proprietary code. Posting snippets like in this thread is excusable, posting 7 whole files is not. There are plenty of other reasons an employer wouldn't want this code to get out. What happens when someone identifies the company? Now a Google search could tell us that the company has terrible, terrible coding practice and suddenly they have a hard time hiring developers or have to start paying more for them.
|
# ? Nov 24, 2014 22:36 |
|
|
# ? May 21, 2024 00:12 |
|
Bognar posted:or have to start paying more for them. And that's a bad thing?
|
# ? Nov 24, 2014 22:43 |