Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fiedzia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
fiedzia
5y ago
> I get generics, but they really don't come up in daily use with the tasks where I use Go. I sort of understand this argument, but I can't really imagine defining queue as something else then <T> wait_for_item() -> T
182.
▲
by
fiedzia
5y ago
> Is it a better bet to move on and go full Rust, rather than bother with wherever the goggle golang train is headed? Ecosystem aside, with Rust you'll get far better language design (generics fully integrated with everything (stdli
183.
▲
by
fiedzia
5y ago
Great examples. Downloaded size for top 3 sites for recipes: https://www.bbcgoodfood.com/ - 12MB https://www.jamieoliver.com/ - 4.3MB https://www.deliciousmagazine.co.uk/ - 8.4MB It seems t
184.
▲
by
fiedzia
5y ago
> HN is the perfect example. It pulls in a small css and js file, both of which are so slim, they don't even require minifying. The resulting page is small, looks good It looks good for technical people. It does not look good for ot
185.
▲
by
fiedzia
5y ago
The reason is that a) if it doesn't look good, most people will not take it seriously and b) you must have ads and tracking of user activity. What I really don't get is why bare html looks so awfully today and you have to add tons
186.
▲
by
fiedzia
5y ago
You can in some countries (Sweden and Austria, and some US states, according to https://en.wikipedia.org/wiki/Write-in_candidate ), so go for it.
187.
▲
by
fiedzia
5y ago
> Basically, no sane programmer in the 90s would be happy with a string type that wasted three bytes per object. In general, maybe, but we are talking about Borland here, so business logic apps mostly. String size is not a problem there.
188.
▲
by
fiedzia
5y ago
I won't defend Adobe, but Photoshop is (or was) free for students, and I recall a friend buying first licence for 10 dollars or so when I was studying (this was licence only, you had to get the software "somehow"), so at leas
189.
▲
by
fiedzia
5y ago
Several things happened at the same time: 1. At peak popularity, Borland products where easily available. Borland decided to turn to enterprise and raised the price considerably, so individuals and small companies started looking elsewhere.
190.
▲
by
fiedzia
5y ago
> in 10 years [...] will they all still work? Most likely no. This is why Rust has its own repository of immutable packages on crates.io. Depending directly on Github is indeed a terrible idea.
191.
▲
by
fiedzia
5y ago
No, you'd need to handle the search. Which is something I see more and more sites doing.
192.
▲
by
fiedzia
5y ago
1000 products could mean 1000 images to show and 1000 templates to render and that may kill your browser (definitely true on a phone), and significant slowdown even on a desktop/laptop. The solution is simply to load more data as you s
193.
▲
by
fiedzia
5y ago
All your existing scripts will continue to work just fine. #!/usr/bin/bash
194.
▲
by
fiedzia
5y ago
There is a music band named "A" (literally just one letter name). Good luck finding them.
195.
▲
by
fiedzia
5y ago
Do what you want, but do not claim "it's better than large dependency" when it does a tiny fraction of what Lucence does.
196.
▲
by
fiedzia
5y ago
Take computer away from them and see how far they'll go. Tools matter. However the community and ecosystem behind Python makes it extremely hard to beat at many games.
197.
▲
by
fiedzia
5y ago
Pretty much. From several types woods coming from many sources to be precise. I don't know much about ships, but I remember from one visit in museum that England used to cut down oak forests for their fleet and ship building process re
198.
▲
by
fiedzia
5y ago
> people would say you need to cook onions for 10 minutes, while onions take close to 25 minutes to be cooked It's up to recipe author to define what they cook and how. If you think 25 min is better, fork it.
199.
▲
by
fiedzia
5y ago
> Why, if C is so bad, wasnt one of the alternatives introduced to slowly replace C in the kernel years ago? There are very few alternatives, and even fewer of them gained much popularity, so Rust is an exception here. Being better than
200.
▲
by
fiedzia
5y ago
Two things here: 1. Restricting unsafe to limited number of places is a lot better than having it as a default everywhere. 2. The idea is that if you have to use unsafe, you (or some other module author) would wrap it in an interface that i
201.
▲
by
fiedzia
5y ago
Sharing data between processes is _very_ expensive, so whole classes of programs are not suited for this approach. For example I had a program that preloads large immutable dataset. and a bunch of threads use it. I couldn't do it effic
202.
▲
by
fiedzia
6y ago
Its large, but its size is limited by sues canal. Ships could be much larger if they were designed for a different route.
203.
▲
by
fiedzia
6y ago
We are slowly getting some bits of static analysis. Perhaps another 20 years, and Python users will invent compilers.
204.
▲
by
fiedzia
6y ago
It has many. But I know several companies that move from Java to Python because that's what developers, data engineers and ML/AI experts use.
205.
▲
by
fiedzia
6y ago
> ORMs always force their world view onto the database, which is completely backwards from how things should work. I have different experience. There are situations where you work with database given of course, but in many projects ORM e
206.
▲
by
fiedzia
6y ago
Just storing a changelog would be very useful. I could for example compare db version some app was developed for with current state. Most companies will store schema migrations in git, but doing anything with this information is difficult.
207.
▲
by
fiedzia
6y ago
BTW. I wish all databases versioned their schema and kept full history. This should be a standard feature.
208.
▲
by
fiedzia
6y ago
No. Relational DB logs are kept for short time, and do not allow for branching/merging. And even if you would store full log since day 1, the only way to check state of database at some point would be to start from scratch and reply ev
209.
▲
by
fiedzia
6y ago
This won't work for usual database usecases. This is meant for interactive work with data same way you work with code. Who needs that? Data scientists working with large datasets. You want to be able to update data without redownloadin
210.
▲
by
fiedzia
6y ago
> Having multiple ways to do something (interpolating strings) isn't a bad thing. It is when the motto of the language says "There should be one-- and preferably only one --obvious way to do it." and that is applied whenev
More ›