Click here to Skip to main content
15,895,777 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The only thing worse than an algorithm implementation that doesn't work Pin
honey the codewitch4-Apr-19 4:17
mvahoney the codewitch4-Apr-19 4:17 
GeneralQuestion at work today. Beer Pin
rnbergren4-Apr-19 3:56
rnbergren4-Apr-19 3:56 
GeneralRe: Question at work today. Beer Pin
S Douglas4-Apr-19 4:49
professionalS Douglas4-Apr-19 4:49 
GeneralRe: Question at work today. Beer Pin
RJOberg4-Apr-19 5:29
professionalRJOberg4-Apr-19 5:29 
GeneralRe: Question at work today. Beer Pin
dandy724-Apr-19 12:04
dandy724-Apr-19 12:04 
GeneralI suddenly realized Pin
#realJSOP4-Apr-19 3:41
mve#realJSOP4-Apr-19 3:41 
GeneralRe: I suddenly realized Pin
honey the codewitch4-Apr-19 3:44
mvahoney the codewitch4-Apr-19 3:44 
GeneralRe: I suddenly realized Pin
#realJSOP4-Apr-19 5:17
mve#realJSOP4-Apr-19 5:17 
The most recent example is the code I wrote to import a NESSUS xml file. The various elements all have different attributes, and we needed to dynamically identify those attributes for inserton into the database. The best way to do it was to use reflection to handle the various properties in the C# objects. What would have been at least 5000 lines of code was reduced to a couple of hundred lines. This also lets me build the sql tables (and insert into them) on the fly without worrying about what data is coming in (the tables are dropped and recreated for each imort cycle, and using reflection means I don't have to worry about adapting the table building code to new/deleted properties in the objects). This app replaced a perl script, and my app handles abnout twice the data and takes about 20% of the time that the perl script did, not to mention is more maintainable because we have a bunch of C# devs that don't have any real perl experience (and aren't interested in gaining any).

I also use reflection to build datatables from an imported csv or excel file.
".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


modified 4-Apr-19 11:23am.

GeneralRe: I suddenly realized Pin
honey the codewitch4-Apr-19 7:10
mvahoney the codewitch4-Apr-19 7:10 
GeneralRe: I suddenly realized Pin
Daniel Pfeffer4-Apr-19 3:46
professionalDaniel Pfeffer4-Apr-19 3:46 
GeneralRe: I suddenly realized Pin
honey the codewitch4-Apr-19 3:48
mvahoney the codewitch4-Apr-19 3:48 
GeneralRe: I suddenly realized Pin
Mike Hankey4-Apr-19 3:49
mveMike Hankey4-Apr-19 3:49 
GeneralRe: I suddenly realized Pin
RickZeeland4-Apr-19 3:49
mveRickZeeland4-Apr-19 3:49 
GeneralMadness, Coding and Meds Pin
honey the codewitch4-Apr-19 3:21
mvahoney the codewitch4-Apr-19 3:21 
GeneralRe: Madness, Coding and Meds Pin
Slacker0074-Apr-19 3:29
professionalSlacker0074-Apr-19 3:29 
GeneralRe: Madness, Coding and Meds Pin
honey the codewitch4-Apr-19 3:38
mvahoney the codewitch4-Apr-19 3:38 
PraiseRe: Madness, Coding and Meds Pin
Nelek4-Apr-19 4:35
protectorNelek4-Apr-19 4:35 
GeneralRe: Madness, Coding and Meds Pin
RickZeeland4-Apr-19 3:38
mveRickZeeland4-Apr-19 3:38 
GeneralRe: Madness, Coding and Meds Pin
honey the codewitch4-Apr-19 3:41
mvahoney the codewitch4-Apr-19 3:41 
GeneralRe: Madness, Coding and Meds Pin
honey the codewitch4-Apr-19 3:47
mvahoney the codewitch4-Apr-19 3:47 
GeneralRe: Madness, Coding and Meds Pin
dan!sh 4-Apr-19 3:35
professional dan!sh 4-Apr-19 3:35 
GeneralRe: Madness, Coding and Meds Pin
honey the codewitch4-Apr-19 3:39
mvahoney the codewitch4-Apr-19 3:39 
GeneralRe: Madness, Coding and Meds Pin
#realJSOP4-Apr-19 3:38
mve#realJSOP4-Apr-19 3:38 
GeneralRe: Madness, Coding and Meds Pin
honey the codewitch4-Apr-19 3:40
mvahoney the codewitch4-Apr-19 3:40 
GeneralRe: Madness, Coding and Meds Pin
#realJSOP4-Apr-19 5:27
mve#realJSOP4-Apr-19 5:27 

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.