Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

15,025 karma · joined Apr 22, 2012 (14y ago) · 2,479 submissions

sfir6i2z@mailer.me
Submissions

comment 5y ago · link · parent

I consider a static type system to be a must-have. If Clojure was more like Typed Racket on the JVM, I would already be using it.

comment 5y ago · link · parent

I prefer functional programming, and have a background in functional programming, but I still primarily work with Java, and it is currently my go-to for any project. In my opinion, Java as a language is gross and unlovable, but the runtime, the development tooling, and selection of libraries and other integrations is about as good as it gets.

I feel like I am continuously looking for a better alternative, but it's hard to overcome the practicality of using something with such immense buy-in. For example, nearly all major SaaS offer a Java SDK, or have Java-specific docs. They want the big companies to be their customers, and they know they use Java. I am all too happy to benefit from that.

It should also be noted that Java the language is rapidly being enhanced with features inspired by functional programming. For example, sum types (in the form of sealed classes) have been added to the language, and ML-style pattern matching with compile-time exhaustiveness checking is in the pipeline. More on the platform side, Java now has a REPL (JShell).

Of course, Java codebases you encounter in the wild are very likely to make you want to cry. The world of Java development has a lot of bad taste and questionable practices enshrined as best practices. That said, the Java community is slowly shifting toward a better style.

633.

The underpass at Bilthoven station (Netherlands)(youtube.com ↗)

1 points · by oftenwrong · 5y ago · discuss

634.

Ackoff: Confusing Learning with Teaching (2013)(solvingforpattern.org ↗)

2 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

Debugging skill is generally useful, even outside of programming. You need it to fix a car that won't start, or to fix a toilet that won't flush, or to figure out why your bread recipe isn't rising well in the oven, or to understand why you fall off a boulder problem at the same spot on every attempt. However, it would be hard to teach debugging independently of another subject, as a general skill. Debugging relies on working knowledge of a system; you need to know a bit about how something works to figure out why it doesn't work. Moreover, debugging requires self-direction and creativity. Debugging is a skill that can be learned, but that cannot really be taught.

comment 5y ago · link · parent

In my experience, this is not much of a problem. Server-side rendering is not that expensive, and can easily serve high volumes of users. After all, it has been used for decades, and is in continued use by most major sites. There's no significant performance difference between rendering HTML and rendering JSON.

Furthermore, there are easy ways to mitigate the cost of rendering on the server side. For example, on a site like reddit, most of the traffic is probably non-logged-in readers hitting the front page, so... cache the front page. Even for logged-in users, the front page listing only could be cached as rendered, since none of it really needs to be live. If liveness was desirable for only certain elements (e.g. voting buttons), it is possible to sprinkle on client-rendered elements.

comment 5y ago · link · parent

Another commenter has shared this extension, which can be user to configure arbitrary redirection rules:

https://addons.mozilla.org/en-GB/firefox/addon/redirector/

comment 5y ago · link · parent

Very nice concept and design. One thing I partially dislike about hn/reddit/youtube/etc is that most of the discussion has already occurred once I have arrived at a post. Although I admit that I find reading others' online discussions addictive, having a more real-time chat attached to a post like on sqwok is appealing. It means anyone can jump in and steer the discussion at any time, and not just be forced to tack on a comment at the bottom that will likely never be seen, buried under the weight of the existing discussion.

I have some feedback:

1.

One part of the interface confused me. From the "trending" tab I clicked on a post in the list. Then, I clicked the left-facing chevron above the post, which to me looked like a "back" button. After clicking, I was taken to the page of the user that made the post I was on. I expected to be taken back to the main trending list. This applies to both the desktop layout and to the mobile layout.

2.

An aspect of the design that rubs me the wrong way is the amount of persistent screen space dedicated to the content of a post in the desktop layout. The content of the post is generally pretty small, yet it takes up over half of the screen, and it appears there is no way to collapse it (?).

Once I've viewed the content of the post, I no longer need to see it, and would probably just want to engage in discussion in the chat with full focus. However, I'm still stuck with the main post taking up over half of the screen, and the chat boxed into its smaller panel.

In the mobile layout of sqwok, the user can click onto the chat tab, and the chat is given the full screen. I like that for a text or image post. On the other hand, for a video post I may want to view the video and read the comments at the same time.

639.

Toon leaves: the leaf that tastes like beef(youtube.com ↗)

1 points · by oftenwrong · 5y ago · discuss

640.

Teddit: a free and open-source Reddit front end focused on privacy(teddit.net ↗)

716 points · by oftenwrong · 5y ago · 293 comments

comment 6y ago · link · parent

There have been some related threads on this subject:

"Oslo made its city center basically car-free" https://news.ycombinator.com/item?id=19000076

"Oslo had 0 pedestrian, 0 cyclist, 0 children and 1 driver traffic deaths in 2019" https://news.ycombinator.com/item?id=21933868

comment 6y ago · link · parent

It's not a matter of design. We can look downwards and work in many positions, yes. However, is it healthy to work this way on a regular basis? I doubt it, but I am open to seeing evidence. I know that for me, it is not a good position; it will cause me back, neck and shoulder pain, and headaches if I work that way.

Anecdotally, I know many avid readers that have developed forward head posture and various pains from their habit.

I'm not sure people have been reading books flat on a desk or in their lap for thousands of years. After all, literacy was not widespread until relatively recent times. Furthermore, many scholar of the past would read and write on an erect, angled surface when possible: https://www.khanacademy.org/humanities/medieval-world/mediev... . Personally, I prefer to do the same when reading for any extended period of time.

comment 6y ago · link · parent

That quote is specifically in reference to this flat device. I agree that with a laptop you can achieve a relatively ergonomic posture if you set it up the way you describe, which minimises the "hunch" and strain, although you can do much better with some accessories. When I work away from home I use a laptop with a laptop stand ( https://www.therooststand.com/ ) and external HIDs.

Of course, any good physical therapist will tell you that no hardware can offset the damage of long-term sedentary work. One might say that more active time is the best ergonomic solution.

644.

Who's Subsidizing Who?(strongtowns.org ↗)

2 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

The flat design would seem to make this even less ergonomic than a laptop (an already low bar). Is this meant to be placed on a desk? The user would basically have to hang their head down to look at the display, which is just in front of their fingers. There is no possible way to maintain a healthy posture without an external display.

Otherwise, the retro hardware aesthetic is cool. Reminds me a bit of the early briefcase-format portable computers. I can't think of any actual use I would have for a thermal printer, but I like the idea of it.

comment 6y ago · link · parent

I hope that configuration language programming will die soon. The approach of generating a configuration using a "real" programming language is superior (and nothing new).

>But, I think people will try to push this further and integrate the infrastructure code inside the actual app. All of it will be managed, by the application itself, at runtime.

I would only adopt this approach if there is an abstraction layer in between, like k8s, or if it would be easy to create an equivalent implementation for a different cloud provider. Being locked into dependence on AWS isn't the worst thing, but I would like to keep my application independent of a proprietary environment.

comment 6y ago · link · parent

The sad part is the page is perfectly readable if you remove the CSS. They took something that was easy to read by default, and made it less readable in an attempt to make it more readable.

https://motherfuckingwebsite.com/

comment 6y ago · link · parent

On my mobile device I prefer the extension "Dark Background and Light Text". IMO it has slightly better results with its static CSS mode, and the settings page loads faster. My device is not fast enough for the dynamic modes of either extension.

649.

Tree Notation(treenotation.org ↗)

3 points · by oftenwrong · 6y ago · 1 comment

comment 6y ago · link · parent

I have often thought about what a truly intuitive, simple, easy, user-friendly VCS would look like. Git is fine for programmers, but what about non-programmers, or student-programmers? Would it be possible to make a VCS that my mother could use without sacrificing too much power?

One thing I would give up easily is decentralisation - a centralised model is more straightforward, and, for better or for worse, most people use Git in a centralised fashion.

Conflict resolution is one of the hardest version control tasks for beginners. Maybe it could be made easier by making the VCS AST-aware for more legible diffs, or by automating conflict resolution altogether with CRDTs or OT.

There were some interesting, very different takes on version control envisioned for darklang:

https://blog.darklang.com/how-dark-deploys-code-in-50ms/

comment 6y ago · link · parent

On the other hand, eating less saves time. For example, skipping lunch saves time on shopping, preparing and eating. It requires no skill or knowledge to skip lunch. Skipping lunch saves money.

comment 6y ago · link · parent

"Scientists say virus as deadly as ebola for hospital victims"

https://www.thetimes.co.uk/article/covid-19-death-rates-are-...

Apparently that claim was based on this study: https://www.medrxiv.org/content/10.1101/2020.04.23.20076042v...

There are a few comments on that page about how that claim was misleading and/or inaccurate and mis-reported by the media.

comment 6y ago · link · parent

Why "especially progressives"? Surely people who advocate for your healthcare to be free, and for universal worker protections are doing more to help you than others? Gig work is a poor replacement for a proper "safety net". Imagine how fucked you would be if you were not able to do that gig work. Universal healthcare would have you covered.

comment 6y ago · link · parent

They didn't buy a law; they ran a campaign (along with other companies). Over 9 million Californians voted "yes" on the proposition. This article glosses over the blame the voters deserve.

655.

YouTube 2007(youtube.com ↗)

2 points · by oftenwrong · 6y ago · discuss

comment 6y ago · link · parent

Not to be confused with https://www.qwantz.com/

comment 6y ago · link · parent

It depends on your needs. For me, I want to be able to run multiple production-like environments, IDEs, profilers, browsers, Electron-based applications, etc. My old workstation had 16GiB, and it was a bit limiting. I had to sometimes close or shutdown programs to free up memory. My new workstation has 32GiB of memory, and so far that is enough.

comment 6y ago · link · parent

It's hard to keep a realistic perspective from inside that bubble. I often wish for things I don't have, including more money, and I often find myself thinking "it's not fair". However, I have a better life than most people in the world by a large margin. I could be poor, disabled, etc, but I'm not. People are starving, dying, and suffering. If anything is unfair, it is how easy I have it. I really have no right to complain, but I still complain to myself internally.

comment 6y ago · link · parent

I like the simple design of this utility, and I like the description in the manpage, which covers some of the complexities of the problem.
1
212223
83