Click here to Skip to main content
14,580,589 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
General99 bottles of beer in Malbolge Pin
Brisingr Aerowing29-Jun-20 6:17
professionalBrisingr Aerowing29-Jun-20 6:17 
GeneralHow NOT to calculate the end of month... PinPopular
Rob Grainger15-Jun-20 2:01
MemberRob Grainger15-Jun-20 2:01 
GeneralRe: How NOT to calculate the end of month... Pin
OriginalGriff15-Jun-20 2:38
mveOriginalGriff15-Jun-20 2:38 
GeneralRe: How NOT to calculate the end of month... PinPopular
Rob Grainger15-Jun-20 3:06
MemberRob Grainger15-Jun-20 3:06 
GeneralRe: How NOT to calculate the end of month... Pin
OriginalGriff15-Jun-20 3:10
mveOriginalGriff15-Jun-20 3:10 
GeneralRe: How NOT to calculate the end of month... Pin
0x01AA15-Jun-20 3:19
mve0x01AA15-Jun-20 3:19 
GeneralRe: How NOT to calculate the end of month... Pin
Member 798912215-Jun-20 3:37
MemberMember 798912215-Jun-20 3:37 
GeneralRe: How NOT to calculate the end of month... Pin
0x01AA15-Jun-20 4:00
mve0x01AA15-Jun-20 4:00 
GeneralRe: How NOT to calculate the end of month... Pin
Marc Clifton15-Jun-20 4:59
mvaMarc Clifton15-Jun-20 4:59 
GeneralRe: How NOT to calculate the end of month... Pin
obermd17-Jun-20 4:29
Memberobermd17-Jun-20 4:29 
GeneralRe: How NOT to calculate the end of month... Pin
Myron Dombrowski17-Jun-20 14:21
MemberMyron Dombrowski17-Jun-20 14:21 
GeneralRe: How NOT to calculate the end of month... Pin
EbenRoux16-Jun-20 23:16
MemberEbenRoux16-Jun-20 23:16 
GeneralRe: How NOT to calculate the end of month... Pin
Rob Grainger16-Jun-20 23:32
MemberRob Grainger16-Jun-20 23:32 
GeneralRe: How NOT to calculate the end of month... PinPopular
BDieser17-Jun-20 1:41
MemberBDieser17-Jun-20 1:41 
GeneralRe: How NOT to calculate the end of month... Pin
Rob Grainger17-Jun-20 12:38
MemberRob Grainger17-Jun-20 12:38 
GeneralClient sided login Pin
Brisingr Aerowing25-May-20 12:42
professionalBrisingr Aerowing25-May-20 12:42 
GeneralRe: Client sided login Pin
lw@zi 25-May-20 18:34
professional lw@zi 25-May-20 18:34 
GeneralRe: Client sided login Pin
Sander Rossel25-May-20 19:59
professionalSander Rossel25-May-20 19:59 
I want to believe this is a joke too and that an entire team cannot be that stupid...
But I'm not so sure Sigh | :sigh:

I once worked for a company who had their own "security framework".
The idea was that you entered a username and password, the application would use those to login to SQL Server and if that succeeded you were logged in.
So a user in SQL Server was a user in the system and a user in the system couldn't exist without a user in SQL Server.
It supported Windows authentication too.
The application had a form to enter new users and those users would be added in SQL Server too.
It was a WinForms application on intranet so I guess it wasn't much of an issue, but it's really not how to do authentication WTF | :WTF:
I think we ran into some issues at one point though.

They built it when I was already an employee and I advised against it and advised a more "traditional" approach, but I was just a junior back then and according to the technical director this really was the best method.
Cost him months to build too Laugh | :laugh:

I just remembered the issue we ran into!
After a backup or some such, all users ended up being "orphaned" and everybody lost access to the database and the application.
Happened more than once too.
A 200+ employee company Laugh | :laugh:

GeneralRe: Client sided login Pin
lw@zi 26-May-20 21:29
professional lw@zi 26-May-20 21:29 
GeneralRe: Client sided login Pin
Sander Rossel26-May-20 21:51
professionalSander Rossel26-May-20 21:51 
GeneralRe: Client sided login Pin
Andreas Mertens17-Jun-20 6:22
professionalAndreas Mertens17-Jun-20 6:22 
GeneralRe: Client sided login Pin
DerekT-P28-May-20 6:33
professionalDerekT-P28-May-20 6:33 
GeneralRe: Client sided login Pin
lw@zi 30-May-20 0:36
professional lw@zi 30-May-20 0:36 
GeneralRe: Client sided login Pin
DerekT-P30-May-20 2:18
professionalDerekT-P30-May-20 2:18 
GeneralRe: Client sided login Pin
Kornfeld Eliyahu Peter25-May-20 20:24
mveKornfeld Eliyahu Peter25-May-20 20:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.