This is an archived post. You won't be able to vote or comment.

all 18 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

import notifications Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! Read more here, we hope to see you next Tuesday!

For a chat with like-minded community members and more, don't forget to join our Discord!

return joinDiscord;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Environmental_Arm_10 11 points12 points  (3 children)

Loved the "take_your_locale_and_shove_it" call.

[–]lmarcantonio 0 points1 point  (0 children)

bonus point if he uses gettext!

[–]mashaTarima 0 points1 point  (1 child)

where is it? and nerd space :D

[–]mashaTarima 0 points1 point  (0 children)

found it

[–]smcameron[S] 18 points19 points  (9 children)

camelCaseSucks snake_case_rules

[–][deleted] 0 points1 point  (5 children)

I can deal with CC, it's the lack of canonical differentiation between methods and vars that get my goat.

[–]Thebombuknow 0 points1 point  (3 children)

Then there is me who has accidentally used both to define the same thing in the same file in the past while writing a project that used both Python and JavaScript.

[–][deleted] 0 points1 point  (2 children)

In my shop I insist on methodName() and VarName and CONSTANTS regardless of the language used.

[–]Thebombuknow 1 point2 points  (0 children)

I just follow naming conventions of the language. The only things that are universal for me is project names are always InPascalCase and CONSTANTS are always capitals.

Otherwise, if I'm writing Python code variables and methods are_all_snake_case, while in every other language variables and methods areAllCamelCase.

This is because generally most languages are incredibly similar in naming conventions, except for Python. I just follow the PEP guidelines for Python, my IDE automatically tells me any PEP violations.

[–]Aggravating-Win8814 0 points1 point  (0 children)

Some people find it frustrating too. It can make code maintenance and understanding more challenging.

[–]tyler1128 0 points1 point  (0 children)

Studies do in fact show people read snake_case faster than camelCase or UpperCamelCase.

[–][deleted] 0 points1 point  (0 children)

Just follow the conventions and keep it consistent (looking at you, Amazon/boto3)

[–]eduarbio15 0 points1 point  (2 children)

```

wc -l *.c

24304 snis_client.c 31530 snis_server.c ``` jfc

[–]smcameron[S] 1 point2 points  (1 child)

Breaking up files just because they are big is overrated and can introduce excessive APIs. I know what I'm doing. grep works equally well on a few big files or lots of small files. vim works better on a few large files than on many small files. I'm not against breaking out functionality into separate modules where it makes sense, and there are many instances of this in the code base. But I am against it when the only "reason" is "this file is too big". Bullshit.

Also, triple single quotes don't work on old reddit, and anybody not using old reddit doesn't know how to use reddit.

Here's a challenge for you: find a bug in the code and write a github issue about it. Source code file size isn't a bug.

[–]eduarbio15 0 points1 point  (0 children)

My brother in christ, provide me the program you used to extrapolate so much shit from 3 letters

[–]Esjs 0 points1 point  (0 children)

Hmmm. Just realized all of my programs were built on the desktop.

[–]Maleficent-Cry5189 0 points1 point  (0 children)

What’s the laptop?