News for hackers. Stuff that matters.

frodowtf

Re:Cuba slashes size of daily bread ration as ingredients run thin on Wednesday September 18, 2024 @01:26PM (#41582823)
Fascinating how Cuba is still standing in spite of all embargoes.
Re:The design philosophy of Great Tables on Thursday April 04, 2024 @05:03PM (#39935778)
... the obligatory "historical context" nobody asked for.
Re:Representing State as Interfaces in Go on Thursday March 28, 2024 @01:29PM (#39854783)
If you want to use this pattern, you'll probably end up with a lot of duplicated code e.g. for SQL query builders. I could imagine that Rust makes this kind of pattern easier due to traits and macros. A lot of languages do not have these features.

And then of course Rust people care about correctness more in general.

Re:How (and why) to run SQLite in production on Wednesday March 27, 2024 @02:02AM (#39836087)
It also seems to have the same concurrency issues as described in the article. At least from my experience the "database is locked" error appears quite often.
Re:Designing a Pure Python Web Framework on Saturday March 23, 2024 @02:36PM (#39802123)
Usually, I go with openapi-generator and pick the typescript-fetch template. You can use that with whatever js-based frontend framework you want.
Re:Designing a Pure Python Web Framework on Friday March 22, 2024 @04:07PM (#39794294)
> writing a lot of boilerplate code to connect the frontend and backend.

OpenAPI. django-ninja supports it out of the box.

Re:Home Screen Advantage on Tuesday February 27, 2024 @09:30AM (#39524519)
> ... very low user adoption of Home Screen web apps.

Well, if nobody wants to play with our total clusterfuck of inconsistent APIs, we might as well drop support for them >:(

Re:Objective-S on Sunday December 24, 2023 @05:24PM (#38757573)
so why is nobody implementing stuff in smalltalk?
Re:Tesla Has a Design Problem on Sunday December 24, 2023 @09:15AM (#38753588)
Well, that comment is definitely "masculine"
Re:Why Bitcoin is up by almost 150% this year on Tuesday December 19, 2023 @11:20AM (#38697516)
As long as casinos are a thing, Bitcoin stays a thing.
Re:Effect Cases in Switch on Thursday December 14, 2023 @02:00PM (#38645587)
Well, I don't.
Re:OCaml: a Rust developer's first impressions on Saturday November 11, 2023 @08:30PM (#38236393)
`panic` has nothing to do with error handling though. If you use it, you know that your callers cannot recover from it.

Throwing an exception implicitly delegates error handling back to the caller, but they are not even notified about it. (talking about OCaml)

Re:OCaml: a Rust developer's first impressions on Saturday November 11, 2023 @07:27PM (#38236005)
People say that OCaml is like Rust, but unlike Rust, OCaml has Exceptions that could appear everywhere. How is that safe?
Re:Developers Guide to Moving to Denmark on Monday November 06, 2023 @07:24AM (#38161611)
> food is painfully bland

You mean like... not invested with tons of sugar? What kind of bland are we talking about?

Re:Write PHP Code Within Next.js Components on Friday November 03, 2023 @02:24PM (#38132831)
It's time to stop.
Re:X Engineering Year Retrospective on Saturday October 28, 2023 @04:40AM (#38048214)
> Consolidated the tech stacks for For you

This sounds like a very poor attempt at convincing your PO that all the timewasting you did was actually their idea.

Re:I Hate NestJS on Wednesday October 25, 2023 @01:49AM (#38009555)
Kysely looks like the thing most people would want. It's not a full ORM though - just a well-typed query builder.

https://kysely.dev/

Re:Rust is not the language for you if you don't like traits on Wednesday October 04, 2023 @03:14PM (#37770161)
Pretty sure the maintainer is also a Discord mod.
Re:Nue.js: Rethinking Reactivity on Monday October 02, 2023 @11:55AM (#37739792)
DRY is by far the most overrated software engineering principle and constantly pushing for it only leads more developers down the way of creating wrong, irreversible abstractions.
Re:Python 3.12 on Monday October 02, 2023 @11:46AM (#37739653)
"Can't" as in "don't want to"
Re:UI frameworks are stuck in the last decade on Tuesday September 26, 2023 @12:13PM (#37661500)
Sir, watch out! Your monocle is about to drop into the scotch!
Re:The Matching Problem in Dating on Sunday September 24, 2023 @12:53AM (#37630231)
Date guys. Problem solved.
Re:GitHub Actions could be so much better on Friday September 22, 2023 @03:45PM (#37616785)
I don't get why GitHub doesn't adopt it and make it a standard. Especially the lack of caches is annoying.
Re:Svelte 5: Runes on Thursday September 21, 2023 @08:06AM (#37596414)
Funny, I also thought of Vue immediately.
Re:Seeking Help to Preserve Rare WWII Database on Windows 98 on Tuesday September 19, 2023 @03:37AM (#37566706)
Can we agree on not posting anything directly from twitter? It's absolutely useless without an account.
Re:Linear code is more readable on Friday September 15, 2023 @12:26PM (#37525544)
Or you use the correct types and avoid these "problems" alltogether.

It's not possible to bake in a cold oven. Why does your type allow it then? Why don't you encode the state directly?

  oven := ColdOven.heat()
  bakedPizza := oven.bake(pizza)
Re:Show HN: I built a Python web framework from scratch on Saturday September 09, 2023 @05:39PM (#37450558)
As a 13 year old, I can confirm that we always mention our age before anyone asks.
Re:Mojo: It’s Finally Here on Thursday September 07, 2023 @03:38PM (#37424465)
> ... it's not intuitive how deep I am within nested scopes

The ONLY piece of information that is available to you regardless of how deep you are into a function is INDENTATION. Your curly braces won't help you.

Besides that, you should seriously reconsider your coding style if this is an actual problem for you.

Indentation provides visual structure. Matching braces hardly add value to it.
Re:Twitter/X has removed all media posted before 2014 on Saturday August 19, 2023 @02:46PM (#37191805)
It will always stay "Twitter" simply because you cannot use a search engine with "X"

Older »