Click here to Skip to main content
15,884,425 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.

 
GeneralRe: How NOT to calculate the end of month... Pin
Myron Dombrowski17-Jun-20 14:21
Myron Dombrowski17-Jun-20 14:21 
GeneralRe: How NOT to calculate the end of month... Pin
EbenRoux16-Jun-20 23:16
EbenRoux16-Jun-20 23:16 
GeneralRe: How NOT to calculate the end of month... Pin
Rob Grainger16-Jun-20 23:32
Rob Grainger16-Jun-20 23:32 
GeneralRe: How NOT to calculate the end of month... Pin
BDieser17-Jun-20 1:41
BDieser17-Jun-20 1:41 
GeneralRe: How NOT to calculate the end of month... Pin
Rob Grainger17-Jun-20 12:38
Rob 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
dan!sh 25-May-20 18:34
professional dan!sh 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
dan!sh 26-May-20 21:29
professional dan!sh 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
dan!sh 30-May-20 0:36
professional dan!sh 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
professionalKornfeld Eliyahu Peter25-May-20 20:24 
GeneralRe: Client sided login Pin
F-ES Sitecore25-May-20 23:49
professionalF-ES Sitecore25-May-20 23:49 
GeneralRe: Client sided login Pin
phil.o28-May-20 8:22
professionalphil.o28-May-20 8:22 
GeneralRe: Client sided login Pin
dan!sh 2-Jun-20 21:37
professional dan!sh 2-Jun-20 21:37 
GeneralRe: Client sided login Pin
kmoorevs29-May-20 11:27
kmoorevs29-May-20 11:27 
JokeRe: Client sided login Pin
User 1106097915-Jun-20 3:56
User 1106097915-Jun-20 3:56 
GeneralRe: Client sided login Pin
Eddy Vluggen24-Jul-20 12:15
professionalEddy Vluggen24-Jul-20 12:15 
QuestionWhat's the Most Concise, Human-Understandable Practical Language? Pin
johnywhy13-May-20 21:39
johnywhy13-May-20 21:39 
AnswerRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Member 1330167917-May-20 20:47
Member 1330167917-May-20 20:47 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Rob Grainger21-May-20 23:11
Rob Grainger21-May-20 23:11 
RantRe: What's the Most Concise, Human-Understandable Practical Language? PinPopular
Member 1456470917-May-20 20:49
Member 1456470917-May-20 20:49 

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.