#codeformatting — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codeformatting, aggregated by home.social.
-
#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?
-
#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?
-
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 committingConsistency is for machines
-
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 committingConsistency is for machines
-
Thousands of Secrets Leaked on Code Formatting Platforms https://www.securityweek.com/thousands-of-secrets-leaked-on-code-formatting-platforms/ #DataProtection #codeformatting #JSONFormatter #secretssprawl #CodeBeautify #dataleak
-
Thousands of Secrets Leaked on Code Formatting Platforms https://www.securityweek.com/thousands-of-secrets-leaked-on-code-formatting-platforms/ #DataProtection #codeformatting #JSONFormatter #secretssprawl #CodeBeautify #dataleak
-
Uv format: Code Formatting Comes to uv (experimentally)
https://pydevtools.com/blog/uv-format-code-formatting-comes-to-uv-experimentally/
#HackerNews #UvFormat #CodeFormatting #UVExperiment #PythonDevTools
-
Uv format: Code Formatting Comes to uv (experimentally)
https://pydevtools.com/blog/uv-format-code-formatting-comes-to-uv-experimentally/
#HackerNews #UvFormat #CodeFormatting #UVExperiment #PythonDevTools
-
Converting a Git repo from tabs to spaces (2016)
https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/
#HackerNews #ConvertingGitRepo #TabsToSpaces #GitSpaces #CodeFormatting #DeveloperTips
-
Converting a Git repo from tabs to spaces (2016)
https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/
#HackerNews #ConvertingGitRepo #TabsToSpaces #GitSpaces #CodeFormatting #DeveloperTips
-
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.
https://medium.com/@michakutz/great-gradle-goodies-code-formatting-with-spotless-2a595e657add
-
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.
https://medium.com/@michakutz/great-gradle-goodies-code-formatting-with-spotless-2a595e657add
-
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 #tech #JavaScriptTemplating #CodeFormatting #WebDevelopment
-
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 -
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