|
Pike's an acme/Plan9 goober, 'cmon. I once worked with a dude who was super into Pike's stuff and used acme. No syntax highlighting and not even a monospace font, just bizarre poo poo. He was super duper racist and the worst coworker I've ever had and made every woman in the office incredibly uncomfortable. Once called me a "maria worshiper" for being from a catholic family. So when I think of Rob Pike I think of golang and that dude
|
# ? Nov 30, 2021 19:33 |
|
|
# ? Jun 10, 2024 06:54 |
|
i don't like python's for/else. i always expect it to hit the else clause if the thing being iterated over was empty and that's not at all what it is.
|
# ? Nov 30, 2021 19:42 |
|
Plorkyeran posted:i don't like python's for/else. i always expect it to hit the else clause if the thing being iterated over was empty and that's not at all what it is. Yeah it's really weird and that's a super common misconception. When we were a python shop we had a moratorium on using it precisely because of that.
|
# ? Nov 30, 2021 19:47 |
|
I've never seen it used in the wild
|
# ? Nov 30, 2021 19:48 |
Plorkyeran posted:i don't like python's for/else. i always expect it to hit the else clause if the thing being iterated over was empty and that's not at all what it is. it does work exactly like that, however. else clause of for loops executes in every single scenario excluding an explicit invocation of break
|
|
# ? Nov 30, 2021 19:49 |
|
agreed but things that are empty are falsey, so you can just use an "or" which looks better too e: I think the complaint is that in conversational english the "else" implies an exclusivity that is not reflected in the logic
|
# ? Nov 30, 2021 19:50 |
12 rats tied together posted:agreed but things that are empty are falsey, so you can just use an "or" which looks better too im just clarifying how it works. imo you should never use it in a shared codebase purely because it’s an incredibly uncommon control flow construct with straightforward and more explicit alternatives
|
|
# ? Nov 30, 2021 19:52 |
|
cinci zoo sniper posted:it does work exactly like that, however. else clause of for loops executes in every single scenario excluding an explicit invocation of break fine add "only" before the word if
|
# ? Nov 30, 2021 19:53 |
|
Fortaleza posted:IME the people that actively dislike emacs are the same sort that think of laziness as a virtue and just aren't reliable. Which is fine I guess, it's just a job. so the good people are the ones just like you? Xarn posted:To be constructive for once, I think I am pretty okay at writing meaningful release notes, but I write them during releases... And that's hurt me lately, because suddenly I have 300 commits since last release and I have to go through them now. probably just as well that you end up going over the commits again. good reason to write them nicely Plorkyeran posted:there isn't a hard limit, but the official git guidance is that the first line is the email subject and the rest is the body of the email, and you shouldn't be one of those people who writes the entire email in the subject if the email fits in a reasonably short subject that sounds like success to me
|
# ? Nov 30, 2021 19:53 |
also it should’ve been called “after”, i agree that “else” is awkward
|
|
# ? Nov 30, 2021 19:53 |
Plorkyeran posted:fine add "only" before the word if which word “if”
|
|
# ? Nov 30, 2021 19:54 |
|
12 rats tied together posted:ive never worked with an emacs user who tries to commit trailing whitespace, 14 blank newlines at the end of a file, or several lines between classes that are themselves just random counts of whitespace characters for no reason jfc who cares this much about some extraneous whitespace
|
# ? Nov 30, 2021 19:56 |
|
12 rats tied together posted:e: I think the complaint is that in conversational english the "else" implies an exclusivity that is not reflected in the logic "else" isn't really a word used in the programming jargon sense in conversational english at all. the story behind it is weird and it's apparently the result of a mistranslation from german. cinci zoo sniper posted:which word “if” there's only one in that sentence.
|
# ? Nov 30, 2021 19:57 |
|
cinci zoo sniper posted:also it should’ve been called “after”, i agree that “else” is awkward yeah, after looks good pokeyman posted:so the good people are the ones just like you?
|
# ? Nov 30, 2021 19:57 |
Plorkyeran posted:"else" isn't really a word used in the programming jargon sense in conversational english at all. the story behind it is weird and it's apparently the result of a mistranslation from german. oh sorry, im an idiot. you were referring to your initial message
|
|
# ? Nov 30, 2021 19:58 |
|
12 rats tied together posted:i think its pretty clear that OP is talking about treating your tools with care and applying effort to their configuration and maintenance, which across the history of time and civilization is one of the few things humans regard as objectively good, and the opposite as objectively bad It's this, but also mildly trolling But yes, for the record good programmers do as I do.
|
# ? Nov 30, 2021 20:02 |
|
I miss working in python. We just do web service stuff so it fits nicely, but these days our main projects are golang and asp classic
|
# ? Nov 30, 2021 20:03 |
Fortaleza posted:I miss working in python. We just do web service stuff so it fits nicely, but these days our main projects are golang and asp classic that stack reminds me of my iconic nutella and salami sandwich
|
|
# ? Nov 30, 2021 20:04 |
|
Plorkyeran posted:there isn't a hard limit, but the official git guidance is that the first line is the email subject and the rest is the body of the email, and you shouldn't be one of those people who writes the entire email in the subject what does email ahve to do with source control?
|
# ? Nov 30, 2021 20:16 |
|
Shaggar posted:what does email ahve to do with source control? nothing, but it's what git was designed to handle and everyone started using git so that legacy unhelpfully leaks out
|
# ? Nov 30, 2021 20:22 |
|
show me a dev who lovingly curates their "classic" tools and I'll show you a team that gripes behind their back
|
# ? Nov 30, 2021 20:27 |
|
Fortaleza posted:But yes, for the record good programmers do as I do. Fortaleza posted:We just do web service stuff so it fits nicely, but these days our main projects are golang and asp classic
|
# ? Nov 30, 2021 20:42 |
|
They're inherited projects, the commits I make on those absolute piles are good. Perfect, genuine, complete, crystalline, pure.
|
# ? Nov 30, 2021 20:53 |
|
HappyHippo posted:jfc who cares this much about some extraneous whitespace
|
# ? Nov 30, 2021 21:20 |
speaking of classical tools, im a rebel so today i finally replaced vanilla zsh on mac and vanilla bash on wsl with fish
|
|
# ? Nov 30, 2021 21:29 |
|
i'm gonna switch to xonsh now. you have inspired me
|
# ? Nov 30, 2021 22:04 |
|
you may only commit if you are holding the conch
|
# ? Nov 30, 2021 22:44 |
12 rats tied together posted:i'm gonna switch to xonsh now. you have inspired me my vimrc is zero lines because i forgot to add fzf plugin
|
|
# ? Nov 30, 2021 23:02 |
|
Git commit message formatting "best practices" are a result of how Torvalds wants it done on the kernel repo, a realm full of people who actually do their mail through pine or mutt, are subscribed to mailing lists and know wtf a /var/spool is. Their editors have elegant, efficient and scriptable modal languages for navigating and manipulating plain text, but they can't do soft wrap, so the solution is a convention that first line has to be 50 chars max because else git log runs off the screen since these people also actually run their terminal emulators in 80x25 even though those emulators have supported resizing for over thirty years now. There's probably an instance of Torvalds wishing pestilence on an IC on LKML for every single of those conventions.
|
# ? Nov 30, 2021 23:43 |
|
General reminder that 80 width is insanely anti-semitic
|
# ? Nov 30, 2021 23:45 |
|
Captain Foo posted:General reminder that 80 width is insanely anti-semitic isn't the python formatter "black"'s default line length of 88 even more so?
|
# ? Nov 30, 2021 23:47 |
Ocean of Milk posted:Git commit message formatting "best practices" are a result of how Torvalds wants it done on the kernel repo, a realm full of people who actually do their mail through pine or mutt, are subscribed to mailing lists and know wtf a /var/spool is. Their editors have elegant, efficient and scriptable modal languages for navigating and manipulating plain text, but they can't do soft wrap, so the solution is a convention that first line has to be 50 chars max because else git log runs off the screen since these people also actually run their terminal emulators in 80x25 even though those emulators have supported resizing for over thirty years now. There's probably an instance of Torvalds wishing pestilence on an IC on LKML for every single of those conventions. 80x25 terminals are the reason why python stdlib style guide is limits line length at 79 characters
|
|
# ? Nov 30, 2021 23:55 |
|
MrQueasy posted:isn't the python formatter "black"'s default line length of 88 even more so? i don’t know the reasoning for that selection so i cannot say but it’s tough to beat 80 char width
|
# ? Nov 30, 2021 23:58 |
|
Captain Foo posted:General reminder that 80 width is insanely anti-semitic
|
# ? Dec 1, 2021 00:04 |
|
the era of 4k screens displaying 80x25 terminals
|
# ? Dec 1, 2021 00:04 |
|
Captain Foo posted:General reminder that 80 width is insanely anti-semitic Why?
|
# ? Dec 1, 2021 00:07 |
|
the screens get bigger but the number of characters stays the same
|
# ? Dec 1, 2021 00:07 |
|
Shaggar posted:yeah all my commit messages are written so future me can understand what i did same, but all my code. I keep telling junior developers that the time they don’t spend today making their code readable instead of terse and understandable instead of clever (lol, like it ever will be) is just stealing time from themselves in the future. and that’s ok, it’s their life they are also free to start smoking if they want to enjoy today at the expense of their future. BUT they are also stealing my time, and every other developer that has to interact with that code and that is not ok.
|
# ? Dec 1, 2021 00:12 |
|
Armitag3 posted:Why? IBM 80-character punched cards were notably used during a well-known genocide, reducing people from the targeted groups to merely numbers in a machine.
|
# ? Dec 1, 2021 00:16 |
|
|
# ? Jun 10, 2024 06:54 |
|
you're gonna flip your poo poo when you find out what the us military uses computers for
|
# ? Dec 1, 2021 00:20 |