Readit News logoReadit News
more-coffee commented on Which Motorola Phone Should You Buy?   wired.com/story/best-moto... · Posted by u/GershwinA
duffyjp · 6 months ago
I have their "best traditional" entry, the Edge 2024. I really like it.

It's the karate chop flashlight that keeps me on Moto for my Android.

One thing not mentioned is that this phone has a desktop mode they call "Ready For". I can plug it into my monitor via USB-C and you get a full ChromeOS looking desktop. I have a USB-C monitor with Mouse/Keyboard plugged in and that all worked. I also tried it on a regular TV with a USB-C -> HDMI cable and a XBox controller paired to the phone.

more-coffee · 6 months ago
"karate chop flashlight" love this description! That's exactly why I've stayed with Motorola after my G5 just got too slow. I'm now on a Moto G Pro from 09/2020, it's getting fairly slow but all in all it gets the job done.
more-coffee commented on Cognitive load is what matters   minds.md/zakirullin/cogni... · Posted by u/zdw
rtpg · 8 months ago
An outdated comment is still a datapoint! Including if the comment was wrong when it was first written!

We live in a world with version history, repositories with change requests, communications… code comments are a part of that ecosystem.

A comment that is outright incorrect at inception is still valuable even if it is at least an attempt by the writer to describe their internal understanding of things.

more-coffee · 8 months ago
This. I have argued with plenty of developers on why comments are useful, and the counter arguments are always the same.

I believe it boils down to a lack of foresight. At some point in time, someone is going to revisit your code, and even just a small `// Sorry this is awful, we have to X but this was difficult because of Y` will go a long way.

While I (try to) have very fluid opinions in all aspects of programming, the usefulness of comments is not something I (think!) I'll ever budge on. :)

more-coffee commented on Why wordfreq will not be updated   github.com/rspeer/wordfre... · Posted by u/tomthe
heavensteeth · a year ago
The earth will recover. We may not, but earth will.
more-coffee · a year ago
And in a few million years, the next intelligent life form will examine remains of human texts, and wonder: with all the tools and knowledge they possessed, how could they not have prevented their demise?

(Sorry for pessimism and offtopicism)

more-coffee commented on Difftastic, a structural diff tool that understands syntax   difftastic.wilfred.me.uk/... · Posted by u/frankjr
mlavrent · a year ago
I’m almost not sure why tools like git don’t ship with this as default. Been using difft for about a year now, and my main complaint is that it makes it hard to go back and use other diff tools when I don’t have difft available :).

I am curious if there’s been any work on _semantic_ diff tools as well (for when eg the syntax changes but the meaning is the same). It seems like an intractable problem in the general but maybe it’s doable and/or useful for smaller DSLs or subsets of some languages?

more-coffee · a year ago
I'm trying difft for git now and I also really like it. One reason why I think it shouldn't be the default is that it hides whitespace differences. Maybe that's configurable though, haven't looked into that
more-coffee commented on Cowsay   en.wikipedia.org/wiki/Cow... · Posted by u/tontonius
RadiozRadioz · a year ago
If you have this installed on your system and run an Ansible playbook, all the playbook logging will be automatically piped through cowsay.

I'm not sure why anyone would want to, but you can disable this behavior by setting ANSIBLE_NOCOWS=1

more-coffee · a year ago
It's a tad silly that they made this the default
more-coffee commented on Aho – a Git implementation in Awk   github.com/djanderson/aho... · Posted by u/pabs3
sampo · 2 years ago
> I don't plan to add network functionality to this (even though you totally can), so no clone or push.

You can also git clone from a repository in a different directory in the same computer. And push to.

more-coffee · 2 years ago
That is so obvious.. yet I've never thought to try this in 10 years of using git.
more-coffee commented on Writing Python like it's Rust   kobzol.github.io/rust/pyt... · Posted by u/thunderbong
extr · 2 years ago
What is the smart money doing for type checking in Python? I've used mypy which seems to work well but is incredibly slow (3-4s to update linting after I change code). I've tried pylance type checking in VS Code, which seems to work well + fast but is less clear and comprehensive than mypy. I've also seen projects like pytype [1] and pyre [2] used by Google/Meta, but people say those tools don't really make sense to use unless you're an engineer for those companies.

Am just curious if mypy is really the best option right now?

[1] https://github.com/google/pytype [2] https://pyre-check.org/

more-coffee · 2 years ago
For your mypy performance question, make sure it's using incremental mode [1] so that it can skip checks on code that didn't change. Yes, it is probably among the slowest of type checkers, but it is also quite thorough.

[1] https://mypy.readthedocs.io/en/stable/command_line.html#incr...

more-coffee commented on Curl 8.0.1   daniel.haxx.se/blog/2023/... · Posted by u/tapanjk
junon · 2 years ago
Yep, have definitely done this once or twice with Chalk. I don't recall a time that a X.0.0 wasn't immediately followed up with an X.0.1 release for some dumb mistake I made.
more-coffee · 2 years ago
And that's why I never trust/use x.0.0 releases because they must have missed something :)
more-coffee commented on Speeding up the JavaScript ecosystem, one library at a time   marvinh.dev/blog/speeding... · Posted by u/fabian2k
Waterluvian · 3 years ago
I’m in pain reading this. But I feel the need to confess my own sin:

I once didn’t want to write or add a dependency for a Python deep equality checker so I just sorted, JSONified, and string compared the two. It worked fine for years. It wasn’t performant important code.

But it still keeps me up at night.

more-coffee · 3 years ago
Depending on how much that equality check is deciding the application's performance, jsonifying to compare stuff is fairly ok.

Just beware of any lists which you'll need to sort manually (on both sides) to prevent false negatives :)

more-coffee commented on TLDR explains what a piece of code does   twitter.com/marcelpociot/... · Posted by u/aaws11
Gordonjcp · 3 years ago
I caused a bit of an "incident" at a web dev company I worked at many many years ago by removing commit access from one of the "technical managers", whose hobby was removing every single comment he could find.

"But the code shouldn't need comments," he'd complain, "it should be obvious what it does otherwise it's just bad code!"

Yes, you dobber, it *is* obvious from the code, the *how* is obvious, but the why and the what might not be. The comments explain what it's doing stuff to and why, and in particular why you'd want that and why it's important. Disk space is free, so in a big long comment just write up what that particular bit of business logic is intended to achieve and what it expects as inputs and outputs.

or, TL;DR "DOCSTRINGS BITCH DO YOU SPEAK IT"

more-coffee · 3 years ago
I bet they also pulled out the "but the code will change and then the comments become invalid, or even gasp misleading"?

u/more-coffee

KarmaCake day102November 16, 2017View Original