3 ms·
:) oh it will be written like that and has been written like that. Dont google for the number of unnecessary brain surgeries that have happened cause buggy mri
by gsatic 4y ago
:) oh it will be written like that and has been written like that.
Dont google for the number of unnecessary brain surgeries that have happened cause buggy mri software highlights tumors were there are none.
No one will consider the risk under deadline pressure. The deeper down a tech stack you go barely anyone knows what the hell is going on anymore, and or how to fix it, precisely because of half baked code added in this fashion, which accumulates over time.
At the end of the day dealing with blackbox tech is similar to dealing with ppl or groups of ppl behaving in strange inefficient ways.
- ehnto 4y agoIt is somewhat my job to deep dive legacy problems, and often that does take an understanding of the full stack. But I am finding more challenges in newer frameworks, where "magic" is no longer a code smell, generated code is the norm, no one considered debugging and you can't always reasonably dive down a stack. I imagine that will be much worse when you can't expect the code to have considered human readability at all.
- gsatic 4y agoYup generated code is spreading like cancer. You kind of have to develop an "empathy" for the system, just like with broken humans who cant be fixed. How are you feeling today mr.blackbox? Feeling a bit lethargic? Want a reboot?
- dopidopHN 4y agoLast time I used large amount of generated code, it was pristine and easy to debug. ( Java ) What do you have in mind
- ehnto 4y agoI find it quite painful when code generation is used to generate plugin glue code for bigger frameworks. The reason is that it stops being searchable as function names become programmatically generated, and code changes based on any number of magic configurations or state. That is also why some meta-programming is hard to debug. You need to reverse engineer the generators to figure out how to find the code that's actually running, in bigger applications that's a pain in the butt.
- dopidopHN 4y agoOk. Yes absolutely. Actually I had that experience as well and I had to learn the generation logic. Waste of time. I had good experience when the code is generated, and eventually updated automatically but for other shape and purpose it’s normal code. The generated code goes in version control. So really it’s a scaffolding operation. But still, I was impress by the quality and ever cleaverness of the generated code. ( because the generator was written with a unique, specific target in mind )