|
Che Delilas posted:The only warning a PHP ide or linter should generate is "Warning: This is PHP" (fset 'php-mode 'kill-emacs)
|
# ? Apr 18, 2019 21:51 |
|
|
# ? Jun 8, 2024 08:38 |
|
What is just as likely with typos like that is that it was done somewhere else too in a higher scope so it thinks it's legit. (edit: typo of my own!) Rocko Bonaparte fucked around with this message at 22:19 on Apr 19, 2019 |
# ? Apr 19, 2019 16:07 |
|
Yep. I’ve learned to be basically terrified of renaming things in some languages unless I really trust the IDE. It’s just not worth it.
|
# ? Apr 19, 2019 17:01 |
|
i just found a service one of my guys wrote that 1) creates a new thread every request 2) does not require authentication 3) inserts data that is not validated into both of our databases
|
# ? Apr 19, 2019 17:14 |
|
pokeyman posted:Yep. I’ve learned to be basically terrified of renaming things in some languages unless I really trust the IDE. It’s just not worth it. personally I just avoid those languages whenever possible. it is bizarre that people continue to choose languages that weren’t designed to support good tooling, when there are excellent alternatives for every domain that were built with tools like me in mind
|
# ? Apr 19, 2019 21:03 |
|
sometimes there's a bunch of legacy poo poo written in a language you didn't choose and you have to work on it
|
# ? Apr 20, 2019 00:50 |
|
|
# ? Apr 20, 2019 01:16 |
|
I'm real fussy about brackets and that image is making me legitimately angry
|
# ? Apr 20, 2019 01:23 |
|
Looks like someone wishes they were using python
|
# ? Apr 20, 2019 02:39 |
|
The Fool posted:Looks like someone wishes they were using python it took me way longer than i'd care to admit to recognize that as java.
|
# ? Apr 20, 2019 03:17 |
|
The real horror is no single space before the parentheses in those method declarations.
|
# ? Apr 20, 2019 04:06 |
|
Woodsy Owl posted:The real horror is no single space before the parentheses in those method declarations.
|
# ? Apr 20, 2019 04:41 |
|
Woodsy Owl posted:The real horror is no single space before the parentheses in those method declarations. please stop posting while super high it makes you write weird and wrong things
|
# ? Apr 20, 2019 04:53 |
|
Woodsy Owl posted:The real horror is no single space before the parentheses in those method declarations. lol
|
# ? Apr 20, 2019 04:56 |
|
Woodsy Owl posted:The real horror is no single space before the parentheses in those method declarations. Bruegels Fuckbooks posted:it took me way longer than i'd care to admit to recognize that as java. I knew it was some C derivative, but wasn't able to parse () while having to throw plates around at work.
|
# ? Apr 20, 2019 06:07 |
|
Woodsy Owl posted:The real horror is no single space before the parentheses in those method declarations. Does anyone know if These People also put a space before the parens in function calls?
|
# ? Apr 20, 2019 08:01 |
|
I need someone to make a linter to enforce that now just to see how many people unironically start using it.
|
# ? Apr 20, 2019 10:37 |
|
tankadillo posted:I need someone to make a linter to enforce that now just to see how many people unironically start using it. It wouldn't be too bad as long as the linter or IDE enforces indentation/whitespace to ensure the visible structure matches the actual structure of the code.
|
# ? Apr 20, 2019 17:59 |
|
RPATDO_LAMD posted:It wouldn't be too bad as long as the linter or IDE enforces indentation/whitespace to ensure the visible structure matches the actual structure of the code. This is backwards. You want an ide to automatically adjust braces and semicolons so that the actual structure matches the visual structure.
|
# ? Apr 20, 2019 18:57 |
|
The IDE should contain a checkbox list of various formatting preferences and it should then reformat any code to your preferences.
|
# ? Apr 20, 2019 19:09 |
|
Ola posted:The IDE should contain a checkbox list of various formatting preferences and it should then reformat any code to your preferences. I feel like that's how I ended up spending a summer unfucking websites that were built in Microsoft Word...
|
# ? Apr 20, 2019 19:24 |
|
If you type too many characters since the last semicolon, the IDE should put one for you. Same with closing parens. Same with too many line breaks since the last closing curly brace.
|
# ? Apr 20, 2019 19:46 |
|
Dumb Lowtax posted:If you type too many characters since the last semicolon, the IDE should put one for you. Same with closing parens. Same with too many line breaks since the last closing curly brace. I smell a machine learning project in here.
|
# ? Apr 20, 2019 19:49 |
|
Source code should only ever save to disk as an AST and IDE's should just format them into readable text on load.
|
# ? Apr 20, 2019 19:49 |
|
CPColin posted:Source code should only ever save to disk as an AST and IDE's should just format them into readable text on load. This is better enforced at the source control level, but yes. Also IDEs should have integrated debuggers that allow you to step backward.
|
# ? Apr 20, 2019 19:56 |
|
Ola posted:The IDE should contain a checkbox list of various formatting preferences and it should then reformat any code to a fixed standard using an unconfigurable tool shipped with the language. I linted your post
|
# ? Apr 20, 2019 20:10 |
|
Doc Hawkins posted:I linted your post great, so long as i'm consulted on what the standard formatting should be, and that idiot rob pike doesn't get any say in it because he sure made the wrong decisions for gofmt
|
# ? Apr 21, 2019 00:12 |
|
It seems to me that the big problem would be when you inevitably forget a bracket or semicolon then it would be infuriating to figure out where it was supposed to go.
|
# ? Apr 21, 2019 02:48 |
|
tankadillo posted:It seems to me that the big problem would be when you inevitably forget a bracket or semicolon then it would be infuriating to figure out where it was supposed to go. Well, not if your IDE is the one inserting the brackets and semicolons by examining Python-style indentation
|
# ? Apr 21, 2019 07:05 |
|
Personally I find my code usually starts at the colon
|
# ? Apr 21, 2019 14:41 |
|
Athas posted:Does anyone know if These People also put a space before the parens in function calls? Yes, yes they do.
|
# ? Apr 21, 2019 15:06 |
|
Phobeste posted:Personally I find my code usually starts at the colon
|
# ? Apr 21, 2019 15:32 |
|
My code comes from exiting my colon
|
# ? Apr 21, 2019 18:52 |
|
I have my preferences, but really I don't care about this poo poo as long as everyone in the project is doing the same thing. That's why I like these opinionated linters like Black or Prettier. No configuration, no argument! (right? i hope? please?)
|
# ? Apr 21, 2019 20:25 |
|
Thermopyle posted:I have my preferences, but really I don't care about this poo poo as long as everyone in the project is doing the same thing. Me too, but it shouldn't matter in a project either, that's why it should just get reformatted in each client. The running code doesn't care.
|
# ? Apr 21, 2019 21:18 |
|
I agree somewhat, but I spend way too much time reading code on github/bitbucket/gitlab etc.
|
# ? Apr 22, 2019 01:00 |
|
Thermopyle posted:That's why I like these opinionated linters like Black --skip-string-normalization --line-length
|
# ? Apr 22, 2019 08:38 |
|
Thermopyle posted:I have my preferences, but really I don't care about this poo poo as long as everyone in the project is doing the same thing as me. Fixed for myself.
|
# ? Apr 22, 2019 19:55 |
|
Ola posted:Me too, but it shouldn't matter in a project either, that's why it should just get reformatted in each client. The running code doesn't care. You’re talking like you think it’s possible for an automated process to make the correct aesthetic judgements to format code the right way
|
# ? Apr 23, 2019 09:32 |
|
|
# ? Jun 8, 2024 08:38 |
|
Soricidus posted:You’re talking like you think it’s possible for an automated process to make the correct aesthetic judgements to format code the right way > yourSourceCode.js always produces the most beautiful code possible.
|
# ? Apr 23, 2019 10:13 |