Post 9xetUyAzIPxTZTD4bo by rozenglass@mstdn.io
(DIR) More posts by rozenglass@mstdn.io
(DIR) Post #9xergCcBknBzd4A4H2 by duponin@udongein.xyz
2020-07-31T21:56:24.573072Z
1 likes, 0 repeats
What do you do when you have that deep feeling you are doing something wrongbut don’t know how it should be to be right(it’s about code)
(DIR) Post #9xetUxRxznwhJq97R2 by rozenglass@mstdn.io
2020-07-31T22:05:54Z
0 likes, 0 repeats
@duponin research I guess, try to find the keywords of the problem domain I'm working in to find discussions about possible methods of implementation.or, just try to guess what FOSS software might have had to solve a similar problem, open them all in tabs, and look around, compare solutions.or, talk to fellow devs, co-workers and such, to try to probe if they have knowledge on the subject, and do some brain-storming and stuff.a white board and some time aside for thinking does a lot tbh.
(DIR) Post #9xetUyAzIPxTZTD4bo by rozenglass@mstdn.io
2020-07-31T22:07:43Z
0 likes, 0 repeats
@duponin experimentation, if the task is small enough, is pretty good too. teaches you a lot about _why_ some methods are bad.or if the software is not that important, then don't waste time, just get it to work in any way, and try as much as possible to keep those parts open for re-implementation or refactoring.
(DIR) Post #9xetUyu0b1yFp6H1ma by duponin@udongein.xyz
2020-07-31T22:16:45.247426Z
0 likes, 0 repeats
@rozenglass well sadly I'm the only one to work on my project and only one to have knowledge in Elixir (I motivated friends to learn but they are baby level)Don't think it's a knowledge issues but more like an experience oneThat's my "first real project" I'm doingI don't really know how I want my internal API to be and if it fits in language paradigm.Currently first is unknown and second, everything I do/write feels just wrong, like over complex or just *weird*I feel like messing up completely the error control flow which is an important part in Elixir :sadcat:
(DIR) Post #9xkImtDnf8FVuUnNXE by rozenglass@anime.website
2020-08-01T14:57:17.703499Z
1 likes, 0 repeats
@duponin @rozenglassWell, when I feel like that, I usually either open a bunch of mature open source projects in the language I'm using, and just browser them casually, try to absorb the predominant style and compare them to each other. Finding and reading a style guide or two on the language is always useful too, and if you're pretty serious, then nothing boosts the confidence like a good comprehensive intermediate/advanced book on the language (or two... or three :] ).Of course, there's no substitute to experimentation and actual experience, but those things come pretty close in my humble opinion.