Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

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

sfir6i2z@mailer.me
Submissions

comment 4y ago · link · parent

I've felt for a long time that this would be an obvious move. I know that many people, myself included, like the Kinesis Advantage design, but wanted a split design like the Freestyle. I've even seen DIY versions.

332.

Majestic Modular Monoliths (2020)(lukashajdu.com ↗)

3 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

>a forty-plus year old car that has more than 770,000 miles on it

I would love to hear more about this car!

comment 4y ago · link · parent

You can save yourself some headaches by not using transitive dependencies in your Maven builds. This can be enforced with Maven Enforcer. The trade-off is that you will have to clean unused dependencies. This can be tool-assisted with something like: https://github.com/castor-software/depclean/ . You can also enforce dependency version convergence with Maven Enforcer. None of this saves you from "jar hell" directly, but it helps prevent you from unknowingly creating a disaster-in-waiting.

comment 4y ago · link · parent

>What if Maven Central goes down one day?

Most Java shops run their own artefact repository acting as a pull-through repository to Maven Central and other 3rd party repositories. In addition to acting as insurance against losing access to critical dependencies, it also can provide a performance boost when downloading dependencies, and helps to offload your organisation's traffic from Maven Central.

comment 4y ago · link · parent

To "vendor" a dependency is to check it into your project's source control, whether as source or binary.

comment 4y ago · link · parent

For Maven, you can use this plugin to move downloading dependencies into a separate step:

https://github.com/qaware/go-offline-maven-plugin

It's not perfect, but it can be useful.

comment 4y ago · link · parent

Git also has "partial" clones, which can avoid some of the downsides of shallow clones. You can, for example, filter out all historical objects (--filter=blob:none). Historical objects are fetched lazily as needed, such as checking out an old revision. The same can be done with unreachable trees.

This article has excellent diagrams that depict the different types of clones:

https://github.blog/2020-12-21-get-up-to-speed-with-partial-...

339.

Yrvind's Constant Weight Diet(yrvind.com ↗)

1 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

It cannot hurt to take more breaks from desk work. Go for a walk. I do not know if that will help your eyes, but it will certainly help other parts of your body and your mind. It's important to unplug, de-stress, and be active.

If you cannot justify a true break, think about work problems while walking. Plan out what you will do when you get back to the desk. When you return, do it without disruption. Don't check email or messages. I find this to be an effective way of working.

341.

Chromecast volume controls are disabled on Android 12 due to a ‘legal issue’(9to5google.com ↗)

36 points · by oftenwrong · 4y ago · 2 comments

comment 4y ago · link · parent

This matches closely with my experience working at a company that was mostly built on event-sourcing. I would add a few things, some of which are touched upon in the article:

- The general problem with event-sourcing (at small scale) is that it forces you to have to think about and handle many things that can mostly be ignored with a more typical persistence approach. This overhead of complexity was one of the factors that (IMO) killed a company I worked for. Event-sourcing feels relatively "raw" in this way. However, this also provided a valuable learning experience as a developer.

- I'm curious about better ways to do event-sourcing. For example, using Datomic is apparently like a well-thought-out, pre-made event-sourcing system: https://vvvvalvalval.github.io/posts/2018-11-12-datomic-even...

- If you intend to embark on an event-sourcing journey, read Versioning in an Event- Sourced System https://leanpub.com/esversioning/read , even if only to better understand the complexity of this one aspect. I agree with the author of this submission that it is hard to fully grasp the complexities of event-sourcing without trying it, and hitting many road bumps along the way, since it's not an especially well-trodden path.

- Being able to redefine the interpretation of an event as the system evolves feels like a superpower at times. Similarly, being able to bring a new part of the system online, and have it based on a rich history of everything ever done in the system, is very cool. One of the major benefits of event-sourcing is how adaptable it is in systems that change over time.

- Beware CQRS and eventual consistency. This adds a lot of complexity and is not a prerequisite for event-sourcing. It's also telling that ordinarily-simple problems to solve, like preventing duplicate username registrations, are hand-waved away by CQRS proponents: https://web.archive.org/web/20191101010824/http://codebetter... . You will face this class of problems, and you may not be able to hand-wave it away so easily.

343.

Datomic: Event Sourcing Without the Hassle(vvvvalvalval.github.io ↗)

4 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

I think I understand your use case, although I don't follow the part about mounting a host dir in the build (how it would help).

I do not really consider this limitation a design flaw of Dockerfiles; this is more of a mismatch between Dockerfile functionality and what you want to do. Dockerfiles are not designed to execute general-purpose programs, so there is an assumption in the design of Dockerfiles that you know (more or less) which files you want to COPY ahead of time. It sounds like you want a mechanism for COPYing all filesystem changes resulting from a RUN instruction without having to know what those changes are ahead of time.

In the future, maybe a buildkit HLB language will provide a macro system that makes this sort of thing straightforward to implement.

comment 4y ago · link · parent

You don't need buildkit for that; you can use multi-stage builds without buildkit to exclude your deb file from the final image.

comment 5y ago · link · parent

I share the neo-luddist perspective of many of the other commenters, but it's also clear that there are basic product quality issues at hand. Switching something on and off on a schedule is not a hard problem to solve, in theory, so why doesn't it work? Is there something about the ecosystem and interfaces between devices and hubs that is lacking? Did the company just not test their product sufficiently?

347.

Why the Netherlands Is the Best Country for Drivers(youtube.com ↗)

3 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

This is my preferred option as well. Both GitLab and GitHub turn your markdown (and some other formats) files into static pages. They both have web-based editing support, so it is not necessary for a user to know anything about git to contribute. Both can automatically generate a table of contents for a page. And it gives you better versioning than any wiki system.

349.

How to Make the Flip Phone Better (Again)(youtube.com ↗)

1 points · by oftenwrong · 5y ago · discuss

350.

I Hate the News (2006)(aaronsw.com ↗)

4 points · by oftenwrong · 5y ago · 1 comment

comment 5y ago · link · parent

also https://anonaddy.com/

comment 5y ago · link · parent

This is relevant to the classic 'frameworks vs libraries' comparison. Sometimes the hardest part of an implementation with a framework is fitting your solution into the framework, especially when you begin to stretch the assumptions of the framework. The gluing-together-libraries approach allows you to make the structure of the program fit the problem (at the additional expense of having to write more boilerplate).

comment 5y ago · link · parent

There's still room for an is-odd-and-even package.

comment 5y ago · link · parent

Except that those projects can be harmful in the long-term:

https://www.strongtowns.org/journal/2017/1/2/five-ways-feder...

355.

From the Office of Dodge, Wiggle,Hack, Shrug and DeCamp LLC(granolashotgun.com ↗)

5 points · by oftenwrong · 5y ago · discuss

comment 5y ago · link · parent

Sipser's Introduction to the Theory of Computation

357.

More Highways, More Driving, More Emissions(strongtowns.org ↗)

1 points · by oftenwrong · 5y ago · discuss

358.

The US Infrastructure Bill Has Passed. What Now?(strongtowns.org ↗)

1 points · by oftenwrong · 5y ago · discuss

359.

The Suburban Traffic Contradiction(youtube.com ↗)

2 points · by oftenwrong · 5y ago · discuss

360.

Democratic Architecture(granolashotgun.com ↗)

1 points · by oftenwrong · 5y ago · discuss

1
111213
83