Click here to Skip to main content
15,886,963 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: NuGet vs Write Your Own Pin
GuyThiebaut5-Dec-22 21:40
professionalGuyThiebaut5-Dec-22 21:40 
GeneralRe: NuGet vs Write Your Own Pin
Slacker0076-Dec-22 2:16
professionalSlacker0076-Dec-22 2:16 
GeneralRe: NuGet vs Write Your Own Pin
Richard Deeming5-Dec-22 22:12
mveRichard Deeming5-Dec-22 22:12 
GeneralRe: NuGet vs Write Your Own Pin
maze35-Dec-22 23:48
professionalmaze35-Dec-22 23:48 
GeneralRe: NuGet vs Write Your Own Pin
Single Step Debugger6-Dec-22 2:40
Single Step Debugger6-Dec-22 2:40 
GeneralRe: NuGet vs Write Your Own Pin
Adam O'Neil (Travelers Rest, SC)7-Dec-22 1:46
Adam O'Neil (Travelers Rest, SC)7-Dec-22 1:46 
GeneralRe: NuGet vs Write Your Own Pin
WPerkins7-Dec-22 3:21
WPerkins7-Dec-22 3:21 
GeneralRe: NuGet vs Write Your Own Pin
Davyd McColl7-Dec-22 3:35
Davyd McColl7-Dec-22 3:35 
A combination of both, including publishing my own libraries to nuget.org so I don't have to rewrite the same thing over and over, or, equally bad: copy-paste code between projects. The latter comes back to bite you when project diverge and you can't share fixes / enhancements any more (I've seen this on copy-pasted code at my work).

My first nuget packages literally were so that I wouldn't have to write the same code twice - and that legacy continues. I don't think any of my packages have been used in only one place, and not having a central source of truth that can be fixed and easily propagated seems like a crazy idea to me.

Libraries that I've made & found immensely useful across multiple apps include:
- a duck-typer (duck-type objects or dictionaries to well-defined interfaces)
- an ini file reader/writer
- a management class for windows services (start/stop/restart/install/uninstall, etc)
- container/manager for spinning up temporary databases for testing (mssql, mysql, sqlite, sqlce) & cleaning up once disposed
- temporary http server, again for unit testing - spin up, add handlers, disposable pattern
- an easy-to-use commandline arguments parser / mapper-to-an-object (because there was one that I liked, and the dev updated & broke things, and I thought "nuts, I can make that and have control over it"
- miscellaneous utils like auto-deleting (via disposable pattern) temp files/folders, common reflection-based functionality, easy parallelisation, easy interaction with a sub-process (esp the I/O part), and some more

For testing, I would imagine that you're either not rolling your own unit test & assertion frameworks every time, or you're just not testing. I wanted smarter assertions that felt similar to JS-land ones, so I wrote NExpect.

I'm happy to use nuget packages that are well-maintained & documented. I don't think anyone can do web work these days without nuget - I really don't think anyone is writing web servers from the ground up? Surely?
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing

Which is stupid.

GeneralNail biter! Pin
honey the codewitch5-Dec-22 8:37
mvahoney the codewitch5-Dec-22 8:37 
GeneralRe: Nail biter! Pin
OriginalGriff5-Dec-22 9:50
mveOriginalGriff5-Dec-22 9:50 
GeneralRe: Nail biter! Pin
honey the codewitch5-Dec-22 9:52
mvahoney the codewitch5-Dec-22 9:52 
GeneralRe: Nail biter! Pin
Dan Neely6-Dec-22 3:54
Dan Neely6-Dec-22 3:54 
GeneralRe: Nail biter! Pin
jmaida5-Dec-22 11:11
jmaida5-Dec-22 11:11 
JokeRe: Nail biter! Pin
den2k885-Dec-22 20:46
professionalden2k885-Dec-22 20:46 
GeneralRe: Nail biter! Pin
honey the codewitch5-Dec-22 21:01
mvahoney the codewitch5-Dec-22 21:01 
GeneralRe: Nail biter! Pin
Daniel Pfeffer5-Dec-22 21:27
professionalDaniel Pfeffer5-Dec-22 21:27 
GeneralRe: Nail biter! Pin
honey the codewitch5-Dec-22 21:40
mvahoney the codewitch5-Dec-22 21:40 
GeneralRe: Nail biter! Pin
wapiti647-Dec-22 3:20
wapiti647-Dec-22 3:20 
GeneralJOTD PinPopular
Single Step Debugger5-Dec-22 3:28
Single Step Debugger5-Dec-22 3:28 
GeneralRe: JOTD Pin
PIEBALDconsult5-Dec-22 3:54
mvePIEBALDconsult5-Dec-22 3:54 
GeneralRe: JOTD Pin
Single Step Debugger5-Dec-22 4:28
Single Step Debugger5-Dec-22 4:28 
GeneralRe: JOTD Pin
yacCarsten5-Dec-22 11:54
yacCarsten5-Dec-22 11:54 
JokeToday's "Why I hate Microsoft" post... Pin
charlieg5-Dec-22 1:53
charlieg5-Dec-22 1:53 
GeneralRe: Today's "Why I hate Microsoft" post... Pin
Jörgen Andersson5-Dec-22 2:17
professionalJörgen Andersson5-Dec-22 2:17 
GeneralRe: Today's "Why I hate Microsoft" post... Pin
den2k885-Dec-22 2:37
professionalden2k885-Dec-22 2:37 

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.