home.social

#codeformatting — Public Fediverse posts

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

fetched live
  1. #Java developers question:

    Having some order in a class where the public, private, static, non-static methods go, seems nice. At the last company I worked for, we had rules.

    Yet. A method may easily ping-pong between static and non-static during development, from commit to commit, as the code evolves. Sometimes this is even true for public/private.

    But moving the method around in the code will screw up the diffs, so this seems silly.

    What is your strategy?

    #codestyle #codeFormatting

  2. #Java developers question:

    Having some order in a class where the public, private, static, non-static methods go, seems nice. At the last company I worked for, we had rules.

    Yet. A method may easily ping-pong between static and non-static during development, from commit to commit, as the code evolves. Sometimes this is even true for public/private.

    But moving the method around in the code will screw up the diffs, so this seems silly.

    What is your strategy?

    #codestyle #codeFormatting

  3. Use the code formatting script provided or make your own

    Never trust your ability to follow the style guide, you will muck it up

    Your routine & unconscious habits will bleed through in the most inconventient ways

    Use the script before testing,
    Use the script before committing

    Consistency is for machines

  4. Use the code formatting script provided or make your own

    Never trust your ability to follow the style guide, you will muck it up

    Your routine & unconscious habits will bleed through in the most inconventient ways

    Use the script before testing,
    Use the script before committing

    Consistency is for machines

    #ConsistencyIsForMachines #CodeFormatting

  5. Code formatting discussions are terrible 🤦‍♂️. Where and when to add a line break? How to indent? Where to put the braces? Which quotes to use?

    In my new article I show how to end them simply with Spotless and Gradle.

    medium.com/@michakutz/great-gr

    #gradle #codeformatting

  6. Code formatting discussions are terrible 🤦‍♂️. Where and when to add a line break? How to indent? Where to put the braces? Which quotes to use?

    In my new article I show how to end them simply with Spotless and Gradle.

    medium.com/@michakutz/great-gr

    #gradle #codeformatting

  7. Revolutionizing JavaScript Templating: A New Approach to Whitespace and Indentation

    In the world of JavaScript, whitespace and indentation can be the unsung heroes of clean code. A new library aims to enhance the built-in templating functionality, providing developers with the tools ...

    news.lavx.hu/article/revolutio

    #news #tech #JavaScriptTemplating #CodeFormatting #WebDevelopment

  8. When making changes in a function do you believe it's ok to bring the function in line with the projects coding style? I'd love to know your thoughts in detail as well, it's not something I ever considered controversial.
    #softwareDevelopment #coding #codeFormatting

  9. When making changes in a function do you believe it's ok to bring the function in line with the projects coding style? I'd love to know your thoughts in detail as well, it's not something I ever considered controversial.
    #softwareDevelopment #coding #codeFormatting