HNHacker News
TopNewBestAskShowJobs

floppydisc

11 karma · joined September 15, 2021

submissionscomments
floppydisc··on Show HN: Inshellisense – IDE style shell autocomplete
To add to this, I've been a happy user of the trash-cli for forever. Can recommend.
floppydisc··on AOL pulls Nullsoft file-sharing software WASTE (2003)
It has, with services such as Apples Air Drop and sharedrop.io which are p2p, the ultimate decentralization.
floppydisc··on Ask HN: BDD and Gherkin tests, do they provide value in the real world?
Why do you prefer Capybara style testing to the Gherkin style testing? Is it primarily the conciseness?
floppydisc··on Ask HN: BDD and Gherkin tests, do they provide value in the real world?
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?

floppydisc··on Lab-Grown Meat Is Safe to Eat, FDA Says
doubt.
floppydisc··on Rclone is 10 years old today
Rclone is such an epic tool. Props to the creators. Thank you for making cloud storage easily accessible for linux users
floppydisc··on Making Journals Free
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.
floppydisc··on The type system is a programmer's best friend
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.

floppydisc··on Ask HN: Alcoholism and Career in Software
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.

floppydisc··on Ask HN: Alcoholism and Career in Software
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.

floppydisc··on Ask HN: Alcoholism and Career in Software
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.

floppydisc··on Which programming paradigm had the most impact on you as an engineer and why?
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.

floppydisc··on School vs. Wikipedia
What was the cause of the ban?
floppydisc··on School vs. Wikipedia
Why have you given up? Is there too much spam-bashing?
floppydisc··on Goldfish Social – Free open source alternative for Vine / TikTok (alpha)
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?
floppydisc··on Show HN: FrankenPHP, an app server for PHP written in Go
no. 1 feature: goofier branding
floppydisc··on School vs. Wikipedia
Just out of curiosity; has anyone here contributed to Wikipedia?
floppydisc··on Lose weight the slow and incredibly difficult way
This is very reasonable
floppydisc··on Ask HN: Do you use foreign keys in relational databases?
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

floppydisc··on Ask HN: How do you organize great bookmarks?
I've never considered the tags approach, I'll give that a go, the folder approach is quite unwieldy.
floppydisc··on Ask HN: How much logic should I keep at the database vs. app layer?
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.

floppydisc··on The KDL Document Language
Why is the slashdash comment style an incredible idea?