1,562 karma · joined Jan 29, 2016 (10y ago) · 183 submissions
comment 6y ago · link · parent
It's completely language agnostic, super easy to embed into any deployment pipelines, and works using regular SQL (so you don't need to learn a new syntax).
comment 6y ago · link · parent
I ended up switching back to Google. It was painful from a privacy standpoint, but what good is privacy if I don't get useful search results.
comment 6y ago · link · parent
The only thing I've noticed is that built-in hooks with dependency arrays consistently caused confusion for newbies - for some reason, people aren't used to thinking in terms of "call this function every time this data changes", but they are very used to thinking in terms of "call this function on initial page load" for example. The second way of thinking will probably lead to bugs or just weird code. Other than that (relatively tiny) hurdle, I don't think I've noticed any other common issues with understanding hooks.
I would be very interested in hearing specific examples of cases where hooks have worked in confusing or unexpected ways.
comment 6y ago · link · parent
Maybe this depends on region? I've worked at 5 different companies in the EU, and every one of them reimbursed pretty much any kind of training I wanted (including physical courses, conferences, online courses and books). In fact, I regularly see software dev job ads that list a personal development budget as a benefit.
comment 6y ago · link · parent
Why can't we just call this an "HTTP API"?
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
There's no good solution to this either - if there was more kindness in the world, then that would just create even more opportunities for the people playing the game to get ahead, because they would have more victims to exploit.
132.
Uber-rival Bolt raises 100M euros ($1.9B valuation)(uk.reuters.com ↗)
2 points · by sunaurus · 6y ago · discuss
comment 6y ago · link · parent
I'm lucky because I have an awesome home-office, so when I need to focus more, I can just work from home. But many people don't have that luxury, so open offices probably end up being quite harmful to overall productivity.
comment 6y ago · link · parent
comment 6y ago · link · parent
And where should the line be drawn? For example, web browsers are also apps that facilitate different kinds of transactions, but surely nobody wants Google to be responsible for paying benefits to anybody whose services can be bought through Chrome.
comment 6y ago · link · parent
That only happened to me once (when I was initially setting up Syncthing), but even once is too often for something like this.
The incredible part for me is that there was no clear indication in the UI that I was doing something destructive, I only realized that Syncthing was destroying my files because I was manually keeping an eye on it through my file browser. Surely deleting local files should require the user to first confirm using large warnings and red buttons?!
comment 6y ago · link · parent
You've already received a lot of responses explaining how both const works (which you still seem to misunderstand) and how React works, I hope you can take this as an opportunity to learn and perhaps not be so confident in the future when criticizing something that you clearly haven't taken time to even understand at a basic level.
comment 6y ago · link · parent
const [count, setCount] = useState(0);
count = 1;
In both cases, const is const.The fact that `setState` modifies state outside of the local scope does not mean that a local variable is not const. This is really basic programming, it doesn't have anything to do with React.
Here's the exact same scenario without React to show why you're wrong in your original comment:
const foo = () => {
const bar = getBarFromDatabase();
}
Imagine that this is a typical database where values can change, so that every time `foo()` is called, `bar` can have a different value. Do you think that this is a dirty hack that is overruling the const type declaration as well?comment 6y ago · link · parent
Compared to all that, React is ridiculously simple - it has a very small API surface, different parts of your app are isolated by default and performance optimization is generally very straightforward. As somebody who really loves simplicity, React is by far my favorite UI library at the moment.
I think when people fondly remember simpler times with jQuery, it's not because jQuery itself was simple, it's just that they remember working on less complex applications.
comment 6y ago · link · parent
I don't think this is a React mantra at all. Maybe "everything is a function" would be a modern React mantra? Seeing how React code is mostly hooks and components, and both are nowadays generally written as functions.
JSX is not even required when writing React, by the way. It's just syntactic sugar.
> It's crazy to me that it's normal now to have like 3-4 compilation/transpilation steps when working on a simple JS-based app.
There's nothing about React that requires this. You can simply include the react.js script at the beginning of your HTML document and write all the React code you want, no transpilation required.
If you want to use JSX, then you need transpilation, but again, JSX is not required to use React.
comment 6y ago · link · parent
People don't use static typing for writing code faster, they use it for code that can be READ (and understood) much faster, especially by somebody who doesn't work with that specific piece of code every day.
I think it's generally agreed that in most situations, reading code is much more common than writing code, so static typing really make sense.
comment 6y ago · link · parent
Here are all the facts:
1) There's an incomprehensibly large amount of stars and planets in the universe
2) On one of these planets (Earth), there are conditions which have lead to the appearance of life
3) These conditions are not unique to this planet
We don't know of any fact that would exclude the possibility of life coming about on other planets with similar conditions, so using Occam's Razor actually tells us that there's probably lots of other life out there.
comment 6y ago · link · parent
In any case, I think the core issue is really how much faith you have in the proficiency of your teammates. If you can't trust the developers in your team to actually only write functions that do what they say in the name (without nasty side-effects), then I can see why not having all the logic in front of you in one giant function can be annoying - you have to jump into all the definitions and manually double check to be sure what's happening.