<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: shroompasta</title><link>https://news.ycombinator.com/user?id=shroompasta</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 13 Jun 2026 13:20:51 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=shroompasta" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by shroompasta in "Tamagui 1.0 – Cross-platform React apps in less time, with better performance"]]></title><description><![CDATA[
<p>Capacitor uses WebView which is less performant than RN</p>
]]></description><pubDate>Sat, 31 Dec 2022 01:12:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=34192189</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=34192189</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34192189</guid></item><item><title><![CDATA[New comment by shroompasta in "A Visual Guide to React's useEffect (2021)"]]></title><description><![CDATA[
<p>>Or when the network is unpredictable, you retry because it's taking too long, then the second request succeeds, then somehow the first request succeeds.<p>This has an atomically low chance of ever happening, and never happening on single threaded monolithic servers.<p>>That's no longer 5 LOC.<p>Okay cool, 7-8 LOC, better than abstracting it into a whole new custom hook.<p>>Congratulations. Do you also do that for authenticated requests? If so, either you are using some kind of hardcoded global variable, or you are not using 5 lines of code.<p>You need to be more specific about authenticated requests, because cookies that are sent back as a response will have directions on how they should be sent back to the server on each request that requires no javascript at all.<p>If you're using token auth with localStorage, which probably isn't a wise idea because you're now susceptible to XSS attacks, then you should already be abstracting that away.<p>>What I'm saying is that for things that are more advanced than basic data fetching, you may want to bring better tools than just fetch + 4 extra LOC.<p>here's a pastebin of my wrapper around requests<p><a href="https://pastebin.com/V33F1f2F" rel="nofollow">https://pastebin.com/V33F1f2F</a><p>it is already highly configured and abstracted.<p>All i want to do in the useEffect is await api.getGamesByDate(), and this should be fine.<p>What you're suggesting is that you support the React team's decision in that I have to have an additional wrapper around my apiCalls just to avoid two fetch calls in Strict Mode.<p>Does that sound logical to you?</p>
]]></description><pubDate>Wed, 28 Dec 2022 16:21:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=34162505</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=34162505</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34162505</guid></item><item><title><![CDATA[New comment by shroompasta in "A Visual Guide to React's useEffect (2021)"]]></title><description><![CDATA[
<p>>That includes when new data is being fetched and you don't want to show the old data<p>This only really happens when you have race conditions<p>> Or when you want to not refetch data if the conditions for refetching are not met.<p>This only happens when you fetch based on state update on the same component<p>> Or when you want to cancel an in-progress data fetch if the data shall no longer be shown after fetching it because the user closed the component tasked with showing the data.<p>you can do this with certain conditionals and a cleanup function<p>over 3 quarters of my data fetching is just a simple fetch on onComponentDidMount<p>do you mean to tell me I have to bring in a library just for that?</p>
]]></description><pubDate>Tue, 27 Dec 2022 20:01:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=34153072</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=34153072</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34153072</guid></item><item><title><![CDATA[New comment by shroompasta in "A Visual Guide to React's useEffect (2021)"]]></title><description><![CDATA[
<p>>The one talking about fetching data recommends a 3rd party library to make it simple but tells you how to avoid certain issues if you want to go the route of implementing your own fetching.<p>yeah, making it into a custom hook lol.<p>When did something that was originally worth 5 LOCs turn into 20 LOCs</p>
]]></description><pubDate>Tue, 27 Dec 2022 04:50:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=34145218</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=34145218</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34145218</guid></item><item><title><![CDATA[New comment by shroompasta in "Introducing Svelte, and Comparing Svelte with React and Vue (2021)"]]></title><description><![CDATA[
<p>I agree that Svelte/SolidJS has overall better architecture.<p>I don't agree that they will match React's community and environment in the near future, if at all.</p>
]]></description><pubDate>Sat, 10 Sep 2022 15:23:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=32791455</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32791455</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32791455</guid></item><item><title><![CDATA[New comment by shroompasta in "Introducing Svelte, and Comparing Svelte with React and Vue (2021)"]]></title><description><![CDATA[
<p>>I imagine most folks who love React syntax have Stockholm Syndrome at this point.<p>And I'd imagine that most folks who are advocating for Svelte never had to build up a startup before.<p>If everything was done for performance, then python or ruby wouldn't be used as web server languages today, and yet python and ruby web servers comprise of a significant amount of webservers.<p>And besides, most performance improvements between React and Svelte are almost invisible to the naked eye, we're talking differences of milliseconds here.<p>So you've built your web client in Svelte, are you ready to traverse into new frontiers and build a production ready app in Svelte Native?<p>Or are you going to blow extra capital to hire ios and android developers?<p>Are you ready to deal with the fact that its not using its own implementation and is using Native Script under the hood?<p>What about the hiring pool?<p>Svelte is a great choice for personal projects, but extremely impractical for a startup.<p>Svelte Native will NEVER reach the maturity that React Native has, and that is what makes react such a practical choice for a startup.<p>If you had to consult a startup to choose a FE framework for both its web client and mobile client, and you suggested Svelte, I would bet that not only would they lose a lot of capital and time, they would run into so much technical debt.<p>Svelte for the web client is fine, but now you have to manage a different team for the mobile client.<p>This is what makes react so strong - the web and mobile clients can be handled by the same team.<p>React is Practical; it doesn't matter if the philosophy in how they render the dom isn't up to par, the community and the environment around it makes it practical.<p>And honestly, the performance is good enough.<p>If Discord can use React + RN, it's good enough for the lion's share of applications out there.</p>
]]></description><pubDate>Fri, 09 Sep 2022 16:10:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=32780999</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32780999</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32780999</guid></item><item><title><![CDATA[New comment by shroompasta in "Introducing Svelte, and Comparing Svelte with React and Vue (2021)"]]></title><description><![CDATA[
<p>i agree, but not a critical issue.<p>In less than a decade, i'm already guessing less than 5 years, WASM will come out with a viable frontend solution that will actually be groundbreaking.<p>The battles between frontend philosophies in javascript will look like child's play then.<p>I'm not going to waste anymore time switching FE frameworks (Jquery->Angular->React), as I've found that it's been quite useless (Although I really liked Solid - shame their animation libraries suck and the overall environment isn't mature enough).<p>I'm happy with React.<p>Performance isn't an end all be all.<p>Svelte doesn't have a chance to match the hiring pool of React, nor will Svelte Native ever compete with React Native in maturity.<p>In 5-7 years, we will be talking about ending the use of Javascript on the Frontend, So i really don't care about reactivity.</p>
]]></description><pubDate>Thu, 08 Sep 2022 14:46:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=32766379</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32766379</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32766379</guid></item><item><title><![CDATA[New comment by shroompasta in "Introducing Svelte, and Comparing Svelte with React and Vue (2021)"]]></title><description><![CDATA[
<p>Svelte is a solution to a problem that doesn't need to be solved.<p>almost with many things in software development to be honest.</p>
]]></description><pubDate>Thu, 08 Sep 2022 13:44:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=32765417</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32765417</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32765417</guid></item><item><title><![CDATA[New comment by shroompasta in "Introducing Svelte, and Comparing Svelte with React and Vue (2021)"]]></title><description><![CDATA[
<p>svelte native is nowhere near react native in maturity. 
Discord uses React Native. What larger companies uses Svelte Native?</p>
]]></description><pubDate>Thu, 08 Sep 2022 13:42:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=32765392</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32765392</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32765392</guid></item><item><title><![CDATA[New comment by shroompasta in "Introducing Svelte, and Comparing Svelte with React and Vue (2021)"]]></title><description><![CDATA[
<p>Svelte/Solid JS and reactivity are great; Reactivity definitely is a better philosophy than Virtual DOM diffing.<p>However, I'd like to add one more reason to the "arguments adopting svelte" and that is native development.<p>Svelte Native doesn't even come close to touching React Native in maturity, and I'm willing to bet it never will.<p>For a startup to consider a frontend technology, React is easily the better choice in terms of capital because there is no way you're going to build a production ready native app in Svelte Native.<p>If you were to build your web client in Svelte, then you would have to spend capital on another team to build Native (God forbid in React Native), in which you would split teams on ios and android.<p>Or you could you use just one team for React + RN altogether and save you possibly millions in capital.<p>Also I'd like to mention that the NYT article that was linked to showcase Svelete actually showcases more of D3 instead.<p>Mike Bostock also used to work for NYT and NYT absolutely loves using D3.</p>
]]></description><pubDate>Thu, 08 Sep 2022 12:07:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=32764340</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32764340</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32764340</guid></item><item><title><![CDATA[New comment by shroompasta in "Docker Compose best practices for dev and prod"]]></title><description><![CDATA[
<p>This is a questionable comment<p>>If you don't use the same Docker Compose file for Production, don't use it for Development. Your two different systems will diverge in behavior, leading you to troubleshoot two separate sets of problems, and testing being unreliable, defeating the whole "it just runs everywhere" premise.<p>Anyone ever developing a react project on docker compose would never run a build step for development.<p>In fact for most setups, I probably wouldn't even run react on docker-compose for development, and just use the dev server straight up on my machine.<p>Furthermore, working with any python http servers is substantially easier when working with a dev server in development, rather than running your server through gunicorn or other wsgi servers - not to mention the ability to hot reload for development.<p>I'm sure that there are many other cases where it's necessary and convenient to separate production and development docker compose files.<p>I don't think it's fair to say that there is no point in having separate docker-compose files as the lion's share of dependencies that need to be consistent is inside each container, not on the docker-compose configuration level.</p>
]]></description><pubDate>Tue, 16 Aug 2022 18:21:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=32486694</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32486694</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32486694</guid></item><item><title><![CDATA[New comment by shroompasta in "Show HN: Pg_jsonschema – A Postgres extension for JSON validation"]]></title><description><![CDATA[
<p>How does this validate data with a variable amount of keys with the same value type for example a to-do list<p>my day to day to do list varies in the number of tasks, but the completion will always be in boolean<p><pre><code>    [
        {
         "task": "do Foo", 
         "completed": False, 
        }, 
        {
         "task": "do Bar", 
         "completed": False, 
        }, 
        {
         "task": "do Baz", 
         "completed": False, 
        }, 
        ...
    ]
</code></pre>
Also, what is the issue of schema validation before inserting into the json column, as this is what I'm doing with a small microservice with Redis.</p>
]]></description><pubDate>Thu, 21 Jul 2022 22:45:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=32186157</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32186157</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32186157</guid></item><item><title><![CDATA[New comment by shroompasta in "Show HN: Pg_jsonschema – A Postgres extension for JSON validation"]]></title><description><![CDATA[
<p>I'm using a pg json column to store data as a second source of truth for data that is primarily held on a separate microservice.<p>The schema on that end is pretty intricate but to prevent hitting two services for certain types of data, we just dump it to a json column.<p>Furthermore, for a personal project of mine to help me with productiving / daily schedules, i'm using a json column for a to-do list in the schema of<p>{[some_todo_item]: boolean,}<p>which can't traditionally be represented in pg columns as the to do items are variable.</p>
]]></description><pubDate>Thu, 21 Jul 2022 22:35:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=32186072</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32186072</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32186072</guid></item><item><title><![CDATA[New comment by shroompasta in "Ask HN: How to get developers and UI designers to work well together"]]></title><description><![CDATA[
<p>In my opinion, design tools like figma or adobe xd are abstractions away from the tech stack in which perpetuates more roles in which there doesn't need to be.<p>A UI/UX Designer should be competent in CSS in which the browser should be their whiteboard / canvas.<p>Abstracting the design portion away to other platforms only furthers that gap between design and development.<p>An optimal and streamlined design regiment is pen and paper straight to css.<p>Hire designers that are good with css in short.<p>To bridge the gap between design and development is not to find ways in which those teams communicate better, but rather a fundamental change in how we look at designers and their competency.<p>To further that point, if we take a look at motion design and animations, it should not be the case that a designer comes up with a wireframe and leave it to the developer to build that for building animations is out of scope for a dev task, but rather these tasks should be soley on the ui/ux designer themselves.</p>
]]></description><pubDate>Tue, 19 Jul 2022 15:25:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=32152871</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32152871</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32152871</guid></item><item><title><![CDATA[New comment by shroompasta in "Wails: Build cross-platform applications using Go"]]></title><description><![CDATA[
<p>performance.<p>some apps need native functionality, for example, instagram needs access to your camera.</p>
]]></description><pubDate>Sat, 16 Jul 2022 19:58:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=32121401</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32121401</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32121401</guid></item><item><title><![CDATA[New comment by shroompasta in "Eating horsemeat in France"]]></title><description><![CDATA[
<p>me with escargot</p>
]]></description><pubDate>Sat, 16 Jul 2022 15:56:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=32119299</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32119299</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32119299</guid></item><item><title><![CDATA[New comment by shroompasta in "Ask HN: What is best way to do hands-on practice for system design?"]]></title><description><![CDATA[
<p>there are many answers to this, but i'll try to give a, although biased, straightforward example.<p>- learn docker / docker-compose 
- tie a websocket server, a task queue, and 2-3 http microservices together
- you don't have to have many resources, maybe 4-5 endpoints that go through all services
- have a client javascript front like react
- (bonus for grpc communication for intermediary connections between microservices)
- try to break it/ fix it as much as you can. 
- along the way you'll introduce yourself to timeouts, retries, rate limiting, and other secure practices.<p>watch guarav sen or hussein nasser on youtube - they are extraordinary resources for aspiring and even competent backend architects</p>
]]></description><pubDate>Sat, 16 Jul 2022 14:57:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=32118770</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=32118770</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32118770</guid></item><item><title><![CDATA[New comment by shroompasta in "The new wave of React state management"]]></title><description><![CDATA[
<p>Zustand is a lot more popular than the comments or the article implies. I see it quite heavily used amongst Netflix engineers.<p>That being said, prop drilling was made more of an issue than it really is, especially considering the boilerplate needed for state management libraries like Redux.<p>But if there does need to be a global store, I usually reach for zustand as the API is probably the easiest out of the ones mentioned.</p>
]]></description><pubDate>Sat, 02 Jul 2022 21:03:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=31962386</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=31962386</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31962386</guid></item><item><title><![CDATA[New comment by shroompasta in "Reimagining front-end web development with htmx and hyperscript"]]></title><description><![CDATA[
<p>I take absolutely nothing noteworthy of your comment at all other than that you have a bias that you need to put in check.</p>
]]></description><pubDate>Sat, 02 Jul 2022 20:54:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=31962289</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=31962289</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31962289</guid></item><item><title><![CDATA[New comment by shroompasta in "Reimagining front-end web development with htmx and hyperscript"]]></title><description><![CDATA[
<p>While I agree that React (for the web) isn't the best SPA out there (I would use Solid or Svelte), It's the most practical simply because of the hiring pool and because of React Native.<p>Sometimes you have to be practical and give up certain areas for the sake of the whole.<p>I don't even think React is even that bad as you claim it to be, judging from your past posts.<p>React Native is one of the best things to ever happen to native development, removing the atrocity that is the separation of development of apple and android - one of the most productivity inhibiting factors to a startup out there.<p>This is why react is so strong.</p>
]]></description><pubDate>Sat, 02 Jul 2022 18:10:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=31961088</link><dc:creator>shroompasta</dc:creator><comments>https://news.ycombinator.com/item?id=31961088</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31961088</guid></item></channel></rss>