Better HN
topnewbestaskshowjobs
Log inSign up

floppydisc

11 karma · joined Sep 15, 2021 (5y ago) · 30 submissions

Submissions

comment 3y ago · link · parent

To add to this, I've been a happy user of the trash-cli for forever. Can recommend.

2.

Ask HN: Do you use XML with XSD and/or XSLT, if so for what purpose?

1 points · by floppydisc · 3y ago · discuss

comment 3y ago · link · parent

It has, with services such as Apples Air Drop and sharedrop.io which are p2p, the ultimate decentralization.

4.

Ask HN: Branching strategies for monorepos, what is your approach?

2 points · by floppydisc · 3y ago · 4 comments

comment 3y ago · link · parent

Why do you prefer Capybara style testing to the Gherkin style testing? Is it primarily the conciseness?

comment 3y ago · link · parent

Interesting, I'll check it out.

One of the arguments, as far as I understand for the BDD verbosity is that fact that the requirements are easy to communicate with customers and so therefore would be more precise in going from defining requirements to actually building the right thing. How true do you find this?

7.

Ask HN: BDD and Gherkin tests, do they provide value in the real world?

2 points · by floppydisc · 3y ago · 5 comments

comment 3y ago · link · parent

doubt.

comment 4y ago · link · parent

Rclone is such an epic tool. Props to the creators. Thank you for making cloud storage easily accessible for linux users

comment 4y ago · link · parent

Even further. Can we ditch the goddamn pdf format. It's such a stupid limit to put on papers. I hope the future of journals and articles will become interactive much like Jupyter Notebooks. Jupyter Journal/Article pls.

comment 4y ago · link · parent

I usually run into issues at the boundaries in the system.

Usually moving from primitives into complex types does not account for serialization and deserialization between db and the client. This can be very annoying to work with in something like C#.

Usually it ends up resulting in alot more types and a lot more mapping between types.

However this has its own benefits, but is very boilerplate-y and is sluggish to work with when your domain changes.

Luckily, for C#, https://github.com/SteveDunn/Vogen now exists thanks to source code generators which soothes some of the issues.

comment 4y ago · link · parent

Sleep truly is a miracle cure for most things. We really, seriously, take it for granted. Which is probably because it's difficult to sell sleep, since it's free of charge to get sleep.

Did you discover if pot had any effect on your "body battery" or not? I'm curious if it increases or decreases the quality.

comment 4y ago · link · parent

Goddamn, what an amazing insight you gained.

I was under the illusion, for most of my life, that alcohol helped with sleep, until I did some research and found out it practically does the opposite. Or honestly, listened to the book "Why do we sleep" by Matthew Walker https://www.goodreads.com/book/show/34466963-why-we-sleep. It is absolutely fascinating and worth a read/listen for anyone wondering what we know about sleep so far.

An interesting point from the book: For people that drink regularly for long stretches, they can end up with dreams literally spilling into reality because their brains never reaches deep REM due to the alcohol. It's fascinating. I've never reached that level personally. However I've heard anecdotes of people getting insanely vivid dreams after stretches of drinking.

comment 4y ago · link · parent

The most disturbing part of drinking to your mental faculties is how it effects your sleep. It leaves you in a haze and that accumulates. Once you stop, sleep will help you get back on track again. You still have time to recover.

My father did the same thing as you are doing. He's recently stopped. He's sharp as a knife again after a very short amount of time after years of being, which I can best describe as, out-of-sync with everything.

comment 4y ago · link · parent

Functional programming, the idea of state machines and finally how Rust extends structs with functionality. Also experiencing an overengineered internal system that was microserviced, really made me reconsider the whole "microservices are epic" mantra. 'Cause, oh boy was that annoying and difficult to debug.

When I learned functional programming, in my head, classes suddenly became slightly worse versions of partially applied functions.

When I learned about state machines classes also now seems like a failed attempt at achieving the same thing.

comment 4y ago · link · parent

What was the cause of the ban?

comment 4y ago · link · parent

Why have you given up? Is there too much spam-bashing?

comment 4y ago · link · parent

It seems that the only way such social media can survive is through ads. Have you put any thought into how to monetize and stay afloat?

comment 4y ago · link · parent

no. 1 feature: goofier branding

20.

Is there a syntax reference for math, like for programming languages?

3 points · by floppydisc · 4y ago · 2 comments

comment 4y ago · link · parent

Just out of curiosity; has anyone here contributed to Wikipedia?

22.

Ask HN: How do you run analytics for iOS and Android apps?

1 points · by floppydisc · 4y ago · discuss

comment 4y ago · link · parent

This is very reasonable

comment 4y ago · link · parent

Yes, but it definitely depends on the model I'm putting into the database.

Specifically I hadn't thought through an Order model and the OrderLines ended up being dependent directly on the product meaning through an FK. The orders wouldn't "settle" once they had been completed, since the product could be updated and change the values of the orderline and order. Dumb dumb. It was one of the cases where denormalizing data, very much, makes sense

25.

Ask HN: How do you avoid getting lost in the lessons learned from experiments?

2 points · by floppydisc · 4y ago · discuss

comment 4y ago · link · parent

I've never considered the tags approach, I'll give that a go, the folder approach is quite unwieldy.

27.

Ask HN: How do you organize great bookmarks?

2 points · by floppydisc · 4y ago · 3 comments

comment 4y ago · link · parent

As a rule I generally keep most in the app layer after some annoying runins with too much logic at the database layer.

Simple validation, like describing that a price cannot be below 0, I keep in the database. Email validation I keep on the app level.

It allows for easier deployments, easier debugging and it is easier to migrate to a different database should the need arise.

However both works.

29.

CVE-2021-45464 – LKVM Escape(kalmarunionen.dk ↗)

4 points · by floppydisc · 4y ago · discuss

comment 5y ago · link · parent

Why is the slashdash comment style an incredible idea?