|
NihilCredo posted:flashpoll, which one would you rather see in a script: full pipe or no pipe
|
# ? Oct 12, 2021 17:21 |
|
|
# ? Apr 19, 2024 16:56 |
|
NihilCredo posted:flashpoll, which one would you rather see in a script: i like 2 but I know a lot of people either hate or don’t understand awk so i would write 2 but don’t mind seeing 1
|
# ? Oct 12, 2021 17:52 |
|
animist posted:unless you're running on kooberneetus and only have a few hundred mb of headspace it's more likely than you think, openshift pipelines for instance
|
# ? Oct 12, 2021 18:23 |
|
NihilCredo posted:flashpoll, which one would you rather see in a script: 2 is a nice use of awk force people to learn awk, its useful
|
# ? Oct 12, 2021 18:44 |
|
I don't know, I find it a bit you know
|
# ? Oct 12, 2021 18:45 |
|
for the birds?
|
# ? Oct 12, 2021 18:48 |
|
NihilCredo posted:flashpoll, which one would you rather see in a script: Both are fine. cut is nice when specifically working with delimited text, which I do a lot, so I have a slightly stronger preference for it.
|
# ? Oct 12, 2021 19:03 |
|
either you use the cool hidden options of the application and have a comment above it or you break it out to have explicit steps shell/code golfing is a terrible path so either breaking it down into chunks or carefully documenting what's happening at the code path is the way
|
# ? Oct 12, 2021 19:26 |
|
either way if this is something where style (readability, maintainability) matters enough to ask you might want to shy away from doing it in shell anyway. might be a tiny simple thing today, but if it looks like it'll live for some time it is kind of dangerous.
|
# ? Oct 12, 2021 19:32 |
|
NihilCredo posted:flashpoll, which one would you rather see in a script: I like #2, but I would not expect programmers or sysadmins to have a strong grasp of awk so I would go with #1. This is because I would expect them to crib off of existing scripts and it's bad enough to try to teach them regular expressions that if you squeeze awk or sed then something else might fall out.
|
# ? Oct 12, 2021 20:01 |
|
NihilCredo posted:flashpoll, which one would you rather see in a script: Cut is a really poo poo tool, and should be avoided - so I say #2. What happens if you get data that's \t separated, or maybe has justified columns with non-uniform number of spaces? Also awk is cool and good, and I'm trying hard to use it more. NOW: onto the real spicy question: (1) code:
(2) code:
|
# ? Oct 12, 2021 20:01 |
|
I replaced my work stevebook with a ThinkPad T14 running NixOS and it is v. needs suiting so far. Even the docking station just works, and it was super easy to set up behaviour for the external monitor in sway. Really good to be back in a sane OS. Meanwhile those of my students who have an M1 with macOS can run neither valgrind or leaksanitizer. How does Apple debug their own C code on those machines?
|
# ? Oct 12, 2021 20:30 |
|
Athas posted:How does Apple debug their own C code on those machines? lol
|
# ? Oct 12, 2021 20:33 |
|
Athas posted:I replaced my work stevebook with a ThinkPad T14 running NixOS and it is v. needs suiting so far. Even the docking station just works, and it was super easy to set up behaviour for the external monitor in sway. Really good to be back in a sane OS. clang address sanitizer
|
# ? Oct 12, 2021 20:37 |
|
Athas posted:I replaced my work stevebook with a ThinkPad T14 running NixOS and it is v. needs suiting so far. Even the docking station just works, and it was super easy to set up behaviour for the external monitor in sway. Really good to be back in a sane OS. does nix have rank-n types yet
|
# ? Oct 14, 2021 04:56 |
|
*reading haskell language specs, eyes widening in horror and incomprehension* ...rank-n types monster
|
# ? Oct 14, 2021 06:38 |
|
Hey this is another fun comment read: https://lwn.net/Articles/872639/#Comments Lots of references to obscure, bespoke android spin offs that try to block Google tracking and stuff (which I don’t have a problem with). LineageOS, e (??), CalyxOS, PostmarketOS, blah… My favorite comment is the smug dude who says: quote:This is why I'm keeping my cyanogenmod/AOSP6 phone until it physically stops working. It can't talk to Google and there isn't even a developer to send telemetry to. The first response on his comment is to let him know his phone is probably not secure and spewing data.
|
# ? Oct 15, 2021 03:12 |
|
the name /e/OS makes me think of an android fork catered to 4chan users instead of notifications for google products and services, it pushes you a free racist meme every 20 minutes
|
# ? Oct 15, 2021 03:25 |
|
ESR got banned from the AlternateHistory.com forums for being racist Funnily enough, when he first started posting in 2019 he immediately got into a squabble with the locals for pedantic reasons
|
# ? Oct 15, 2021 06:54 |
|
and to think that I actually tried to understand what he was writing (primarily his at-the-time lauded Cathedral and Bazaar) in my college days in the late 90s. I should have focused less on that free software evangelizing stuff and more on learning how bison worked and playing video games and watching anime
|
# ? Oct 15, 2021 09:07 |
|
RocketLunatic posted:Hey this is another fun comment read: just lol if don't have a problem with google tracking and also that you can't fathom why anyone else would
|
# ? Oct 15, 2021 23:48 |
|
https://mobile.twitter.com/caraesten/status/1449129418710937600
|
# ? Oct 16, 2021 00:21 |
|
Rotor mode and beep mode
|
# ? Oct 16, 2021 01:05 |
|
What did ESR make that we're still talking about him this many years later? I've only ever heard about him in the context of ESR being unpleasant, again.
|
# ? Oct 16, 2021 01:07 |
|
RokosCockatrice posted:What did ESR make that we're still talking about him this many years later? I've only ever heard about him in the context of ESR being unpleasant, again.
|
# ? Oct 16, 2021 01:08 |
|
ESR has made nothing, but he’s stolen a few projects out from other people by being a gigantic rear end in a top hat.
|
# ? Oct 16, 2021 01:16 |
|
RokosCockatrice posted:What did ESR make that we're still talking about him this many years later? I've only ever heard about him in the context of ESR being unpleasant, again. he has never actually written a program of note but his lovely book made the dot com bros at netscape open source a fork as mozilla so he claims to be a minor deity of open sores
|
# ? Oct 16, 2021 01:19 |
|
he wrote a theorem proving kernel configurator in python that was unusably slow
|
# ? Oct 16, 2021 01:21 |
|
supposedly they wrote one good book (supposedly, i am curious and will buy it used later) about writing portable UNIX software, and maintained lot of useful usenet FAQs. after that? gently caress all
matti fucked around with this message at 01:25 on Oct 16, 2021 |
# ? Oct 16, 2021 01:22 |
|
esr’s technical history basically consists of barging in to a handful of projects, making some fairly insignificant technical contributions, and invariably poisoning the community so deeply that it splits itself apart just to get away from him esr’s leadership history basically consists of having written a single essay laying out an argument for the superiority of the open source development process which has the lamentable misfortune of being a bald series of assertions completely unsupported by evidence; followed by twenty five years of barging in to a million oss community mailing lists and having loud uninformed opinions at them for a few hours until he fucks off back to whatever swamp hole he crawled out of
|
# ? Oct 16, 2021 01:25 |
|
pike and kernighan wrote the only paper you need to read about writing unix software in 1984: http://harmful.cat-v.org/cat-v/unix_prog_design.pdf
|
# ? Oct 16, 2021 01:27 |
|
rob pike is not a likable person either
|
# ? Oct 16, 2021 01:29 |
|
no but he actually wrote software that mattered, unlike esr, and is several orders of magnitude closer to authoritative on anything worth giving a poo poo about in oss than esr is
|
# ? Oct 16, 2021 01:35 |
|
the late cat-v person was also a right wing libertarian shitrobot go to harmful.cat-v.org and take your pick fortunately nobody cared what they thought then or now, i mean other than the hn swamp i guess
|
# ? Oct 16, 2021 01:37 |
|
Sapozhnik posted:the late cat-v person was also a right wing libertarian shitrobot oh yeah that poo poo i refuse to even to even look at
|
# ? Oct 16, 2021 01:42 |
|
rjmccall posted:esr’s technical history basically consists of barging in to a handful of projects, making some fairly insignificant technical contributions, and invariably poisoning the community so deeply that it splits itself apart just to get away from him remember when he was going to convert gcc from svn to git but he couldn't do it until he got 128GB+ of ram to run his bespoke program then some other dude wrote a <300 line bash script that just called svn and git https://www.phoronix.com/scan.php?page=news_item&px=GCC-SVN-To-Git-May-2019
|
# ? Oct 16, 2021 04:27 |
|
the 9front people really ought to finish taking over cat-v and purging the last vestiges of chuddery
|
# ? Oct 16, 2021 04:36 |
|
didn't he continue to push the script could, maybe, not be a perfect history, even though the original svn repo would continue to exist for reference? gotta get that ram money
|
# ? Oct 16, 2021 04:37 |
|
cat -v's software rants is sort of fun though, wish there was some other archive of why Your Programming Language Sucks besides there. And YOSPOS, I suppose. And The Daily WTF maybe? I remember it was the first place where I encountered Zed Shaw's Rails is a Ghetto diatribe. Funny how he was apparently anti-Wikileaks/anti-Assange
|
# ? Oct 16, 2021 08:28 |
|
|
# ? Apr 19, 2024 16:56 |
|
no
|
# ? Oct 16, 2021 08:44 |