Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alerighi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
511.
▲
by
alerighi
5y ago
I don't see how having to replace an entire computer for an hardware fault like a broken SSD can make you save a lot of money. Maybe in the old days where macs were still professional machines. Nowadays macs are the nightmare of every
512.
▲
by
alerighi
5y ago
In the consumer market, maybe. In reality you are only taking into account your country, in all other countries macs are rare, and are typically only used by creators (photographers, musicians, video makers, etc) or by someone that develops
513.
▲
by
alerighi
5y ago
Especially if you compile without optimisations. The optimisations can introduce bugs (although most of the times are related to undefined behaviour in the code), but without it is rare…
514.
▲
by
alerighi
5y ago
I have a desktop at work that belongs to the company, but I used my personal laptop since not so long ago. Most other employers uses their personal devices. I just opted for a desktop for a question of practicality, not having to carry arou
515.
▲
by
alerighi
5y ago
Because what the code does should be obvious without looking at the documentation. Plus editors will autocomplete function names by looking at the name, not at the documentation. Thus using meaningful names can speed up the development.
516.
▲
by
alerighi
5y ago
And yet is what they do in my country to “close” piracy sites: ask the national internet providers to block the resolution on that domains. Of course in most situations you can just change the DNS to 1.1.1.1, or if the provider redirects al
517.
▲
by
alerighi
5y ago
> If you’re deploying code that has to run on someone else’s computer without supervision, it shouldn’t be a shell script at all, this is why we have compiled languages. Why? It's more complicated, you need to compile different ver
518.
▲
by
alerighi
5y ago
Or... Apple upgrades the scripting languages regularly? I mean, they make updates that that gigabytes without changing anything, and then it's a problem to update PHP that is a couple of Mb? I don't think so...
519.
▲
by
alerighi
5y ago
If the name of the function and the parameters are clear, documenting the code seems useless. Take this real example: /** * change the temperature set point in use by the thermostat * * @param ctx the thermostat co
520.
▲
by
alerighi
5y ago
> You have never built a system yourself. Neither has Google, for that matter, but they've gotten closer than you. The amount of code that runs on the average modern computer is probably too much to be read in a lifetime. When I say
521.
▲
by
alerighi
5y ago
> I have the option, in Chrome, to decide what is synced up to "the Google cloud." Are you asserting that this doesn't work - that if I turn off history/bookmark/etc sync, that this is still pushed up? I've
522.
▲
by
alerighi
5y ago
> I've done computer security stuff for a while. Chromebooks are, by far, the best computer security model I've seen. How can you talk about security if there is spyware on every Chromebook? I mean Google Chrome. Everything you
523.
▲
by
alerighi
5y ago
It was different. If you go for example on a Facebook group to ask a legitimate noob question they will not answer you, or make fun of you. In the old days in the forums people were more friendly, and for example explained to others even st
524.
▲
by
alerighi
5y ago
To me the main change that internet got is this: the old internet was like a parallel universe, you picked up a random username, and no matter who you were in real life, you could socialize and share interest with other people without any p
525.
▲
by
alerighi
5y ago
I don't really know how the civil trial works in the US, but in my country you are not required to participate to the process and thus have a lawyer (while it's required for a penal trial). You can decide to not defend yourself, t
526.
▲
by
alerighi
5y ago
Except you would never get to use this method, because it will take years for all browser vendors to implement it, and even then, you still have a number of users that use for a reason or another Internet Explorer. You need to use a transpi
527.
▲
by
alerighi
5y ago
The migration could have happened more smoothly if they had let both python2 and python3 code coexist in the same project. The problem was forking the language like they did. Why couldn't they make the same interpreter run both python3
528.
▲
by
alerighi
5y ago
Your argument doesn't make sense. There are a huge number of sites that host adult content that are easily accessible by a simple Google search. What can you do? > What should I do? Not allowing my kids access to the internet at all
529.
▲
by
alerighi
5y ago
Well it should be your responsibility to control what your children see online, on the web there are things fare worse than the one you can see on YouTube. I don't see why YouTube should ask your ID where most sites that host adult con
530.
▲
by
alerighi
5y ago
It's not required by the EU. If not all the sites that have content not appropriate for children, such as porn sites, or Reddit, would need to implement this. And of course you wouldn't give your ID or credit card to a porn site.
531.
▲
by
alerighi
5y ago
Who uses iMessage? I mean, I never seen one using it seriously. All my friends and family members uses WhatsApp (that has more or less the same problems, but at least you can export a conversation in a text file, or now import it in Telegra
532.
▲
by
alerighi
5y ago
Not using the proper cable could lead also to fires, for example. We are talking about a significant amount of current. If you don't use a cable rated for that current, the cable or the connector will overheat, and possibly start a fir
533.
▲
by
alerighi
5y ago
Rust developers seems to assume that the only compilation target is x86 or ARM with POSIX API or Windows, or less often whatever architecture is supported by LLVM. And the rest? There are a ton of architectures that are not ARM, one example
534.
▲
by
alerighi
5y ago
Rust to me makes difficult things that are trivial in C. For example one thing that I don't like about Rust is the fact, that at least with the standard library, memory allocations are hidden in things like calling the constructor of a
535.
▲
by
alerighi
5y ago
By the way, dereferencing NULL is a well defined behaviour on every computer architecture: you are basically reading at address 0 of memory. It just causes a crash if you have an operating system since it will cause a page fault, but in ker
536.
▲
by
alerighi
5y ago
To me ignore the situation completely with unpredictable results would mean: the compiler generates an assembly that could not be correct, and then the behaviour of the program is determined by what the processor does. Doing something like
537.
▲
by
alerighi
5y ago
To me the real problem is that compilers these days do too much. Nobody asked for these optimizations, if you want optimized code, use C++, or Rust, or whatever other "modern" language that has higher level constructs and thus can
538.
▲
by
alerighi
5y ago
In very small minority of cases. I know a lot (at least 20) people that got the virus, and all of them are fine today, as they were before catching the virus. Of course people that got really sick and went to the hospital, it's differe
539.
▲
by
alerighi
5y ago
Really... not many. In my city of about 14k people last year died 19 people, that is like 3/4 more than the norm, but with these numbers, we are well inside statistical error. Also we must evaluate the increase in mortality in a longer
540.
▲
by
alerighi
5y ago
Why? While it’s not as good as bash or zsh as an interactive shell, for scripting it has a saner syntax, without all the weirdness that bash has. Also powershell can access basically any .net api, and thus can do things like serialise json
More ›