Better HN
topnewbestaskshowjobs
Log inSign up

ryangs

137 karma · joined Jul 28, 2021 (5y ago) · 33 submissions

Submissions

comment 1y ago · link · parent

While laudable, this seems significantly harder to implement than banning advertising. Not that either are particularly feasible policies but this one seems harder.

comment 1y ago · link · parent

Epistemic statuses are a great aid in sharing ideas without sounding overly confident.

https://forum.effectivealtruism.org/posts/bbtvDJtb6YwwWtJm7/...

comment 1y ago · link · parent

https://www.hillelwayne.com/post/graph-types/ gives an interesting take on why we don't see a graph type as a primitive on more programming languages. Essentially boils down to graphs being very vague and depending on the topology of your graphs you are going to want different implementations for reasonable efficiency.

That said, there are graph databases.

comment 1y ago · link · parent

I like this. Testing the browser extension now and pretty happy with it (after tweaking so returning to a tab has a grace period). I was using StayFocused, which is okay, but too tempting to just disable it (and annoying if I need to access a blocked site for work purposes).

comment 1y ago · link · parent

Java Streams and Kotlin Sequences provide similar iterator capabilities. Iterators are great for this lazy performance but can sometimes be difficult to debug. Especially if you are nesting many iterators, then extracting the underlying collection can be complicated. But necessary in many workflows.

comment 1y ago · link · parent

Excited to hear about Hardcover! I like StoryGraph but the lack of API frustrates me - I want to be able to sync back to my general notes store (Obsidian). Hopefully Hardcover works better with that.

comment 2y ago · link · parent

>Debug information tends to be large and linking it slows down linking quite considerably. If you’re like many developers and you generally use println for debugging and rarely or never use an actual debugger, then this is wasted time.

Interesting. Is this true? In my work (java/kotlin, primarily in app code on a server, occasional postgres or frontend js/react stuff), I'm almost always reaching for a debugger as an enormously more powerful tool than println debugging. My tests are essentially the println, and if they fail for any interesting reason I'll want the debugger.

comment 2y ago · link · parent

What is your pattern for navigating to a function definition (as an example of a basic IDE operation that doesn't seem supported)? Grep?

comment 2y ago · link · parent

What are some of the challenges involved with international hiring in a remote environment? I work at a fully remote startup with ~200 employees. We hire from a couple dozen countries but I know there are fairly significant barriers whenever we add a new one. What are some of those challenges? Are they getting more streamlined?

comment 2y ago · link · parent

I think proper nouns get a bit more of a pass in terms of purple prose.

comment 2y ago · link · parent

But the nonempty list never has an element, so we don't need to worry about the type mutation of removing an element from it. Filter just returns a nonempty list.

comment 2y ago · link · parent

The problem is that user inferring doesn't scale. For small projects this is reasonable but for enterprise software engineering it is easy for a constraint that isn't enforced by the type system to be missed by an engineer leading to a bug. Whereas typed constraints naturally propagate throughout the system.

comment 2y ago · link · parent

Indeed, still in use. Also presumably the Aho of the Aho-Corasick string matching algorithm.

comment 2y ago · link · parent

Right - it is saying that there is no algorithm to do this in general. Any specific instance may have a solution.

comment 2y ago · link · parent

Interesting read. Does not seem to be working with the same set of facts as the ACX post[1], especially around FDA approval.

[1]: https://www.astralcodexten.com/p/defying-cavity-lantern-biow....

comment 2y ago · link · parent

Big fan of todoist. I've been using it for less than a month, but have already switched to the yearly subscription. I use Obsidian for my notes, but for remembering to do something, I now use Todoist. Any passing thought that I want to deliberately go back to (or even patterns of thinking, like every 6 months, reflect on this concept) can be put into Todoist and I know that I'll see it again.

I contemplated trying to do all of this in Obsidian but the conventional advice seems that while you can, it isn't worth it. Todoist offering a simple mobile interface where I can quickly add a task is great. I wish reminders worked a little better (I'd been using alarms on my phone for reminders I want at a specific time, and Todoist reminders aren't nearly as attention grabbing).

comment 2y ago · link · parent

I've noticed some streaming platforms have ads for other shows/movies they've made. I don't love these but can tolerate them because:

1. They are only at the start of a show, so I'm not interrupted. 2. They offer a skip button. 3. They are ads for somewhat-relevant content and I don't tend to explore the space of other things to watch very much.

That said, it's a knife-edge for me. If they got even a smidgeon worse I probably wouldn't watch anything on those platforms.

comment 2y ago · link · parent

Linking is an exceptionally good idea. It is very transformative to how I think about organizing information and doing it with Obsidian the past few months has felt great. Besides future proofing, I love the speed of processing a simple text format like markdown (plus local first) allows. Everything opens instantly, which feels very different from things like Google docs or Microsoft Word. About the only note tool it doesn't replace for me is spreadsheets that use math. There are plugins but it doesn't feel quite as clean as Google sheets for this purpose.

comment 2y ago · link · parent

Being 'fair' helps company relationships with current and future employees.

comment 3y ago · link · parent

Highly recommend Freya's various deep dives into various game development contents. She also has twitch vods for developing those videos which are also fascinating.

https://www.youtube.com/@Acegikmo

comment 3y ago · link · parent

Highly recommend the chrome extension Facebook Purity. It strips your feed of the nonsense you don't care about in a very configurable way.

comment 3y ago · link · parent

This was effective for me around a decade ago. These days it feels like most algorithmic content generation sites don't care when you express negative interest in something.

comment 3y ago · link · parent

I think there is a fundamental gap between the OP's concept of "Point" versus the responders. They're essentially asking if decidability has practical[1] uses to which the answer is generally "No". When a general CS practitioner imagines doing something via computation, they are already thinking of things in the realm of the possible. It may be helpful to know that exact answers are intractable and you'll have to settle for an approximation, but that information seems to correlate more with complexity than with decidability.

[1]: Where practical is in the sense of an engineer (or in their terms, a CS practitioner), not a theoretician. Most of the responders seem to interpret practical in the sense of a mathematician.

comment 3y ago · link · parent

Interesting breakdown. But this format is horrible for conveying information. An improvement would be removing the slides, crafting some coherent paragraphs and then reinserting some of the more crucial images for support.

comment 3y ago · link · parent

It looks so bad in the context they give themselves:

C# $"{x} plus {y} equals {x + y}"

Visual Basic $"{x} plus {y} equals {x + y}"

Python f"{x} plus {y} equals {x + y}"

Scala s"$x plus $y equals ${x + y}"

Groovy "$x plus $y equals ${x + y}"

Kotlin "$x plus $y equals ${x + y}"

JavaScript `${x} plus ${y} equals ${x + y}`

Ruby "#{x} plus #{y} equals #{x + y}"

Swift "\(x) plus \(y) equals \(x + y)"

And finally:

Java STR."\{x} plus \{y} equals \{x + y}"

comment 3y ago · link · parent

See also GameTex[1]. It is a LaTeX framework for writing a certain style of LARP common at MIT and Stanford.

[1]: http://web.mit.edu/kenclary/Public/Guild/GameTeX/

comment 3y ago · link · parent

Definitely agree with unethical, although net negative seems a lot harder to quantify. Amazon has a lot of bad practices I disagree with, but are they net negative? I find it difficult to assess. And even if they aren't net negative now, is the 10 year trajectory clearly downward?

Soloing out Netflix, is there anything particularly wrong with them? I have significant gripes with all the others but no specifics about Netflix.

comment 3y ago · link · parent

I think the important thing is to find a balance that satisfies you. If you never do any self improvement, you might be missing out on a much better life that would cost you relatively little to get to. But maybe your current life is hunky-dory, in which case, that's great, you do you!

And over-focus on "self-improvement" may mean you miss out on things along the way. Making yourself miss those things may be more of a decline than improvement for you.

comment 3y ago · link · parent

Can you describe the structure of your conversation? Did you describe what libraries you were using and send the full code of the main app component?

comment 3y ago · link · parent

Much more reasonable advice would be along the lines of "If you aren't excited about what you are going to do today for many days in a row, you should change things up."

Substitute "excited" for any reasonable descriptor. This assumes a certain amount of agency, otherwise it is just depressing that things aren't great and you can't change them.

12