News for hackers. Stuff that matters.

floppydisc

Re:Show HN: Inshellisense – IDE style shell autocomplete on Monday November 06, 2023 @06:34PM (#38170837)
To add to this, I've been a happy user of the trash-cli for forever. Can recommend.

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

Building a floorplan format which should be convertible to a visual SVG and back. Wondering if defining my own schema to represent the layout of a venue is a good idea or not or if I should simply embed everything into an SVG to maintain flexibility with minimal work.Are you using XML with XSD and XSLT and for which purpose?

( Read More... | no comments | on HN )
It has, with services such as Apples Air Drop and sharedrop.io which are p2p, the ultimate decentralization.
Why do you prefer Capybara style testing to the Gherkin style testing? Is it primarily the conciseness?
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?

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

Recently stumbled upon BDD and the process of describing software from behaviour. I know there are seriously prolific software engineers amongst the Hacker News crowd and I could use a second opinion from within the industry.What are your thoughts on BDD in general, with everything included (Gherkin, Cucumber etc.). What benefits have you yourself experienced (if any) or perhaps disadvantages...

( Read More... | 5 comments | on HN )
Re:Lab-Grown Meat Is Safe to Eat, FDA Says on Monday November 28, 2022 @12:35PM (#33776588)
doubt.
Re:Rclone is 10 years old today on Thursday November 24, 2022 @12:53PM (#33734178)
Rclone is such an epic tool. Props to the creators. Thank you for making cloud storage easily accessible for linux users
Re:Against Parasite Publishers: Making Journals Free on Wednesday November 23, 2022 @07:49AM (#33718531)
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.
Re:The type system is a programmer's best friend on Saturday November 05, 2022 @11:34AM (#33482437)
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.

Re:Ask HN: Alcoholism and Career in Software on Tuesday November 01, 2022 @01:31PM (#33424436)
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.

Re:Ask HN: Alcoholism and Career in Software on Tuesday November 01, 2022 @01:28PM (#33424369)
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.

Re:Ask HN: Alcoholism and Career in Software on Tuesday November 01, 2022 @03:20AM (#33418036)
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.

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.

Re:School vs. Wikipedia on Sunday October 16, 2022 @06:16AM (#33222551)
What was the cause of the ban?
Re:School vs. Wikipedia on Sunday October 16, 2022 @06:16AM (#33222546)
Why have you given up? Is there too much spam-bashing?
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?
Re:Show HN: FrankenPHP, an app server for PHP written in Go on Friday October 14, 2022 @03:37PM (#33207918)
no. 1 feature: goofier branding
Re:School vs. Wikipedia on Friday October 07, 2022 @02:51PM (#33125408)
Just out of curiosity; has anyone here contributed to Wikipedia?

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

Google Analytics which has recently been made illegal in my country due to the GDPR data export rules, I'm having another look at how I can track usage of different features as well as user-traversals in my app.What analytics tools do you use, or would recommend to me, in order to get these insight?

( Read More... | no comments | on HN )
Re:Lose weight the slow and incredibly difficult way on Friday September 23, 2022 @07:57AM (#32950693)
This is very reasonable
Re:Ask HN: Do you use foreign keys in relational databases? on Tuesday September 06, 2022 @03:24AM (#32734035)
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

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

If you've used validated learning or an experimental approach for your projects. How have you managed them and kept track of the learning learned along the way, without getting lost in the sheer amount of experiments and learning?I'm quickly getting lost in the experiments across multiple facets of my business, and would love some insights into how you guys are managing it.Cheers

( Read More... | no comments | 2 points | on HN )
Re:Ask HN: How do you organize great bookmarks? on Friday March 04, 2022 @04:30AM (#30552493)
I've never considered the tags approach, I'll give that a go, the folder approach is quite unwieldy.

Ask HN: How do you organize great bookmarks?

Having stumbled upon some great articles about marketing, software, funding and other interests I've realized that I have no great way of organizing these resources. The best I've got is a jumbled mess of bookmarks, with no notes, I rarely look through.I ideally want a system that is great for personal resources in which I can add notes, personal thoughts and findings and that is easily...

( Read More... | 3 comments | 2 points | on HN )
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.

Re:The KDL Document Language on Wednesday September 15, 2021 @08:03AM (#28537979)
Why is the slashdash comment style an incredible idea?

Older »