Click here to Skip to main content
14,267,679 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.

 
GeneralWizardWrx .NET API, version 7.15 Pin
David A. Gray28-Apr-19 15:57
groupDavid A. Gray28-Apr-19 15:57 
GeneralWell, at least they use SQL Server Pin
PIEBALDconsult20-Apr-19 5:03
protectorPIEBALDconsult20-Apr-19 5:03 
GeneralRe: Well, at least they use SQL Server Pin
kmoorevs20-Apr-19 12:33
memberkmoorevs20-Apr-19 12:33 
GeneralRe: Well, at least they use SQL Server Pin
Slacker00722-Apr-19 21:55
professionalSlacker00722-Apr-19 21:55 
GeneralRe: Well, at least they use SQL Server Pin
Brisingr Aerowing20-Apr-19 12:48
professionalBrisingr Aerowing20-Apr-19 12:48 
JokeRe: Well, at least they use SQL Server Pin
Anurag Gandhi11-May-19 6:52
professionalAnurag Gandhi11-May-19 6:52 
GeneralRe: Well, at least they use SQL Server Pin
Member 1433107613-May-19 4:31
memberMember 1433107613-May-19 4:31 
GeneralSo we have this service at work... Pin
MadMyche19-Apr-19 5:28
mveMadMyche19-Apr-19 5:28 
Which was build by a real good programmer before my time, which allows our various business groups to connect to an external 3rd party API. So far so good...

Each of the business groups has their own profile with that the external resource; they have a GUID for a license and an alias so that it is easy to see which group any GUID is associated with. Still good...

We have developed the applications that utilize this service for all but one of our business groups. The last thinks they are good enough to do their own thing. Fine. Their applications group has about 3x the staff as ours so let them do their own thing. OK....

Now they want full access to our DB or an API so that they can lookup their historical requests. Ummm... we'll do an API thank you. Blueprint it up to require the key and their CustomerID... No, authentication/authorization is not needed as this will be an internal API only. Oh we're starting to go downhill now....

From prototypes I had to do their requests manually, had this new API up in a couple of days.

Now the problems come into view.
1. On our side of the wall, what do you mean there is no auth required.
2. And from them, we don't know our key. Whomever on their side compiled an assembly so that they could just use their Alias for identification, and they don't have the source code.

Ugh...

So the politicians settled on this mind-number yesterday afternoon:
1. A new GUID will be created on our end for each business group.
2. A new endpoint is created where they give us their alias, and we will return this new GUID.
3. Prior endpoints will be rewritten-
3A. Instead of their license key being required, they will pass in their alias instead.
3B. The requests will require an Auth request header, containing the new GUID.

Yep... glad I have today off. Need to have it ready by Monday end-of-business.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional

GeneralRe: So we have this service at work... Pin
Rick York2-May-19 4:44
mveRick York2-May-19 4:44 
GeneralStupid user tricks (double-click = double postback) Pin
kmoorevs18-Apr-19 12:07
memberkmoorevs18-Apr-19 12:07 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Super Lloyd18-Apr-19 12:30
memberSuper Lloyd18-Apr-19 12:30 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
honey the codewitch18-Apr-19 12:55
memberhoney the codewitch18-Apr-19 12:55 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
grralph118-Apr-19 23:29
membergrralph118-Apr-19 23:29 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
OriginalGriff19-Apr-19 0:37
protectorOriginalGriff19-Apr-19 0:37 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
grralph119-Apr-19 1:11
membergrralph119-Apr-19 1:11 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Jacek Gajek22-Apr-19 21:41
memberJacek Gajek22-Apr-19 21:41 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
MadMyche19-Apr-19 5:38
mveMadMyche19-Apr-19 5:38 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
kmoorevs19-Apr-19 5:16
memberkmoorevs19-Apr-19 5:16 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Brisingr Aerowing20-Apr-19 12:32
professionalBrisingr Aerowing20-Apr-19 12:32 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
kmoorevs20-Apr-19 13:02
memberkmoorevs20-Apr-19 13:02 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
DerekT-P12-Jun-19 9:14
professionalDerekT-P12-Jun-19 9:14 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
kmoorevs13-Jun-19 7:18
memberkmoorevs13-Jun-19 7:18 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
Nelek22-Apr-19 21:50
protectorNelek22-Apr-19 21:50 
GeneralRe: Stupid user tricks (double-click = double postback) Pin
David A. Gray28-Apr-19 14:52
groupDavid A. Gray28-Apr-19 14:52 
QuestionConcept of "Password Mode" Pin
Bogatitus17-Apr-19 16:03
memberBogatitus17-Apr-19 16:03 

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.