Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 9428

Questions about problem solving and planning for a solution through software design.

5 votes

What to do if a core function does exactly what you need to do, but has a bug

I would suggest that quite possibly what you have here is down to the poor naming of the code that exists. The method name normalizeCssColor doesn't really mean that much to me What are we normalisin …
Paddy's user avatar
  • 2,633
8 votes

If functions have to do null checks before doing the intended behaviour is this bad design?

The other answers point out that your code can be cleaned up to not need a null check where you have it, however, for a general answer on what a useful null check can be for consider the following sam …
Paddy's user avatar
  • 2,633
8 votes

Is code being constantly rewritten and is it therefore pointless to worry about the quality ...

This is something that I would be very wary of in a private company. I have personally encountered a number of times that a 'quick and dirty' prototype has been put in place and that 'prototype' has …
Paddy's user avatar
  • 2,633
2 votes
Accepted

Looking for pros/cons on using OWIN vs. a simple hand-rolled token based auth

Couple of things after a quick look: App domain reloads on your server will clear out your token dictionary and cause clients to be logged out. Also not possible to effectively scale this over diff …
Paddy's user avatar
  • 2,633
0 votes

When to throw error in response vs save error in database for POST API

I think you should also think about how your flow works here: 3. Call the Generic Personnel Service with the input and create the Personnel. 4. If call passes, create the entry in my datastore for t …
Paddy's user avatar
  • 2,633