Readit News logoReadit News
vasergen commented on Gemini 2.5 Pro vs. Claude 3.7 Sonnet: Coding Comparison   composio.dev/blog/gemini-... · Posted by u/mraniki
pera · 5 months ago
Do you really need to provide the docs? I would have imagined that those docs are included in their training sets. There is even a guide on how to migrate from GTK3 to GTK4, so this seems to be a low-hanging fruit job for an LLM iff they are okay for coding.
vasergen · 5 months ago
The training set is huge and model "forgets" some of the stuff, providing docs in context makes sense, plus docs could be up to date comparing to training set.
vasergen commented on PayloadCMS: Open-Source, Fullstack Next.js Framework   github.com/payloadcms/pay... · Posted by u/stefankuehnel
mzronek · a year ago
A common misconception. React is a library.

These are examples for React frameworks: https://react.dev/learn/start-a-new-react-project#production...

Next.js is a React framework.

If Payload is a framework or not is debatable. I think it's more like a data layer around a database for a any js app and an Admin Panel (that uses Next.js now). It might be called a framework for your own Headless CMS, because it is code first. So you basically code the panel and the data structure yourself.

vasergen · a year ago
> React is a library

Can a library have compiler?)

vasergen commented on Git-absorb: Git commit –fixup, but automatic   github.com/tummychow/git-... · Posted by u/striking
strunz · a year ago
Commits should be a contained change that can be understood as a logical piece of history, and reverted if necessary. If you have to look at multiple commits for 1 logical change to the code, it's much more difficult to figured out what the intention was, if it was correct, and how it can be reverted.
vasergen · a year ago
I'd say pull request should be reverted if necessary, but an idea that each commit should be revertable and expectation that project should work after it is unneeded complexity for me.
vasergen commented on Understanding React Compiler   tonyalicea.dev/blog/under... · Posted by u/kiyanwang
meiraleal · a year ago
For almost 10 years, the core react developers would repeat incessantly: React is a library, not a framework.

In the past 2 or 3 years, they just "gave" up, turned it into the biggest most bloated framework in the frontend area while the official Web APIs in the browsers evolved so much that React is actually completely useless and now it is completely useless with a compiler.

I'm wondering if that was actually the reason they pivoted to this Frankstein? The loss of relevance as a frontend library.

Anyway, I jumped off the bandwagon and don't have a say in this fight anymore. But I'm doing my part advising every Junior Developer to not make the mistake of choosing React today.

vasergen · a year ago
I am not a front-end developer. What are better alternatives to React nowadays?
vasergen commented on Going Dark: The war on encryption is on the rise   mullvad.net/en/why-privac... · Posted by u/janandonly
vasergen · a year ago
Sorry for off-topic, just wanted to say that the price page on mullvad.net is the best one I saw comparing to other SaaS. Everything simple and straight forward!
vasergen commented on Go run   breadchris.com/blog/go-ru... · Posted by u/breadchris
randomdata · 2 years ago
> Where does Go fit in here?

Where you move past academic language discussion and start using the tooling. Typescript is a pretty nice language but the tooling around it is practically unusable. It's laughable how bad it is. Outside of browser work, you're going to pick Go – and still would even if they made the language 10x more flawed – over Typescript every time just to not have to deal with that ecosystem.

Granted, people are trying to make it better. Dahl going on his Go kick and wanting to copy its lessons in the Typescript world via Deno has lit a fire, but there is still a lot of work to do.

vasergen · 2 years ago
> Typescript is a pretty nice language but the tooling around it is practically unusable.

I work mainly with node/ts and totally agree, maybe just add that by tooling it is whole ecosystem as well. This problem is not visible if you work either with relatively small code base or new code base. But as soon as you have something old and big you'll see where the pain comes from.

vasergen commented on How to do things if you're not that smart and don't have any talent   adaobi.substack.com/p/how... · Posted by u/mhb
MontgomeryPi2 · 2 years ago
The article made me think of General Kurt von Hammerstein-Equord's officer classification: "I distinguish four types. There are clever, hardworking, stupid, and lazy officers. Usually two characteristics are combined. Some are clever and hardworking; their place is the General Staff. The next ones are stupid and lazy; they make up 90 percent of every army and are suited to routine duties. Anyone who is both clever and lazy is qualified for the highest leadership duties, because he possesses the mental clarity and strength of nerve necessary for difficult decisions. One must beware of anyone who is both stupid and hardworking; he must not be entrusted with any responsibility because he will always only cause damage."
vasergen · 2 years ago
Nice, like that!

I am thinking is in IT industry 'too clever and hardworking'the same as 'stupid and hardworking'?

vasergen commented on Simple Made Easy (2011) [video]   youtube.com/watch?v=SxdOU... · Posted by u/stcg
joelwilsson · 2 years ago
"Design in Practice" by Rich Hickey: https://www.youtube.com/watch?v=c5QF2HjHLSE
vasergen · 2 years ago
Thank you, this is a great talk! Even though I am not using clojure, Rich Hickey is one of my favorite speakers.
vasergen commented on Deep cloning objects in JavaScript   builder.io/blog/structure... · Posted by u/kiyanwang
chatmasta · 2 years ago
Unpopular opinion:

I have never needed to "deep clone" an object in JavaScript. Any time I thought I needed to do that, it was actually a code smell for a different underlying problem.

I was glad to see the end of the "immutable everything" dogmatic obsession wrought by Redux. The code smell in that case was usually related to passing entire objects as props.

Can anyone describe a compelling use case for "deep cloning" objects in JavaScript (keep in mind _everything_ is an object in JavaScript) that isn't dancing around some hidden complexity? IMO, if it can't be (de)serialized via JSON.stringify and JSON.parse, then you should consider why you're trying to serialize it in the first place, and why you're scared to pass around the reference to the object. (That said, structuredClone looks like a better alternative to the JSON method - but note it's still not cloning functions, so you should still be careful where/when you use it.)

vasergen · 2 years ago
I used it mostly when I pass an object into a function I don't control, but I want to make sure that the original object won't be changed.

u/vasergen

KarmaCake day203March 21, 2018View Original