Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
epidemian
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
epidemian
3y ago
I agree with the grandparent general point, but i would say that it is string formatting more precisely where these nil conversions are useful. For example, you can write something like: bananas = 4 puts "you have #{bananas}
62.
▲
by
epidemian
3y ago
Other dynamics, like inflation and gentrification to name a couple, can make Situation 1 basically the same in practice to Situation 2. It just makes it more difficult to point out because "everyone's money number has gone up, so
63.
▲
by
epidemian
3y ago
Words have meaning. You used a word that has a specific meaning to refer to something else, hence the miscommunication.
64.
▲
by
epidemian
3y ago
I think the downvotes you're receiving are misjudged. It's a personal opinion to have, and as long as you're not harming or forcing that opinion onto others, i respect it. I don't share it though. And it's interesti
65.
▲
by
epidemian
3y ago
> Sorry, not even remotely close. I want to see some serious evidence. There was this blog post of a company trying improve their clients' webpage performance by incrementally migrating them from JS to WASM/Rust: https:/&
66.
▲
by
epidemian
3y ago
Depends on the definition of "for free". Depending on where one lives, but many people have access to "free" government services, ranging from roads, education, unemployment security, healthcare, and more. The costs of t
67.
▲
by
epidemian
3y ago
> [...] perhaps Twitter was sold for its existing content rather than existing or active user base. Not a very significant distinction: if active users stopped posting, scrappers wouldn't have much of a reason to keep scrapping.
68.
▲
by
epidemian
3y ago
Yes, definitely omit parentheses when calling a method without arguments. For calls with some non-block arguments, it's not so clear-cut as "always include parentheses". Some methods are so prevalent that they almost become p
69.
▲
by
epidemian
3y ago
Using factories doesn't mean you need to persist everything to the DB on every test. If you're using FactoryBot for example, you can use `build(:taco)` to instantiate a Taco without persisting it to the DB. If you use `create(:tac
70.
▲
by
epidemian
3y ago
Considering that VC funded projects tend to attract "career oriented" developers that have no incentive other than money or prestige, i'd say that could be a good thing.
71.
▲
by
epidemian
3y ago
> How come? The fragmentation on Linux desktop causes a lot of churn, both in users looking for more cohesive desktop experiences, and on developers looking to not having to deal with all this mess. In regards to major backwards-incompat
72.
▲
by
epidemian
3y ago
It's more impressive to have it running on your browser, with infinite levels of nesting, both "in" and "out": https://oimo.io/works/life/
73.
▲
by
epidemian
3y ago
> And like any country you have to be careful while visiting as a tourist. I don't understand what you mean by any country . I think every country i've visited so far has been safer than my home country. So in my case at least
74.
▲
by
epidemian
4y ago
Yep. And they also keep single-use code local to the only place it's being used at the moment, which i think can help the readability and maintainability of said code :) Functions do have a place too of course; even single-use ones. Es
75.
▲
by
epidemian
4y ago
IDK it's cool to be able to write these nice colors with 3 hex characters :)
76.
▲
by
epidemian
4y ago
> [React Context] was never meant to replace Redux, and as far as I know nobody from the React team has ever claimed something like that. I think the conflation came more from the "community" than from the React team itself. Ma
77.
▲
by
epidemian
4y ago
> Serious question, what about Figma is unique to a cloud app over a desktop app with cloud features. There's probably nothing unique about it, but the server/browser model allows anyone on a team to access the Figma project as
78.
▲
by
epidemian
4y ago
> How likely is it that the depth of the JSON structure would exceed the maximum depth of the stack? Not that unlikely i'd say, at lest if the stack size is unreasonably small. For example, on nodejs, JSON.stringify() chokes with a
79.
▲
by
epidemian
4y ago
> You want to force me to agree with you or become unemployed What in the hell? I think i totally failed to communicate what i mean if took that from what i said. I tried to say that it's a personal decision of mine to try to change
80.
▲
by
epidemian
4y ago
> People like you must have always been... No need for these assumptions. Your argument is clear without them. Maybe you and i would not respond the same way on the same situation, and that's OK. Personally, when i had coworkers tha
81.
▲
by
epidemian
4y ago
As far i understood, this is about allowing or disallowing employees to discuss the ruling. Nobody is talking about forcing people to take part on the discussion or to pick a side —you always have the option not to participate on these thin
82.
▲
by
epidemian
4y ago
Oh, yes. Silly mistake. I've fixed my comment. Thanks for the catch!
83.
▲
by
epidemian
4y ago
> Given that the above works in the browser, what exactly is it doing? Oh, buckle up! new DOMPoint<Number>(4,5) Let's first clean things up a bit: DOMPoint an Number are just identifiers. So, let's replace those wi
84.
▲
by
epidemian
4y ago
Hello, i'm from a country which is going through rapid inflation (>50% annually). It's true that people here need either an alternative currency for purchasing foreign goods (access to USD or other currencies is restricted, and
85.
▲
by
epidemian
4y ago
#whynotboth? Grifters should be punished for their scams, and it's also acceptable for "investors" on these scams to lose their money i think (that's a hard punishment already; no need for anything extra). Thinking of it
86.
▲
by
epidemian
4y ago
This is a similar attitude to blaming users who close an program without saving, telling them it's their fault; the program even asked if they really wanted to close without saving! But, it's also totally possible for a program
87.
▲
by
epidemian
5y ago
> in Linux we either have all or nothing (root vs user) And it's not like non-root user is nothing. I, as a user, can of course access and edit files on my $HOME directory. But it's insane that a transitive dependency of a dev
88.
▲
by
epidemian
5y ago
i think an immediate mode UI library would make sense if you want to render to a canvas or a similar "backend". maybe for things like games, or some interactive graphic things but if you want to render to the DOM —and you want to
89.
▲
by
epidemian
5y ago
Absolutely. I feel there's a lot social pressure involved in accepting to dedicate half our waking time and most of our mental energy to jobs that in no way we'd choose to do if it wasn't for the money. Not only are many (mos
90.
▲
by
epidemian
5y ago
> because it doesn't matter But, if it doesn't matter, why not let RuboCop make all `if`s consistent with `rubocop --auto-fix` and be done with it, instead of configuring RuboCop to not complain about it? It seemed that this st
More ›