Better HN
topnewbestaskshowjobs
Log inSign up

chuliomartinez

31 karma · joined Jul 11, 2024 (2y ago) · 22 submissions

Submissions

comment 4w ago · link · parent

I have seen versions of this many times in my life. Unfortunately, that progress report can hurt a lot, is something we devs often miss.

From my horror cabinet: 1. Running count * on all sqlite tables 4x per second to show sync progress.

2. Progress bounce animation eating 80% of cpu (windows phone bizarro silverlight)

3. Sending myself 800 emails in 10 minutes…

The rule is quite simple, we are just bad at it. Computer to human communication should run at human speed.

comment 1mo ago · link · parent

Yeah Aaron is a PalmOS legend.

I really liked the palmos c libs, MemCopy and WinCopyBitmap just reads so much nicer than memcpy and memset. Also UInt8 and UInt16:)

Those were fun times, when 16bit ints were enough for everyone (just kiding;)

comment 1mo ago · link · parent

Let not forget you can save a canvas as webP with toBlob.

comment 1mo ago · link · parent

Is jpegxl support in canvas toBlob planned?

comment 2mo ago · link · parent

Interesting idea. My problem is that one “stream” usually spans multiple apps that silo data. So i have an email from a client and command line and a tab in chrome and maybe a note and an excel file. There are of course exceptions to this, but in real life we bring tools to the project not the other way around. Naturally some “projects” might have sub projects, or some might be transient - a quick email reply. You might organize your digital life this way - with virtual desktops, but why can’t the computer keep track?

comment 2mo ago · link · parent

The fable of barter… if you feel there is something too cartoonish about the idea, you are not wrong, read some Graeber (debt) if you want to understand how it really worked

comment 4mo ago · link · parent

Just a couple of ideas if you run out of backlog:) - proper versionnumber (64bit) - native json streaming. It would be awesome to get to the point where i could somehow redirect the sql output to the browser directly, but piping will do for now. The idea is to be able to stream rows to client without caching and building json along the way.

comment 10mo ago · link · parent

I guess it depends on what you build, i feel the most complex part of the deal, that makes me think the hardest, is to figure out what to build. Eg understanding the client, and creating a solution that fits between their needs and abilities. The rest is often a technical detail, yes sometimes you need to deep dive to optimize. Anyway if you miss debugging try debugging people;)

comment 10mo ago · link · parent

Look really cool.

Only suggestion, if at all possible avoid special characters like @ and _ . In my experience, kids have a hard time to find them and it get even more complicated for non-english keyboard layouts.

comment 11mo ago · link · parent

You agree more than you disagree. Meaningful might be something else for you. But I bet deep down it is doing something for others (clients, coworkers, friends, family, even strangers) that gives meaning.

comment 11mo ago · link · parent

Redhat?

comment 1y ago · link · parent

The gold nugget here is: your number one job as the business owner is: find new customers. Forget everything else. You must find ways how to talk to them, get them to trust you and tell you about their problems.

Forget scaling, google ads, until your customer #10, probably more. All your early customers will be from your network, real people you talk to in real world.

It is a chicken and egg problem - you don’t know what product customers need until you have customers. So go find them, build and try to figure out what they have in common.

comment 1y ago · link · parent

Tanstack lack of back button handling is infuriating. Throwing away users data is simply not acceptable.

Is Wouter better in this regard?

comment 1y ago · link · parent

Creative solution! Of course this creates more maintenance to ensure such records exist. I guess you kinda proved my point, you have to work around it.

comment 1y ago · link · parent

Sure exists make sense if you dont need columns from the child table. Exists is also far from basic sql.

comment 1y ago · link · parent

SQL makes it very hard to express real world requirements.

1. No easy way to limit child records count in joins - find all orders with orderproduct.amount is greater than X. Obviously this will genereate duplicates for orders that have more than one such orderproduct. So you slap a distinct on it… but what if you need an aggregation?

The possible fixes are highly non-trivial: subqueries, window functions, or vendor specific: outer apply.

2. Or queries, that is when you group where conditions with OR are very hard (impossible) to optimize.

Apart from the trivial case where the conditions are all on the same column, you are better of leaving the declarative world and imperatively tell sql to do a union.

I wrote a bit about it here: https://www.inuko.net/blog/platform_sql_or_conditions_on_joi...

comment 1y ago · link · parent

It is time that democracies stop doing business with autocratic regimes. Not just some of them, because if everything is manufactured in china, which keeps doing business with iran and russia, it seems pointless.

At this point it should be obvious to everyone, that western money is (transitively) keeping all the worst regimes alive.

People stopped buying south African stuff, as an apartheid boycott, can we get some china boycott going?

18.

SQL query and SQL schema with JSON(inuko.net ↗)

2 points · by chuliomartinez · 2y ago · discuss