Readit News logoReadit News
guest2143 commented on From Vim to Emacs in fourteen days (2015)   blog.aaronbieber.com/2015... · Posted by u/Assossa
sumnole · 5 years ago
I'd like to ask the opposite question as someone who knows Vim but not Emacs. What am I missing if I'm only concerned with text editing?
guest2143 · 5 years ago
The ability to travel thru time with :earlier & :later

(edit like a timelord!)

guest2143 commented on C++ the Good Parts (2014)   infoq.com/presentations/c... · Posted by u/zerofrancisco
guest2143 · 5 years ago
I totally expected this to be a joke where the site was blank.

I haven't worked with C++ for years, and it's nice to see there really has been some progress improving some of the C++ parts.

guest2143 commented on Using Enumerated Types in Python   johnlekberg.com/blog/2020... · Posted by u/kaunta
zo1 · 6 years ago
The article is incredibly misleading. Python Enums are way more powerful than what is showcased there.

First, rudimentary/basic enums are as simple as instance variables on a class and allow super-helpful IDE "auto-completion" that doesn't necessitate the use of magic-strings to at least "set" the enum. I've been using this ridiculously simple trick since 2.5 ten years ago. Magic-strings are bad, and even worse when you have a disparate code-base in a dynamically typed language. Example:

    class MyEnum(object):
        Pass = 1
        Fail = 2

    my_value = MyEnum. <-- at this point, the IDE gives you code-completion.

Second, real Enums added as a language-feature along with type-hinting are almost 100% on-par with statically typed languages. See:

    class MyEnum(Enum):
        Pass = 1
        Fail = 2

    def my_func(did_they_pass: MyEnum):
        if did_they_pass.Something:   # IDE / type-checker will go nuts here.
            print("Something")
Edit: Forgot the main point. Switch/case uses are only a small sub-set of the uses of Enums. So even basic/crappy enums are better than magic strings in a dynamically-typed language. Also, please don't use "list of strings" for enums in Python, there are much better ways to do that sort of thing that preclude unnecessary bugs popping up.

guest2143 · 6 years ago
Python 4... It's just going to be Haskell.
guest2143 commented on Review: Lamy Safari (2008)   penaddict.com/blog/2008/1... · Posted by u/Tomte
nextos · 6 years ago
Safari is cool, but for the same price I've found some Pilots to be much better. And if you are willing to spend a tiny bit more there are tons of good options.

I really like Lamy 2000, though.

guest2143 · 6 years ago
Lamy 2000 is so amazingly smooth. I really like having the piston fill, instead of cartridges and adapters. There's more ink, and it's more reliable with less fuss and mess.
guest2143 commented on Reading habits that changed my life   blog.usejournal.com/10-re... · Posted by u/manjotpahwa
guest2143 · 6 years ago
The best tool to read with is a pencil.
guest2143 commented on Habits of High-Functioning Teams   deniseyu.io/2020/05/23/ha... · Posted by u/zbentley
guest2143 · 6 years ago
Anyone have an example of taking a low functioning team to a high functioning one? Building trust, changing culture.

It's one thing to just say "here's the ideal". And another to say if you're in a sub-optimal place, "just leave."

But how to change a poor habit place into a good habit place.

I don't think bad habits really go away, they get drowned out by the better habits. I think the same is true of teams. But, IMHE, improvement has been hard to come by.

I'd love to hear your stories.

guest2143 commented on Using Python and Selenium for automated visual regression testing   github.com/seleniumbase/S... · Posted by u/seleniumbase
guest2143 · 6 years ago
I'd like to see some approval test infrastructure here as well, q.v. https://approvaltests.com/

Being able to have a customer accept what the output looks like and then listening to when the page changes would be great for giving non-technical people control over passing tests.

guest2143 commented on Roam: Why I Love It and How I Use It   nateliason.com/blog/roam... · Posted by u/yarapavan
seanhunter · 6 years ago
He doesn't seem to understand tags and links in evernote. Evernote can absolutely be structured as a flat graph in the way that he describes as a big benefit of Roam.

That said, as a long-term evernote user, I've been wanting to leave for a while and move to an OSS/self-hosted solution. It might be joplin but my few attempts to use it I haven't yet had enough time to evaluate whether it would be a viable long-term solution.

Edit: I'm also seriously considering just using https://github.com/Alok/notational-fzf-vim and only doing note-taking on my laptop (not on mobile). It's extremely fast and basically zero friction. This would have a slight downside in that I quite often want to consume notes on the go so I may need to find an option there (eg serve my notes up using a private server or something).

guest2143 · 6 years ago
Have you considered vimwiki http://vimwiki.github.io/?
guest2143 commented on Spotify Becomes Latest Tech Company to Hit Pause on Political Ads   npr.org/2019/12/28/792078... · Posted by u/happy-go-lucky
guest2143 · 6 years ago
Can't they just charge a lot more? Like $10million per ad?

It's a surcharge to avoid political ads, but hey Mr. Bloomberg, if you need to get attention... we will collect your money.

What would they do with this extra money? Fund open source foundations?

...wait... is $10Million too low? Is there that much money in politics?

guest2143 commented on Narcissistic CEOs weaken collaboration and integrity   gsb.stanford.edu/insights... · Posted by u/hhs
guest2143 · 6 years ago
The only defense social humans have is really to detect them. Watch for their inability to feel empathy.

Ask them to tell a joke. Do they do it right?

http://hintjens.com/blog:_psychopaths

u/guest2143

KarmaCake day46May 2, 2016View Original