- 0 Posts
- 16 Comments
thenextguy@lemmy.worldto Programming@programming.dev•Parse, Don’t Validate AKA Some C Safety Tips32·2 months agoI disagree that parsing is validating. For example, you could give me a valid ISO date time string, but I want a shipping date and you gave me something in the past. It parses, but is not valid.
I disagree that validating early is bad because some other part of the code might also validate later and possibly do it differently. Yes, that’s bad, but not a reason to not validate early.
thenextguy@lemmy.worldto Programming@programming.dev•Parse, Don’t Validate AKA Some C Safety Tips13·2 months agoI understand the concept. I just disagree that it’s a good idea.
thenextguy@lemmy.worldto Programming@programming.dev•Parse, Don’t Validate AKA Some C Safety Tips82·2 months agoI don’t see it. I would much prefer to validate early rather than late. The example of ‘other code might validate it differently or not at all’ seems specious. I don’t want invalid information “deep within the bowels of the system”.
Underrated by who? Who the hell is rating these things anyway?
thenextguy@lemmy.worldto Programming@programming.dev•Is there a way to rewind the git rebase state?3·2 months agoPretty sure you have to abort and start over.
thenextguy@lemmy.worldto Programming@programming.dev•[Noob here] Can someone explain to me the advantage of mutable objects?63·3 months agoFaster. Less memory. Maps to physical things well (e.g. a device with memory mapped registers). No garbage collection / object destruction needed. No need to initialize new objects all the time.
thenextguy@lemmy.worldto Selfhosted@lemmy.world•Docker, Docker Compose, and PortainerEnglish33·5 months agodeleted by creator
thenextguy@lemmy.worldto Programmer Humor@programming.dev•When happy teams are an issue12·8 months agoNo defect
Will not fix
This little hack is gonna cost us 51 CPU cycles.
thenextguy@lemmy.worldto Programmer Humor@programming.dev•This is my life now, until I finally understand Cmake.25·9 months agoGrab a brush and put a little cmakeup.
thenextguy@lemmy.worldto Programmer Humor@programming.dev•When your shower uses GitHub more than you2·10 months agoI wanna spread the news
That if it feels this good getting used
Oh you just keep on using me
Until you use me up
thenextguy@lemmy.worldto Programmer Humor@programming.dev•When your shower uses GitHub more than you2·10 months agoMy shower doesn’t use me at all.
thenextguy@lemmy.worldto Programming@programming.dev•The time I spent three months investigating a 7-year old bug and fixed it in 1 line of code28·11 months agoRoot Cause Analysis
And we suck at it.
Git is p2p and distributed from day 1. Github is just a convenient website. If Microsoft takes down your repo, just upload to another system. Nothing but convenience will be lost.