maddsua / lambda

HTTP and Websocket server library
MIT License
3 stars 0 forks source link

Wrap socket handle into a self contained object #116

Closed maddsua closed 8 months ago

maddsua commented 8 months ago

fuck I'm not doing this shit. it doesn't make any sense if you only wrap basic functions and if you go for full implementation... fuck this I'm not writing a new standard library or something, it just doesn't need that. Probably the DRY principle is just full of crap if you try to make it the absolute standard. wtf am I supposed to add then? all the socket functions like set opts with all of it's options? NO, I'm not doing that

maddsua commented 8 months ago

if anyone reads it lol

so there was an idea to wrap socket handles into a class to manage their lifetime automatically (we didn't like having socket closing code duplicated in 2 separate classes), but this shit just doesn't end there if you start doing it