What is your coding style? - Programming On Unix

Users browsing this thread: 3 Guest(s)
s0kx
Members
I'd say I agree with pretty much everything said so far. Here are a few of my own for interpreted languages, which I probably should write down somewhere:
  • Don't call other turing complete languages when your shell can already do basic string manipulation.
  • Use #!/usr/bin/env python, not #!/usr/bin/python.
  • Don't include huge walls of text as comments, write proper documentation instead.
  • Use the heredoc format, not dozens of echo or printf statements.


Messages In This Thread
What is your coding style? - by seninha - 25-05-2021, 11:43 AM
RE: What is your coding style? - by venam - 25-05-2021, 12:47 PM
RE: What is your coding style? - by opfez - 25-05-2021, 01:34 PM
RE: What is your coding style? - by jkl - 25-05-2021, 01:41 PM
RE: What is your coding style? - by ckester - 25-05-2021, 02:49 PM
RE: What is your coding style? - by seninha - 25-05-2021, 09:58 PM
RE: What is your coding style? - by s0kx - 26-05-2021, 02:34 AM
RE: What is your coding style? - by venam - 26-05-2021, 09:40 AM
RE: What is your coding style? - by jkl - 26-05-2021, 09:55 AM
RE: What is your coding style? - by opfez - 27-05-2021, 08:27 AM