News for hackers. Stuff that matters.
Re:Bringing the Unix philosophy to the 21st century (2019) by hackerbrother on Sunday August 22, 2021 @04:04PM (#28269065)
(Sorry, this is my first time trying to do a formatted comment here.)

What I like to do is comments like:

/*

  * Collates

  * [

  *    { 

  *        id: 4

  *        dept: 'oncology',

  *        name: 'Joe S.'

  *    }

  *    .

  *    .

  *    .

  *  ]

  *

  *  into

  *

  *  {

  *     4: {  // id

  *        'Joe. S': { // name

  *           dept: oncology

  *        }

  *     .     

  *     .     

  *     .     

  *   }

  */


( Then insert horrible one-liner that does the transformation. )
Re:Bringing the Unix philosophy to the 21st century (2019) by Jtsummers on Sunday August 22, 2021 @07:10PM (#28270615)
Two spaces in front of a line will create a code block:

  /*
   * Collates
   * [
  ...
Removes all the unneeded vertical space created by inserting the extra newlines and makes the entire thing more readable. Put two spaces in front of each line that will be part of the code block and then any extra needed spaces. Some text editors can format text in this manner automatically for you.