home.social

#codingstyle — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #codingstyle, aggregated by home.social.

  1. Just found this piece on code styles, from the perspective of human cognitive capabilities and tendencies. This is something I've previously thought a lot about, and even given a short talk about! I've not had time to read it all yet, but from what I've read it seems very well grounded and thorough:

    optimal-codestyle.github.io/

    #Programming #SoftwareDevelopment #CodingStyle #Cognition

  2. TABS. It is a question of #accessibility, you morons!

    Death to #smartTabs (aka random haphazard inserts of spaces depending on the IDE at hand)!

    #codingStyle

  3. TABS. It is a question of #accessibility, you morons!

    Death to #smartTabs (aka random haphazard inserts of spaces depending on the IDE at hand)!

    #codingStyle

  4. TABS. It is a question of #accessibility, you morons!

    Death to #smartTabs (aka random haphazard inserts of spaces depending on the IDE at hand)!

    #codingStyle

  5. Hey #PHP. When you use union and intersection types, do you include spaces?

    (RT for reach, etc. This is survey data for @phpfig. If you know of any official policies by major projects already, please note/link in the replies.)

    #codingstyle #phpfig

  6. Linus Torvalds reiterates his tabs-versus-spaces stance with a kernel trap - Enlarge / Cans of Tab diet soda on display in 2011. Tab was discontinue... - arstechnica.com/?p=2017554 #linuxkernelmailinglist #tabsversusspaces #linustorvalds #codingstyle #linuxkernel #tabvsspace #biz#linux #tech

  7. Finally started, including an editorconfig file as part of my checkins to make it easy for my team to stick to general indentation style. Should have done it a while ago. It would have saved me an hour of reformatting code to use two space indents. #codingstyle
    editorconfig.org

  8. I'm #bored. Let's have a #flamewar about #codecomments.

    There are those "YOU SHOULD NEVER WRITE COMMENTS, IF YOU NEED COMMENTS YOUR CODE SUCKS AND NEED REWRITING"

    and then we have "You should comment *ALL* code *ALL* the time"

    And then we have "You should write comments, if it makes sense and the code is non trivial"

    Which camp are you in, and why?

    #devlife #dev #code #codingstyle #comments

  9. I'm #bored. Let's have a #flamewar about #codecomments.

    There are those "YOU SHOULD NEVER WRITE COMMENTS, IF YOU NEED COMMENTS YOUR CODE SUCKS AND NEED REWRITING"

    and then we have "You should comment *ALL* code *ALL* the time"

    And then we have "You should write comments, if it makes sense and the code is non trivial"

    Which camp are you in, and why?

    #devlife #dev #code #codingstyle #comments

  10. I'm experimenting with a new #codingstyle: For every line of code there's a line blank following it.

    Kind of looks like those Bills they bring before the US Congress.

  11. Code is code and should be structured according to what it means not to how it looks. And let's also kill arbitrarily deep indents for visual alignment. Each new logical level should be one and just one level deeper.

    #FOSS #codingstyle #wysiwym

    theregister.com/2020/06/01/lin