Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Newest
 Editor
Impact
0 people reached

Dec
16
comment Why would you store an enum in DB?
@MichaelT The list of possible values of "priority" is a part of the code at least to the same extent that it is a part of the data. You do see graphical icons for various priorities? You don't expect they are pulled off the database? And stuff like that could be themed and styled and still represent the same range of values stored in DB. You cannot just change it in database anyway; you have presentation code to sync.
Nov
11
comment Two structs with the same members but different naming, is it a good idea?
I can probide an example of what I've done: FIR filtering polars, cartesians and vectors thereof. The math was quite similar, sans angle (un)wrapping, the code had some parts duplicated anyway for performance reasons and we used templates for where it was the same. Used different names for all stuff. Cort's "extreme solution" could have saved a few duplications, but not nearly all of them.
Nov
6
comment Alternative to coding directly on server?
Strange as it seems, this might be just fine medium term with two minor fixes: (1) use two test severs, one for dev, one for pre-production to make sure you can test stable code; (2) start using some vsc, like git - start with a nightly automated commit on dev server, manual push to pre-production server, and advertise from there.
Nov
6
comment Alternative to coding directly on server?
OP says "we do it directly on the test server".
Nov
6
comment Alternative to coding directly on server?
@Tom.Bowen89 In OP's case "run locally" is not a solutin, it is a bag of problems quite larger then the original bag. Not sure why this answer gets so many upvotes.
Sep
23
comment What are the benefits of dependency injection in cases where almost everyone needs access to a common data structure?
@gbjbaanb I believe the idea is to have one client class able to work exclusively on either ZorkA or ZorkB as pointed, not to have client class decide which of them to grab.