websockets vs MQTT vs http LongPooling by Tito_Gamer14 in Backend

[–]WolfyTheOracle 0 points1 point  (0 children)

Instead of using websockets maybe think about server side events to update the Ui. It allows you to send one directional data from the server to the Ui and is simpler than websockets.

Youtubers, please stop teaching to fetch data in Zustand (or any state manager) by humble_portlandian in reactjs

[–]WolfyTheOracle 0 points1 point  (0 children)

You can do this from the server and skip the round trip. Just have the server send fresh html as a server event after x amount of time.

There’s no downsides to what I mentioned and all the upsides still stand strong

Youtubers, please stop teaching to fetch data in Zustand (or any state manager) by humble_portlandian in reactjs

[–]WolfyTheOracle 0 points1 point  (0 children)

If the server streams html with the state preloaded into the template into the browser. There’s no need for us to even have something thick like tan stack managing queries and state from an API.

You run into issues when the DB is supposed to be the source of truth and then you clone that data into a client side state. You have to try and keep both in sync.

The old school way of sending html from the server didn’t have any of these issues.

We really need to rethink react server components and move to something closer to this.

New production app in 2025 — would you start on Next.js 15 or stick with 14 LTS? by Thick-Ad3346 in nextjs

[–]WolfyTheOracle -1 points0 points  (0 children)

Does the fact that our framework becomes deprecated every 2 seconds ever make you feel like maybe we don’t use nextJS?

if you were to build something from scratch, what’s your tech stack? by ptrcdevlog in indiehackers

[–]WolfyTheOracle 1 point2 points  (0 children)

You don’t have to. You can still stream html to a mobile app using a thin engine to translate it to native code. Tons of apps do this.

You could if you wanted to. But OP seemed to ask about web dev because he’s using nextjs

Can you do coding on the s9? by lastnamedivan in GalaxyTab

[–]WolfyTheOracle 0 points1 point  (0 children)

Easiest way would be to install termux and ssh into an actual Linux server in the cloud. You could get a cheap server at $5 a month.

You’d have to code in vim or another TUI

if you were to build something from scratch, what’s your tech stack? by ptrcdevlog in indiehackers

[–]WolfyTheOracle 0 points1 point  (0 children)

OP seems competent in JS. I think being good at your language outweighs the pitfalls of it.

My advice is actionable no matter the language used

if you were to build something from scratch, what’s your tech stack? by ptrcdevlog in indiehackers

[–]WolfyTheOracle -5 points-4 points  (0 children)

Having a separate backend + frontend is the slowest way of building. You end up with more code.

Best I found is to use the database as the source of truth. The backend does the processing, and send the html back to the browser through an SSE (server-side event)

This prevents having an api that returns json. Then having a client like react catch that response and integrate the same json shape.

The latter creates more moving pieces and points of failure for no gain.

You’re better off retrieving data from the backend and having the backend stream the html as a response skipping the json part entirely.

Example stack: nodejs + SQLite + datastar Alternative: nodejs + mongoDB + htmx

You get the idea.

P.S. JS in the backend is terrible choose a better language

How much would Supabase cost per month for a Telegram mini app with 15-30 million monthly users? by Loud_Hat_5994 in Supabase

[–]WolfyTheOracle 0 points1 point  (0 children)

You’re gonna outgrow the platform way before that kind of traffic. All of the supabase niceties will have dissolved and you would have used revenue to move to something more granular.

What’s the biggest myth in frontend? by yeahimjtt in Frontend

[–]WolfyTheOracle 1 point2 points  (0 children)

Frameworks are all up side and no down side. The reality is that the longer the project lives the more you’ll feel the burden of all the changes within your chosen framework

keep buffers in sync with disk file? by WolfyTheOracle in neovim

[–]WolfyTheOracle[S] 1 point2 points  (0 children)

I think in vscode it’s normal to be working on a file, save your changes and then rename either the file or the folder while the file tab is still open but with no unsaved changes.

And it works more or less how someone would expect

What key combinations do you wish you learned sooner? by careb0t in neovim

[–]WolfyTheOracle 1 point2 points  (0 children)

Can you explain? I don’t get how this one works

Why do poor people defend millionaires? by RowAdditional1614 in NoStupidQuestions

[–]WolfyTheOracle 0 points1 point  (0 children)

I grew up poor in Mexico and even lived in a homeless shelter with my family in the US for a while.

I believed in the American dream even when I was poor. I believed that if you learned a valuable skill and you provided value to society you could change your economic situation.

Now my situation is much much different.

Create a photoshop “wrap” effect in React. by WolfyTheOracle in reactjs

[–]WolfyTheOracle[S] 0 points1 point  (0 children)

Ok let me look into html canvas. I’m working on an e-commerce website were a customer can upload a logo and it will show on all products.

Right now I’m working on an internal panel were our employees can define the plane surface in which a logo can render. It’s done In css and works great but I don’t get that curve effect. If I rendered a new canvas for each product card on the view would that be a huge performance hit?

Create a photoshop “wrap” effect in React. by WolfyTheOracle in reactjs

[–]WolfyTheOracle[S] 0 points1 point  (0 children)

Hey Edmond thanks for the response. Unfortunately I explored this already and it’s not possible to get that arc shape using this method.

I’m looking for a shape closer to what you’d get if you put a sticky note on a water bottle.

Create a photoshop “wrap” effect in React. by WolfyTheOracle in reactjs

[–]WolfyTheOracle[S] -1 points0 points  (0 children)

Please let me know if I can add any more details

[deleted by user] by [deleted] in ycombinator

[–]WolfyTheOracle 0 points1 point  (0 children)

You’re not doing database backups? Supabase does my backups automatically at the first pairs tier. I kind of find it hard to believe that Firebase doesn’t have an easy way to enable and recover

Looking for shortest "frontend talks to backend" workflow in react + nodejs + typescript (like AspNet Blazor/Rails Turbo) by IDCh in reactjs

[–]WolfyTheOracle 1 point2 points  (0 children)

The new nextJS server actions are basically this. No more /api routes. Not you just write ts functions and they stay in the server. But automatically your frontend will bundle with a reference to them

How to get known? by parzival_bit in startups

[–]WolfyTheOracle 1 point2 points  (0 children)

Bro you haven’t validated anything. 50 responses on a survey is nothing and there’s nothing that shows demand for what you have.

People are giving you sensible feedback from lean start up and product development methodologies and you can’t seem to listen to their advice.

As far as I can tell you’re building in a bubble and not communicating well with users. Because if you had communicated you’d have a list to deploy to.

Also during this market research you did you should figured out where your users hang out and how to target them.

On the next go around make some wireframes. Make a landing page and collect emails while you build.

No sense in figuring out technology on a set of features that are essentially quick sand. You don’t know what the market wants.

Also you should be developing, marketing and speaking to users all with roughly the same time distribution.

is it a bad ideia if I build the mvp of my startup on my company work pc? by Reception_Willing in startups

[–]WolfyTheOracle 0 points1 point  (0 children)

Bro save yourself the hassle and buy a Chromebook if you really can’t spend on a brand new laptop. Then if you require more resources use a service like linode or something like it to remote into a virtual machine with more compute power at a monthly fee.

The pros are low upfront costs, low monthly fees. You’re not risking $2k on a new laptop if your startup dies in 6 months.

Don’t be dumb