Click here to Skip to main content
13,828,551 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Curiousity question Pin
Mycroft Holmes11-Jan-19 12:45
memberMycroft Holmes11-Jan-19 12:45 
GeneralRe: Curiousity question Pin
DerekTP12311-Jan-19 13:26
professionalDerekTP12311-Jan-19 13:26 
GeneralRe: Curiousity question Pin
PIEBALDconsult11-Jan-19 15:49
protectorPIEBALDconsult11-Jan-19 15:49 
GeneralRe: Curiousity question Pin
PIEBALDconsult11-Jan-19 15:48
protectorPIEBALDconsult11-Jan-19 15:48 
GeneralRe: Curiousity question Pin
Sander Rossel12-Jan-19 5:33
professionalSander Rossel12-Jan-19 5:33 
GeneralApple II Pin
Leng Vang11-Jan-19 8:24
memberLeng Vang11-Jan-19 8:24 
GeneralRe: Apple II Pin
dandy7211-Jan-19 14:16
memberdandy7211-Jan-19 14:16 
GeneralCool Code Pin
John Simmons / outlaw programmer11-Jan-19 7:35
mveJohn Simmons / outlaw programmer11-Jan-19 7:35 
We have a command line app we run to import data from "foreign" databases. Each foreign database provides its own web service. We import the data in one of four databases, depending on what environment we're in, but we can redirect the imported data into and of the four databases by a command line switch.

We use the database to determine how the app runs via a table of configuration settings. There are also arbitrary command line switches that let you change some (but not all) of the values, however not all of the command line switches are handled through the appconfig object (even though they might override a value retrieved from the database.

I'm almost done with a re-write of that section of code that:

0) Pulls config settings from the database (as before), but only for the specified program type (foreign database source)

1) Allows ANY of those values to be overridden, because I use reflection to get the appconfig object's property names, as well as a generic SetValue method.

2) Produces a program type-specific help screen (if the command line args are something like "/progtype /?"), or an app help screen that describes all possible arguments (again, using reflection for the property names and their default database values

It's pretty impressive, if I do say so myself.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: Cool Code Pin
OriginalGriff11-Jan-19 7:48
protectorOriginalGriff11-Jan-19 7:48 
GeneralRe: Cool Code Pin
PIEBALDconsult11-Jan-19 8:02
protectorPIEBALDconsult11-Jan-19 8:02 
GeneralRe: Cool Code Pin
MarkTJohnson11-Jan-19 8:17
professionalMarkTJohnson11-Jan-19 8:17 
GeneralRe: Cool Code Pin
Gary R. Wheeler11-Jan-19 10:25
memberGary R. Wheeler11-Jan-19 10:25 
QuestionIf you could live forever, would you want to? Pin
  Forogar  11-Jan-19 6:00
professional  Forogar  11-Jan-19 6:00 
AnswerRe: If you could live forever, would you want to? Pin
Richard Deeming11-Jan-19 6:20
mveRichard Deeming11-Jan-19 6:20 
GeneralRe: If you could live forever, would you want to? Pin
Leng Vang11-Jan-19 7:30
memberLeng Vang11-Jan-19 7:30 
GeneralRe: If you could live forever, would you want to? Pin
dandy7211-Jan-19 13:53
memberdandy7211-Jan-19 13:53 
GeneralRe: If you could live forever, would you want to? Pin
Daniel R. Przybylski14-Jan-19 6:51
memberDaniel R. Przybylski14-Jan-19 6:51 
AnswerRe: If you could live forever, would you want to? PinPopular
W Balboos11-Jan-19 6:23
mveW Balboos11-Jan-19 6:23 
GeneralRe: If you could live forever, would you want to? Pin
raddevus11-Jan-19 6:32
mvaraddevus11-Jan-19 6:32 
GeneralRe: If you could live forever, would you want to? Pin
Rage11-Jan-19 6:34
professionalRage11-Jan-19 6:34 
AnswerRe: If you could live forever, would you want to? Pin
Maximilien11-Jan-19 6:25
memberMaximilien11-Jan-19 6:25 
AnswerRe: If you could live forever, would you want to? Pin
Donathan.Hutchings11-Jan-19 6:26
professionalDonathan.Hutchings11-Jan-19 6:26 
AnswerRe: If you could live forever, would you want to? Pin
den2k8811-Jan-19 6:27
professionalden2k8811-Jan-19 6:27 
GeneralRe: If you could live forever, would you want to? Pin
dandy7211-Jan-19 13:54
memberdandy7211-Jan-19 13:54 
AnswerRe: If you could live forever, would you want to? Pin
theoldfool11-Jan-19 6:29
membertheoldfool11-Jan-19 6:29 

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.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190114.1 | Last Updated 15 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid