Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
retoor17739dDid you ever try just not to think and just write? Just keep going and going. It won't be as terrible as you think.
I have only a few years of projects because not only because I lost all, but I only published my code if it was perfect. I quitted doing that. Thanks to that attitude everything is gone. Also, don't write generic shit for private projects, waste of time.
My progress is dead by now. I'm too tired to code for a while now. -
@retoor well that's what I was doing with the mania since I couldn't think
now I can think if I don't forget to take my drugs. booyah
listen im writing rust. I wrote something in js in a couple hours and 20 lines when I had no domain knowledge, and then it took me a week and 1.2k lines to do it in rust after I already had domain knowledge and my old js code and even someone else's rust code!
due to the mania / brain issues I was rewriting the http proxy getter code thing like 12 times. but this idea is for a different project. the mania wouldn't even allow me to "start". I rewrote this other project like 5 times and never even got a working prototype which is very sad... I need architecture and I'm thinking about that one because honestly by this rate I'm so embarrassed -
I've been getting good results doing onion architecture. Domain layer at the core- plain structs or struct-like classes (no logic) and standalone (static) functions (as in pure and deterministic). No I/O, no throwing exceptions, and you can write these things once, unit test them, and never have to worry about it again.
Outer layer is application concerns- I/O as far to the edge as you can get it, so it's right there and only there- nothing buried, everything explicit, no surprises.
Related Rants
would the idea that best government does as much as possible at the smallest level be a good design for code =_=
forgot what it was called. AI says localism
it's like being anti-global variables
but it also should get rid of needless architecture obsessions perhaps, because that's central planning government
you still have a coordination problem though?
question
design
localism