Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dceddia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
58 ms
·
541.
▲
by
dceddia
8y ago
I agree with a lot of the points here. One specific pet peeve of mine is job listings that refuse to nail down which specific technologies they're using. Some will say things like "Front-end web development using a framework suc
542.
▲
by
dceddia
8y ago
I went looking for a square the other day. An "engineer's square" or "machinists's square" or whatever it's called -- the chunky 2-piece super accurate kind. After scrolling through the listings & read
543.
▲
by
dceddia
8y ago
Yeah, and if you say them out loud, "Jack" sounds a slight bit faster than "John" I think.
544.
▲
by
dceddia
8y ago
This other one was much more useful. I tried this a few years ago and it seemed to work, but it was also really easy to fall back into old habits. Still though, might be worth a try. > This is going to sound really stupid, but it works.
545.
▲
by
dceddia
8y ago
I always like to hear about new (to me) analytics options. Currently I use GA + Clicky, and I've considered getting rid of GA for a while. One option that looks attractive is Fathom, which can be used either as a SaaS or self-hosted, a
546.
▲
by
dceddia
8y ago
It's a good example, and something I often wonder about when I'm filling out a survey and give up part-way -- did they save the questions I had already answered? FWIW you probably wouldn't need something as powerful or blunt
547.
▲
by
dceddia
8y ago
I think the same could be said of developers. Or, maybe in both cases, it's the companies that don't know when to stop. As a developer, and maybe more relevant here, a user of software, it's kind of surprising how developme
548.
▲
by
dceddia
8y ago
> In the SaaS & ecommerce landscape, being beaten to market or having a competitor that can iterate faster than you means you're dead. I understand how common this sentiment is, and maybe in some markets it really is true, but f
549.
▲
by
dceddia
8y ago
Flexbox makes vertical alignment a snap. It's even pretty well supported these days: https://caniuse.com/#search=flexbox In this case, all you need to do is add "display: flex; align-items: center" to your a
550.
▲
A Simple Intro to React Hooks
(daveceddia.com)
2 points
by
dceddia
8y ago
|
0 comments
551.
▲
by
dceddia
8y ago
I think the recommended pattern if you need a "conditional effect" would be to just move the `if (expanded)` inside the effect instead of wrapping it.
552.
▲
by
dceddia
8y ago
That's pretty much what useState does. (or maybe you were already saying you liked that -- sorry, if that's what you meant) The only difference being that the "getter" has already been "executed" in a way: useS
553.
▲
by
dceddia
8y ago
Hooks only work in function components, so there's no "this" (at least, not one that React owns...).
554.
▲
by
dceddia
8y ago
Yeah, they answer this in the FAQ too. > In modern browsers, the raw performance of closures compared to classes doesn’t differ significantly except in extreme scenarios. https://reactjs.org/docs/hooks-faq.html#are-h
555.
▲
by
dceddia
8y ago
Interesting. I usually use Chrome and I get the loading animation every time. The old one had an animation too, but this one takes 2-3x longer.
556.
▲
by
dceddia
8y ago
Wasn't there a point where WhatsApp cost $1/year or something like that? Or am I thinking of something else? I don't know how long that lasted though.
557.
▲
by
dceddia
8y ago
TIL "ski rental problem". Makes sense that this would be an entire class of problem. To me it's been the "should I buy an airplane" problem. (Basically, you have to rent a lot, > 50 hrs/year, before buying m
558.
▲
by
dceddia
8y ago
I almost added a bit about the > 40 hr/week problem. I can only speak for myself but out of the 3 software jobs I've had none of them regularly required more than 40 hours/week. That's a privilege for sure, but those
559.
▲
by
dceddia
8y ago
As a young (well not that young) and childless, yeah. I don't think this can work for everyone. But it's another option to consider.
560.
▲
by
dceddia
8y ago
Those options all make the assumption that you have to carve that time out of regular working hours. I'd just like to add an option #6 - work on your project on nights and weekends, launch it on nights and weekends, and make the leap t
561.
▲
by
dceddia
8y ago
Recently I saw an item where the warranty would only be valid for the Sold by Amazon version. The first bullet in the product description was "Amazon as the seller is the ONLY authorized Fulfilled By Amazon Dealer". I ended up buy
562.
▲
by
dceddia
8y ago
Educational and useful content marketing is definitely a solid plan. That's been my strategy all along and it seems to work! I figure, some people might wanna sign up for a thing, or enjoy feeling like they're in a "class&q
563.
▲
by
dceddia
8y ago
Cheers, thank you too! Pricing is hard :/ Price too low, and people don't take it seriously. (e.g. $9 for 35 hours of video). Price too high and people run away. It was my first product, too. I looked at it as, "how many hour
564.
▲
by
dceddia
8y ago
Thanks for the honest comments. What would you like to see in addition to what it covers so far? While I intentionally kept it focused on "pure React" because I felt that a big part of the "React is hard" sentiment seems
565.
▲
by
dceddia
8y ago
> I think it's maybe unfair to view Context as a replacement for Redux. That pretty much sums up why I wrote this article :) After the new Context API came out, a lot of people started saying that it would replace Redux, and like yo
566.
▲
by
dceddia
8y ago
I think this is a solid approach. I like to add snapshot testing for individual components too. The slowest tests to write for me are always the ones that involve some kind of async stuff.
567.
▲
Using “Slots” to Pass Multiple Children to React Components
(daveceddia.com)
2 points
by
dceddia
8y ago
|
0 comments
568.
▲
Redux vs. The React Context API
(daveceddia.com)
1 points
by
dceddia
8y ago
|
0 comments
569.
▲
by
dceddia
8y ago
Yeah, fwiw, I am pretty good at avoiding too many shiny toys (though this project might not be a good example of that). I'm all about using React without Redux when it makes sense, and especially at the beginning of a project. Heck, I
570.
▲
by
dceddia
8y ago
Thanks! Glad you enjoyed it. Your project sounds great, I've toyed with the idea of adding a PID/fan to this smoker somehow. The ones I had seen (from looking into adding a PID to a Rancilio Silvia) seemed awfully expensive, but h
More ›