FLTK logo

Re: [fltk.general] tylosaurus source code is here

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: tylosaurus source code is here Albrecht Schlosser May 19, 2021  
 
On 5/18/21 7:48 PM Greg Ercolano wrote:

Dave Jordan wrote:

Albrecht wrote:
I took only a very quick glance at the source code: looks like you are using tab width 3 (is that correct?) and I see very strange code formatting ...

I still didn't look closer at the code, being distracted by other stuff.

can you be more specific about the strange formatting?

    1. A tabstop of 3 is very odd.
    2. Even with the tabstop of 3 the code is a bit unusual.

    Here's how the code looks in a default editor, more(1), printed to paper/converted to PDF,
    etc.  Hard to read, and I think few would guess a tabstop of 3

That guessing was pure trial and error (8, 4, 2, 3!) with VS code that lets you easily change it (other editors will for sure do that too). The default "tab width guessing" mode of VS Code failed ("guessed" 8).

    When the right tabstop of 3 is used, I'd agree with Albrecht, the code is still oddly formatted.

[lots of good stuff elided]

    The reader expects the code to be indented flush left in a "stair-step" pattern
    as per the code flow, and only comments indented far out to the right.

Thanks, Greg, well put. I couldn't have said it better.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/34c9b331-e6ab-0d7d-1939-c6447feccb86%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.