Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-08 Thread spiralofhope
On Sat, 7 Aug 2021 17:02:17 -0400 Hendrik Boom wrote: > Wikis are often backed by revision management to make it asy for > administrators to bck out of spam. > To make sure they are backed up, use a distributed revivion management > system and make sure there are multiple repositories. The

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-07 Thread Hendrik Boom
On Sat, Aug 07, 2021 at 04:36:31PM -0400, Steve Litt wrote: > spiralofhope said on Sat, 7 Aug 2021 10:37:58 -0700 > > >On Sat, 07 Aug 2021 16:21:47 +0930 > >dva...@internode.on.net wrote: > > > >> On 30.07.21 11:28, spiralofhope wrote:> > >> > I also mean that if there are any complex ideas or

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-07 Thread Steve Litt
spiralofhope said on Sat, 7 Aug 2021 10:37:58 -0700 >On Sat, 07 Aug 2021 16:21:47 +0930 >dva...@internode.on.net wrote: > >> On 30.07.21 11:28, spiralofhope wrote:> >> > I also mean that if there are any complex ideas or words, those can >> > be explained in separate specific-documentation in

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-07 Thread Steve Litt
dva...@internode.on.net said on Sat, 07 Aug 2021 16:21:47 +0930 >On 30.07.21 11:28, spiralofhope wrote:> I also mean that if there are >any complex ideas or words, those can be >> explained in separate specific-documentation in the same way that >code >> does it. >My preferred method for

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-07 Thread spiralofhope
On Sat, 07 Aug 2021 16:21:47 +0930 dva...@internode.on.net wrote: > On 30.07.21 11:28, spiralofhope wrote:> > > I also mean that if there are any complex ideas or words, those can > > be explained in separate specific-documentation in the same way that > > code does it. > My preferred method for

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-07 Thread dvalin
On 30.07.21 11:28, spiralofhope wrote:> I also mean that if there are any complex ideas or words, those can be > explained in separate specific-documentation in the same way that code > does it. My preferred method for nesting descriptive prose, and presenting the whole on one page, is to use

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-02 Thread Hendrik Boom
On Mon, Aug 02, 2021 at 02:03:09AM -0400, Steve Litt wrote: > Josef Grosch via Dng said on Sun, 1 Aug 2021 14:58:18 -0700 > > >On 8/1/21 12:50 PM, Steve Litt wrote: > >> wirelessduck--- via Dng said on Sun, 1 Aug 2021 22:43:35 +1000 > >> > On 1 Aug 2021, at 21:56, Hendrik Boom >

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-02 Thread Steve Litt
Josef Grosch via Dng said on Sun, 1 Aug 2021 14:58:18 -0700 >On 8/1/21 12:50 PM, Steve Litt wrote: >> wirelessduck--- via Dng said on Sun, 1 Aug 2021 22:43:35 +1000 >> On 1 Aug 2021, at 21:56, Hendrik Boom wrote: On Fri, Jul 30, 2021 at 01:49:46PM -0400, Steve Litt wrote:

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread Josef Grosch via Dng
On 8/1/21 12:50 PM, Steve Litt wrote: wirelessduck--- via Dng said on Sun, 1 Aug 2021 22:43:35 +1000 On 1 Aug 2021, at 21:56, Hendrik Boom wrote: On Fri, Jul 30, 2021 at 01:49:46PM -0400, Steve Litt wrote: Josef Grosch via Dng said on Thu, 29 Jul 2021 15:32:05 -0700 Another

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread Steve Litt
wirelessduck--- via Dng said on Sun, 1 Aug 2021 22:43:35 +1000 >> On 1 Aug 2021, at 21:56, Hendrik Boom wrote: >> >> On Fri, Jul 30, 2021 at 01:49:46PM -0400, Steve Litt wrote: >>> Josef Grosch via Dng said on Thu, 29 Jul 2021 15:32:05 -0700 >>> >>> Another suggestion I have is to

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread Steve Litt
tito via Dng said on Sun, 1 Aug 2021 14:41:31 +0200 >Hi, >I really prefer > >if (mybool) { > do_my_stuff(); > do_other_stuff); >} Vim prefers it that way too, which is why (and the only reason) I use the preceding brace placement. SteveT Steve Litt Spring 2021 featured book:

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread aitor
Hi, On 1/8/21 14:41, tito via Dng wrote: Hi, I really prefer if (mybool) { do_my_stuff(); do_other_stuff); } for the rule of least vertical screen usage (same as yours) and the brace and the if on the same indentation level make it clear where the conditional block of code stops.

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread wirelessduck--- via Dng
> On 1 Aug 2021, at 21:56, Hendrik Boom wrote: > > On Fri, Jul 30, 2021 at 01:49:46PM -0400, Steve Litt wrote: >> Josef Grosch via Dng said on Thu, 29 Jul 2021 15:32:05 -0700 >> >> >>> Another suggestion I have is to use the variable and method naming >>> convention that java uses. I like

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread tito via Dng
On Sun, 1 Aug 2021 07:56:18 -0400 Hendrik Boom wrote: > On Fri, Jul 30, 2021 at 01:49:46PM -0400, Steve Litt wrote: > > Josef Grosch via Dng said on Thu, 29 Jul 2021 15:32:05 -0700 > > > > > > >Another suggestion I have is to use the variable and method naming > > >convention that java uses.

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread Hendrik Boom
On Fri, Jul 30, 2021 at 01:49:46PM -0400, Steve Litt wrote: > Josef Grosch via Dng said on Thu, 29 Jul 2021 15:32:05 -0700 > > > >Another suggestion I have is to use the variable and method naming > >convention that java uses. I like the way it looks and I think camel > >case is more readable

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread Hendrik Boom
On Fri, Jul 30, 2021 at 03:33:05PM +0200, Enrico Weigelt, metux IT consult wrote: > On 30.07.21 00:32, Josef Grosch via Dng wrote: > > > Global variables are a disaster looking for a place to happen, avoid at > > all cost. The scope of variables should be as small as possible. > > it depends

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-08-01 Thread Jim Jackson
On Fri, 30 Jul 2021, Steve Litt wrote: > idea, although one screenfull sounds a little too short for prose, to "one screenfull" what's that. When I started interactive programming it was on an teletype with continuous scroll of paper - you tended to print one or teo lines at a time - just

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-30 Thread Enrico Weigelt, metux IT consult
On 30.07.21 00:32, Josef Grosch via Dng wrote: Global variables are a disaster looking for a place to happen, avoid at all cost. The scope of variables should be as small as possible. it depends ... for small programs where you really *know* (by definition) there really may only be one

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-30 Thread Steve Litt
spiralofhope said on Fri, 30 Jul 2021 11:28:27 -0700 >On Fri, 30 Jul 2021 13:40:30 -0400 >Steve Litt wrote: > >> g4sra via Dng said on Thu, 29 Jul 2021 21:16:31 + >> >> >> [...] >> >> O! >> >> Makes perfect sense now. Thanks g4sra and spiralofhope. That's a good >> idea,

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-30 Thread spiralofhope
On Fri, 30 Jul 2021 13:40:30 -0400 Steve Litt wrote: > g4sra via Dng said on Thu, 29 Jul 2021 21:16:31 + > > > [...] > > O! > > Makes perfect sense now. Thanks g4sra and spiralofhope. That's a good > idea, although one screenfull sounds a little too short for prose, to >

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-30 Thread Steve Litt
Josef Grosch via Dng said on Thu, 29 Jul 2021 15:32:05 -0700 >Another suggestion I have is to use the variable and method naming >convention that java uses. I like the way it looks and I think camel >case is more readable than snake case. This reminds me of something not yet in the outline.

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-30 Thread Steve Litt
g4sra via Dng said on Thu, 29 Jul 2021 21:16:31 + >If I correctly interpret spiralofhope's meaning > >Regard the document itself as if it was pseudocode. >Apply the rules of the document to the document e.g. > >1) keep the document as short as possible >... >3) all of a paragraph must fit on

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-30 Thread wirelessduck--- via Dng
> On 7/28/21 1:12 PM, Steve Litt wrote: >> [ Beverity ] >> Does anyone have other list items to add? https://thedailywtf.com/ Is a good resource of what “not” to do.___ Dng mailing list Dng@lists.dyne.org

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread Josef Grosch via Dng
On 7/28/21 1:12 PM, Steve Litt wrote: [ Beverity ] Does anyone have other list items to add? Now that you got me thinking; One should be explicit instead of implicit. I see this in code all the time and it drives me crazy // NO if (condition)     doSomething(); // YES if (condition)

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread Josef Grosch via Dng
On 7/28/21 2:02 PM, tito via Dng wrote: [ DELETED for brevity ] That's bad... I love global variables ;-( as they avoid shuffling around parameters in functions (KISS?) Global variables are a disaster looking for a place to happen, avoid at all cost. The scope of variables should be as

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread g4sra via Dng
On Thursday, July 29th, 2021 at 10:00 PM, Steve Litt wrote: > g4sra via Dng said on Thu, 29 Jul 2021 20:50:02 + > > Sent with ProtonMail Secure Email. > > ‐‐‐ Original Message ‐‐‐ > > On Thursday, July 29th, 2021 at 9:19 PM, Steve Litt > > sl...@troubleshooters.com wrote: > > >

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread Steve Litt
g4sra via Dng said on Thu, 29 Jul 2021 20:50:02 + >Sent with ProtonMail Secure Email. > >‐‐‐ Original Message ‐‐‐ > >On Thursday, July 29th, 2021 at 9:19 PM, Steve Litt > wrote: > >> spiralofhope said on Thu, 29 Jul 2021 11:00:48 -0700 >> > >> > Once this gets complex enough it'll

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread g4sra via Dng
Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Thursday, July 29th, 2021 at 9:19 PM, Steve Litt wrote: > spiralofhope said on Thu, 29 Jul 2021 11:00:48 -0700 > > > Once this gets complex enough it'll need to be self-hosting in a sense; > > check the rules against

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread Steve Litt
spiralofhope said on Thu, 29 Jul 2021 11:00:48 -0700 >Once this gets complex enough it'll need to be self-hosting in a sense; >check the rules against the rules -- de-duplicate, simplify, add >documentation, etc. :) > >Internal consistency? I don't know the correct term offhand. Huh? SteveT

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-29 Thread spiralofhope
Once this gets complex enough it'll need to be self-hosting in a sense; check the rules against the rules -- de-duplicate, simplify, add documentation, etc. :) Internal consistency? I don't know the correct term offhand. ___ Dng mailing list

Re: [DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-28 Thread tito via Dng
On Wed, 28 Jul 2021 16:12:53 -0400 Steve Litt wrote: > Hi all, > > Here's the info we've collected so far on safe programming: > > == > From Tito: > > Ten Commandments > > 1) use the least amount of code possible > 2) try harder and go

[DNG] Starting outline for the DNG Safe Programmer Certificate

2021-07-28 Thread Steve Litt
Hi all, Here's the info we've collected so far on safe programming: == From Tito: Ten Commandments 1) use the least amount of code possible 2) try harder and go to point 1 3) if the code doesn't fit into one screen go to point 2 4)