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

The guidance is nice, but, unfortunately, Record components can still be mutable. It would be great if there was a way to have a stronger guarantee of immutability.

comment 5y ago · link · parent

What a mess. I'm reminded of the quote: "When a measure becomes a target, it ceases to be a good measure."

It's incredibly dystopian how people are made to satisfy this buggy app, while meeting the conflicting quotas, all with their livelihood on the line. /r/AmazonDSPDrivers is eye-opening.

comment 5y ago · link · parent

Yes, the current link sends me to an article 'State Claims for Unemployment Benefits Drop Again: Live Updates' - not anything related to net neutrality.

Your link seems to point to the correct article, but it is paywalled.

454.

Why What3Words is not suitable for safety critical applications(cybergibbons.com ↗)

63 points · by oftenwrong · 5y ago · 35 comments

455.

Crime Scene Photos(strongtowns.org ↗)

1 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

>In my experience, people who are against "equity" call it "equality of outcome" because it sounds more Orwellian/communistic/whatever your dystopian descriptor of choice is.

I call it Harrison Bergeron:

https://archive.org/stream/HarrisonBergeron/Harrison%20Berge...

457.

A Recipe for Achieving Real Housing Affordability(governing.com ↗)

1 points · by oftenwrong · 5y ago · discuss

458.

Why What3Words is not suitable for safety critical applications(cybergibbons.com ↗)

3 points · by oftenwrong · 5y ago · 3 comments

comment 5y ago · link · parent

There's definitely value in putting documentation where it will be seen. For developers, writing in a code comment or commit message is a good bet. If there's an issue, they'll be in the code, and they'll be in the commit log, and they'll see what you've written.

At times I've been asked to document things in a company wiki. Typically nobody reads it and it never gets updated when others make changes to the code.

comment 5y ago · link · parent

I'm ashamed to say I have had one sitting in its box for years while I use a crappy keyboard I got for free out of an IT closet at some point. Eventually I should commit some time to getting used to the Kinesis.

comment 5y ago · link · parent

If you find this interesting, and you like podcasts, I also recommend The History of English Podcast:

https://historyofenglishpodcast.com/

The host frequently speaks archaic forms of English with correct pronunciation.

It's also one of the highest-quality podcasts I listen to. It's very information-dense and each episode is exceptionally well-organised.

comment 5y ago · link · parent

Find a way to be happy in your life as it exists now. In other words, try to not make success a precondition for your happiness.

This doesn't necessarily mean you should settle for the status quo. When viewed in hindsight, it feels better to have tried and to have failed than to have not tried to begin with.

463.

JReleaser: The quick and effortless way to release your Java project(jreleaser.org ↗)

2 points · by oftenwrong · 5y ago · discuss

464.

Takings(granolashotgun.com ↗)

1 points · by oftenwrong · 5y ago · discuss

465.

The Ugly, Dangerous, and Inefficient Stroads Found All over the US and Canada(youtube.com ↗)

1 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

This is not always the case, especially in urban areas, as was shown during the recent debates over congestion pricing in New York.

Car commuters into the central business districts are a much smaller, wealthier group. Free roads act more as a subsidy for this group, while the masses, including almost all poor people, cram onto insufficient public transport. A bus carrying 240 people being stuck behind a line of wealthy car commuters alone in their vehicles is not a picture of equity.

https://nyc.streetsblog.org/2017/10/24/de-blasios-wrong-poor...

comment 5y ago · link · parent

This would be a good argument if the road network was sized for transporting goods primarily. As it stands, road networks in population centres are largely sized to accommodate private motoring.

comment 5y ago · link · parent

This is often called "event sourcing". The other commenter mentions Datomic, which probably is the 'latest and greatest' form of event sourcing (I've never used it).

https://vvvvalvalval.github.io/posts/2018-11-12-datomic-even...

If you want something built on postgres, I don't have any specific recommendations, but you can build a simple event sourcing system yourself. I worked somewhere that used event sourcing on postgres, and the core log was basically just a table with aggregate IDs, event sequence numbers, and a JSONB column for the event payload. I recommend starting with just one part of your application if you're going to adopt event sourcing. You will quickly find that there are a lot of new considerations and pitfalls that you don't have with traditional RDBMS usage. Overall, event sourcing is hard to get right, so you should consider the trade-offs carefully. There are easier ways to get audit logs, for example: https://www.pgaudit.org/

I will also recommend this as a way to start to understand the tricky aspects of event sourcing: https://leanpub.com/esversioning

469.

The Half-Truth on Infrastructure at the Heart of the American Jobs Plan(strongtowns.org ↗)

2 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

I have used jOOQ and its code generator quite a bit:

https://www.jooq.org/

https://www.jooq.org/doc/3.14/manual/code-generation/

It can be used without code generation as a SQL builder, but using the code generator takes it to the next level.

One reason the code generation approach might not be popular is because it adds complexity to the build, and most developers are (rightly) cautious about adding build complexity.

471.

Judge orders L.A. to provide shelter for skid row residents(latimes.com ↗)

2 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

You probably just need to wait for it to load.

comment 5y ago · link · parent

You don't need undeveloped land. You could increase density on land that is already developed. In the US, even urban areas have a lot of spots where land is used inefficiently: surface parking lots, wide streets, large setbacks, single-family detached homes. Consider that residential streets in American cities may be 25m wide, whereas a residential street in a traditional city is more like 3m wide.

comment 5y ago · link · parent

In modern Java there are more terse APIs available. For example:

    hashtableNPCs.values().forEach(ExpiringEntityPlayer::something);

comment 5y ago · link · parent

"IFactoryRepositoryLocatorBullshit" really has nothing to do with Java the language. That's just how some developers choose to design their programs.

What specifically is Java terrible at? I find Java to be as expressive as most mainstream languages. Certainly no less expressive than, say, Python or JavaScript.

comment 5y ago · link · parent

Why build a new city when you can build a new neighbourhood in an existing city? Building a new city is risky. Building a neighbourhood allows you to piggyback on the success of the host city. People already want to live there. Employers already want to open up shop there. If you have a billion dollars, use some of it to grease whatever wheels necessary to skirt the zoning ordinances.

comment 5y ago · link · parent

This is both hilarious and a great point. Java has no "cool factor". HN headlines will add "written in Rust/Go/Julia/Elixir" for coolness points. If you put "written in Java", it would actually make it seem less cool.

comment 5y ago · link · parent

Those are ancient warts that can never be changed. Almost any static analysis suite will warn you about using equals and contains with incorrect types.

comment 5y ago · link · parent

>Not to mention the pain point that it still is to install and configure a JDK, and make it work properly with Intellij, why is it still so complicated?

You just download the JDK, and set JAVA_HOME to point to it when you want to use it.

For IntelliJ, you set the JDK in the project settings. It has a menu where you can point it to a JDK it knows about already, a JDK on your FS, or you can select a JDK for it to download for you. Couldn't be easier.

Java build systems are mostly terrible - you're right about that. Maven has the best tooling support, and is actually very straightforward, but a bit limited. I have had a number of bad experiences with Gradle. The Blaze-family build systems (Bazel, Buck, Pants, Please, etc) are far more sane, but have low adoption.

comment 5y ago · link · parent

I don't that find Java as a language has fewer idiosyncrasies (perfect term btw). For example, the many modifiers: public, private, "package-private", protected, default, abstract, static, final, volatile, synchronized, etc. How much of that is relevant to a fledgling programmer?

If you extend your consideration to build systems and other tooling, it's easy to see that students have a lot to overcome with Java as an intro language.

I think purpose-built languages like the HtDP languages or Logo are better choices. Students can get started with zero faff, learn the essential concepts, and move on.

Java is a fine choice for higher level courses, with students that are already capable programmers.

1
151617
83