Programmers, which of these shortcuts do you use?
-
@evan donโt so much copy and paste previously written code but rather reuse modular abstractions with a defined, tried, real-world tested functionality and interface e.g. since 2011 Iโve used the same/similar runtime logger abstraction wrapper for contextual application runtime debug/trace/info/warn/error/fatal messages.
-
For the first option, what about D.R.Y. ?
-
For the first option, what about D.R.Y. ?
@Mrpotatoqc9 what about the Rule of Three?
https://en.wikipedia.org/wiki/Rule_of_three_(computer_programming)
-
@evan donโt so much copy and paste previously written code but rather reuse modular abstractions with a defined, tried, real-world tested functionality and interface e.g. since 2011 Iโve used the same/similar runtime logger abstraction wrapper for contextual application runtime debug/trace/info/warn/error/fatal messages.
@dahukanna Do you use a packaged module or library, or is it just the same source code that you copy over?
-
Hey, all. I do all 4. Thanks for the responses!
-
@dahukanna Do you use a packaged module or library, or is it just the same source code that you copy over?
@evan
The example I gave is code I reuse by copying and pasting. Iโd only go through packaging + distribution + versioning โtaxโ if I was sharing for other team/people to reuse. -
@evan
The example I gave is code I reuse by copying and pasting. Iโd only go through packaging + distribution + versioning โtaxโ if I was sharing for other team/people to reuse.@dahukanna That makes a lot of sense!
-
Hey, all. I do all 4. Thanks for the responses!
Also, to everyone who got tricked into saying they use LLMs: GOTCHA! You fell for my AI trap. Bonk! Go directly to LLM jail.
-
Also, to everyone who got tricked into saying they use LLMs: GOTCHA! You fell for my AI trap. Bonk! Go directly to LLM jail.
@evan unironically I knew this was some sorta honeypot, and Iโm all for it
-
@evan unironically I knew this was some sorta honeypot, and Iโm all for it
@GroupNebula563 it wasn't, but I did realise after that it probably felt high-risk for people on the Fediverse.