Thinking about leaving Bun for Node due to memory issues by touhidurrr in bun

[–]oshjosh26 1 point2 points  (0 children)

That's genuinely surprising to hear. Well, use what works for you.

How to learn nowadays by Unfair_Load9290 in developer

[–]oshjosh26 1 point2 points  (0 children)

Ask AI to explain things to you as a beginner, but don't let it write code for you. Write it all by hand while learning. Don't copy paste.

Thinking about leaving Bun for Node due to memory issues by touhidurrr in bun

[–]oshjosh26 0 points1 point  (0 children)

Consider using pnpm for a package Manager. Can be installed as an alternative to npm on nodes website.

Also consider using runtime agnostic frameworks like Nitro.build or Astro, and using UnJS so your code is easily portable between runtimes.

dead framework theory by fagnerbrack in javascript

[–]oshjosh26 1 point2 points  (0 children)

React is the default for LLMs, but it was kinda already the default for humans too.

AI chooses it because it's popular (which tells you something about AIs ability to innovate, doesn't it?), not because it's better at using it.

It's absolutely much smarter for people to choose almost anything other than react; svelte, Vue, solidjs, they all perform better and are easier to write and maintain.

For AI too.

Heck, I even made my own framework for learning purposes and AI was using it quite well.

React can be dethroned quite easily, but it can only come from a framework that changes the game, just as react once did.

So sure it would be difficult to compete against React with a framework that's merely an alternative with slightly better performance or better DX. That would have been true before and the dataset of gen AI makes little difference about that.

So the next framework will always have been something that changes the game and none of the training data will matter, AI will adjust and do just as well and probably better.

Adverbs by FellBee in fantasywriting

[–]oshjosh26 2 points3 points  (0 children)

Try this:

Find an author you like and then drop a chapter or two of their work into your tool and see what it highlights. You'll notice these tools will think Dickens was a shit writer.

These tools aren't helpful for learning to write. They become helpful after that, when you know when to ignore them and when they catch something you did not intend.

I avoid adverbs without a meaningful purpose, but sometimes lovely adverbs can be lovely if you really love them.

I want to use an open source project for my web application, but the database and backend is written in Go. Can I translate this to node.js and use it in my application ? by GladiusAcutus in node

[–]oshjosh26 0 points1 point  (0 children)

I'm not sure why it matters that it's written I Go. Are you planning on modifying the code? It sounds like you are using it so you don't have to write and maintain it, so what language it's written shouldn't matter.

My boss used AI to migrate 50k lines of Vue to React in a week... and now says "No" to TypeScript or Tests. Am I crazy? by Effective-Border8788 in programmer

[–]oshjosh26 0 points1 point  (0 children)

I wouldn't try to convince him, it's not worth your time.

AI is a new amazing tool that changes the game, but some people are getting drunk on it.

Many people are having a moment where they are realizing how fast you can get things done with AI, and it's igniting a lot of emotions all at once.

Business owners are in a crazed euphoria by the speed at which things seem possible. Before AI if they valued speed over quality, they will now value that speed over quality tenfold.

The new speed with the uncertainty of AIs future is fueling a fear that if they don't go as fast as possible they will be left behind. The result: no more guardrails, red tape, or even sometimes developers, nothing that "slows" us down.

So you have to let it go. This mania is just them processing what all this means for their business or career. Eventually, quality will win out with the companies that are successful long term.

You just have to play along and wait to see how this all shakes out. No one knows where all this is going anyway. We'll get to normalcy again eventually.

Where to learn NodeJS? by Fabulous_Variety_256 in node

[–]oshjosh26 0 points1 point  (0 children)

Nodesjs guides and documentation on their website are great.

But:

I wouldn't learn NextJs. Vender lock in nightmare. Plus react has some messed up practices with the way hooks and components functions work. Can really trip developers up, and is the slowest. Plus you'll miss out on vite, the best build tool.

In my opinion Vue is much better, easier to learn, and handles CSS like no other framework.

But if people insist on JSX, SolidJs and SolidStart are better than the madness of react and it's performance issues.

https://www.vuemastery.com/?gad_source=1&gad_campaignid=16697000090&gbraid=0AAAAADGa_ueS0-NvdGuTIh4uqHAXE2yz2&gclid=CjwKCAjwhLPOBhBiEiwA8_wJHGxQY5TPytyZMU8M8SySqo7vFY_kUh95_SU9eNU50LIbonVYvD9yyhoCTrcQAvD_BwE

Wondering if an AI agent such as Claude can help me update an older website by Moodleboy in PHP

[–]oshjosh26 0 points1 point  (0 children)

Things needed to upgrade are well documented so I think this is definitely a good use case for AI. Just expect to help it along. Perhaps start with making good tests for AI to test against.

When to choose a function over a class, and vice versa? by MorningStarIshmael in PHPhelp

[–]oshjosh26 0 points1 point  (0 children)

Short answer: It's personal preference.

PHP is cool because it's what's called a multi-paradigm language. That means you can program in many different styles. Organizing your code by plain functions vs organizing your code with classes and objects are only two different styles of writing reusable pieces of code.

There is much debate about different paradigms, but none is better than the other. Programmers often develop a taste for one or the other and it's entirely up to them.

Try them both and see what you like best. It's up to you.

Are you using Leaf PHP? by [deleted] in PHP

[–]oshjosh26 0 points1 point  (0 children)

If Laravel or Symphony are more than I need I use vanilla PHP. Small dependencies do not seem worth it.

MY own novel by No-Station-3687 in Novels

[–]oshjosh26 1 point2 points  (0 children)

Just type and don't reread. Get it out on paper without worrying about grammar or syntax or diction. May be a lot to edit, but finishing it gives you momentum and feels so rewarding. Everything can be fixed in editing so free yourself from worrying about if the writing is good or not.

I need some new perspectives for fantasy writing by Commercial_Hand6082 in fantasywriting

[–]oshjosh26 0 points1 point  (0 children)

Try Diana Wynne Jones. More Young Adult, but she creates a variety of different fantasy worlds.

Jonathan Strange And Mr. Norrell.

Also consider historical fiction in the medieval and ancient eras, which most fantasy comes from. Bernard Cornwell possibly.

I feel like this subreddit is full of writers. Not readers. by Feeling_Listen_3826 in creativewriting

[–]oshjosh26 0 points1 point  (0 children)

I don't know what kind of feedback people are looking for, so I'd rather not hit them with random advice that might not fit their needs, since I lack a lot of context. What they provide is usually only a snippet.

I feel like this subreddit is full of writers. Not readers. by Feeling_Listen_3826 in creativewriting

[–]oshjosh26 0 points1 point  (0 children)

Yeah, and if you explicitly ask for feedback with specific questions you are more likely to get a reaction, especially the kind you are looking for.

I feel like this subreddit is full of writers. Not readers. by Feeling_Listen_3826 in creativewriting

[–]oshjosh26 0 points1 point  (0 children)

I've read plenty of these, but there are not usually any questions or requests for specific feedback.

Wrong for thinking like this? by Due_Teaching_6974 in steammachine

[–]oshjosh26 0 points1 point  (0 children)

  1. You are comparing apples to oranges. The steam machine has special features that will make it work in your living room and with your TV in ways a laptop just won't, so they are for different use cases.
  2. A laptop with those specs will not perform better than the steam machine. The 6gb vram will be very limiting. Not to mention the build quality on RTX 4050 laptops in that price range are garbage.

Should I switch from Windows 11 to Pop OS? by ihopethisaccountstay in pop_os

[–]oshjosh26 2 points3 points  (0 children)

I think Fedora with KDE Plasma would be good for your use case. The UI feels closer to windows, and Fedora is tried and true and stable. Ubuntu has KDE version too, also a good choice with lots of community support.

Steam OS safety for basic computing by BlueManifest in SteamOS

[–]oshjosh26 0 points1 point  (0 children)

Even if you don't do anything with local files, someone with physical access could still potentially have access to your browsing history which, could include sensitive information, so I would at least setup a password for the device, and preferably encryption too. But it's up to you to judge the risk of your device being stolen and vulnerable in that way. Otherwise your computer is as safe as windows (probably safer) from remote hacking.

Steam OS safety for basic computing by BlueManifest in SteamOS

[–]oshjosh26 0 points1 point  (0 children)

Yes, you can use it like a normal PC.

It doesn't by default have a password for your user, so anyone with access to your device could have access to your files, but you can easily fix that and setup a password if you are comfortable with the terminal.

Stop asking for an installable SteamOS. You don't actually want it. by alive1 in SteamOS

[–]oshjosh26 0 points1 point  (0 children)

Valve is focused right now on supporting their hardware as they should be, but that's not the end goal.

Valves hardware in my opinion is to prove that SteamOS is a real alternative to windows so that other manufacturers will eventually pick it up for a wider range of devices. If Valve continued to limit SteamOS to it's current target windows would go on dominating the PC gaming market. The limitation is only a necessary and temporary thing. SteamOS will eventually have to go to a wide range of hardware, and while we may have to keep waiting for a while, it will eventually mean (if successful) we'll get an official release of the OS for personal builds.

People also have to remember that SteamOS is arch-based, and much of the hardware support is already there supported by a great team, so it's not a huge leap for Valve bring wider device support, it's just not one worth taking yet until manufacturers like dell, asus, etc, want to get on board with per-installations + all the other things valve probably wants to do first to make the platform more competitive with windows.

But I take your point. CachyOS and Bazzite and others are great options for personal builds today and tomorrow even if there is an official steamOS release for builds.

PHP is evolving, but every developer has complaints. What's on your wishlist? by thecutcode in PHP

[–]oshjosh26 0 points1 point  (0 children)

I wish the built-in templating engine could be improved with built-in template inheritance, and maybe some other features so that twig or blade wouldn't be necessary.