Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
realharo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
211.
▲
by
realharo
6y ago
Regardless of how you feel about hooks, they are, or are quickly becoming, the new standard for most React code, so a React tutorial obviously needs to familiarize people with them. The current tutorial is good at explaining React concepts
212.
▲
by
realharo
6y ago
>used to be straightforward As someone who remembers having to do weird CSS tricks for really basic layouts (negative margins? hidden extra elements that don't make any sense, but cause other elements to move?), manually modifying
213.
▲
by
realharo
6y ago
React by itself isn't difficult either. Anyone who has an hour or so to spare can go through the tutorial https://reactjs.org/tutorial/tutorial.html . They need to rewrite it to use hooks at some point, but it'
214.
▲
by
realharo
6y ago
The WSL integration is a pretty good result of that effort too.
215.
▲
by
realharo
6y ago
Update (can't edit the comment on HN anymore): So I misunderstood (only skimmed through) those 2 links about desktop Firefox sideloading, they use a different meaning of that term than what it commonly means on Android. They only block
216.
▲
by
realharo
6y ago
>it is entirely predictable that code like this would have unnecessarily bad performance Unless the compiler optimizes it out...
217.
▲
by
realharo
6y ago
>map because they think it's more readable and productive without any great way of proving that that's true? I mean, doing sendUserIds(users.map(u => u.id)) is very obviously more readable than what you're fo
218.
▲
by
realharo
6y ago
`let` instead of `var`. No need to leak the variable into the outer scope.
219.
▲
by
realharo
6y ago
>Are there numbers about large amounts of sideloaded extensions causing the reputation of firefox for android to drop? I'm not aware of any, but that could be because alternative browsers are not that popular on mobile in general.
220.
▲
by
realharo
6y ago
Well, their goals are clearly different. From the FAQ linked above, it is clear they want to have some control over "the experience", which is mentioned a lot. If too many users install a crappy, buggy extension that slows everyth
221.
▲
by
realharo
6y ago
>I know we often say "the user is dumb, therefore software should patronize them", but that really only goes so far. It's not just a saying, it's supported by real-world situations that actually happened, and that y
222.
▲
by
realharo
6y ago
The basic assumption is that users are dumb when it comes to security, and if there is a way to install malware, they will be tricked into installing malware (even with no vulnerabilities in the host software itself). Especially since the
223.
▲
by
realharo
6y ago
Also, commercial browser vendors were much more of a thing back then, so there was someone to complain.
224.
▲
by
realharo
6y ago
The answers here seem to suggest otherwise. https://blog.mozilla.org/addons/2020/02/11/faq-for-extension... My guess would be that they'll try to make it curated-only unless users complain too much.
225.
▲
by
realharo
6y ago
>URL rewriting in nginx for PHP is about copying 5 lines from a google search. So is setting up a `proxy_pass` to a locally running container that exposes a port to localhost ( https://nginx.org/en/docs/http&#x
226.
▲
by
realharo
6y ago
In such a manual workflow ( "you can SSH a file into a server" ), you still have to setup at least URL rewriting in nginx for any PHP app using routing (which is basically everything using any PHP framework or micro-framework). Pl
227.
▲
by
realharo
6y ago
The first section in that link literally says >In our dashboard you will find pre-configured Open Source apps like WordPress, Plone and other. They are all based on the official docker images and can be deployed with just one click. Ot
228.
▲
by
realharo
6y ago
>If you want to get your customers to self-install your software as painlessly as possible, what other language can match or exceed the ease of deployment of PHP? Anything with containers. Docker was a real game-changer here.
229.
▲
by
realharo
6y ago
>decoding and encoding of messages between client and server You can generate the message types and communication functions from a shared schema, e.g. gRPC/GraphQL/Swagger and many others, which will also lead to looser coupl
230.
▲
by
realharo
6y ago
Can't Apple push silent code updates to specific phones? That would mean they can access that data whenever they choose to. Even if they don't do it right now, they retain that ability.
231.
▲
by
realharo
7y ago
It is still missing semantic highlighting (e.g. a local variable has a different color than a function parameter), although looks like things are finally moving on that front. https://github.com/microsoft/language-serve
232.
▲
by
realharo
7y ago
But you don't need to have a final design straight from the beginning. You can start with only what you need right now and evolve the types/schema over time. In fact, proponents of static typing would argue that the types make y
233.
▲
by
realharo
7y ago
It reminds me more of the early days of touchscreen phone apps. There were a lot of super gimmicky apps (remember the virtual beer app?), games whose sole reason for existence was that they could use the accelerometer (as a crappy steering
234.
▲
by
realharo
7y ago
According to https://docs.microsoft.com/en-us/dotnet/csharp/language-refe... , ?. was only added to C# 6.0, in 2015. Groovy had ?. in at least 2005. Then there were CoffeeScript, Kotlin, Swift and a bunch of o
235.
▲
by
realharo
7y ago
>Firstly, people simply don't apply for jobs that use languages they don't know. That could be because experience with that language is often listed as a requirement. >someone spend the first few months getting up to spee
236.
▲
by
realharo
7y ago
I'm not aware of a similar feature built into other languages, but most of it could be easily achieved with almost any type system. Just have two separate types, e.g. UnsafeString and regular String, and some kind of `convert` function
237.
▲
by
realharo
7y ago
There is also a possibility that your predictions about the future turn out to be wrong. It's definitely a balancing act. One extreme is always going for the instant gratification, paying no attention to how things fit into the overall
238.
▲
by
realharo
7y ago
If this keeps being an issue, maybe browser vendors will eventually limit website CPU usage by default. For web apps that need it, it could be an explicit permission, like webcam or location access.
239.
▲
by
realharo
7y ago
Mostly just lack of time, more important things got in the way, and it became less fun after the initial excitement. I'm also still not convinced that Kotlin/Native will catch on in any significant way, but we'll see.
240.
▲
by
realharo
7y ago
I'm thinking of a structure similar to https://reactjs.org/blog/2015/12/18/react-components-element... There may be some limitations and some things may need to be done differently because of C++, b
More ›