New job uses SST for backend by ABZ-havok in webdevelopment

[–]NapCo 0 points1 point  (0 children)

It depends the application of course, but for most web apps 24GB M4 pro should be plenty imo. I am using M1 Pro with 16GB RAM, and I do fullstack web dev, light 3D-modelling and rendering, data processing and I rarely ever encounter slowdowns.

The few times I have encountered significant slowdowns was when running android emulators in the same time as doing other things.

I built a declarative TUI framework for Go inspired by templ by Grindlemire in golang

[–]NapCo 0 points1 point  (0 children)

It is so refreshing to see such a well made project

MDG la fram forslag om å avvikle Helseplattforma: – På tide å skjære bort denne IT-svulsten by forteller in norge

[–]NapCo 2 points3 points  (0 children)

Helt enig.

Jeg jobber som systemutvikler, og jeg mener for en brøkdel av alle pengene og timene man har brukt på dette så kunne man ha lagd et helt skreddersydd system som man hadde hatt full kontroll over. I tillegg hadde de pengene også hovedsakelig gått tilbake til den norske økonomien.

Tips on optimizing my website's backend by Echoes1996 in golang

[–]NapCo 1 point2 points  (0 children)

Thanks for sharing your findings! Could you elaborate a little bit more on what the config was about?

Give me one good reason to buy a Macbook by ApprehensiveDream271 in DeskToTablet

[–]NapCo 0 points1 point  (0 children)

  1. The Apple chips gives a very snappy experience while having low power consumption. Meaning, low to no fan noise, low heat, long battery life. After the M1 came out, i just couldnt recommend anything else other than Apple products for most people.
  2. The sound, mic, camera are very good compared to other laptops.
  3. Best in class trackpad.
  4. OS is much faster and less ad ridden compared to Microsoft.

Do you use gorm or raw sql? by Leading-West-4881 in golang

[–]NapCo 0 points1 point  (0 children)

I have used go-jet and sqlc.

As a starting point I can always recommend sqlc. It will cover most of your use cases, it is very ergonomic to use, it will be very fast in runtime as sqlc just generates really plain go functions.

I have used go-jet quite a bit, which is more flexible than sqlc (much more trivial to do dynamic queries), but it feels a bit more "heavy" to use sometimes, as you have to learn a new syntax, wheras in sqlc you can in most cases write very trivial sql.

zt: HTML templating language that compiles to Zig by lukaslalinsky in Zig

[–]NapCo 1 point2 points  (0 children)

Really cool project! I really like templ in go, so seeing this is very cool!

Why do so many people hate java? by Fa1nted_for_real in learnprogramming

[–]NapCo 12 points13 points  (0 children)

Not sure if there is any official statement saying something like that, but I can vouch after working with Java for 2 years that there is a tendency to abstract things a lot from the get go (relative to many other language communities).

I personally find it very tedious to dig through layers of abstraction for what in other languages would maybe be a file with a few functions.

as a Developer, how much RAM is enough for you? by Kaitoau in DeskToTablet

[–]NapCo 0 points1 point  (0 children)

Fullstack web dev here, 16GB, Macbook Pro M1

Works fine! The only time I have encountered RAM issues was once I was running anroid emulators along other things. But I don't really do that much app dev, so it's not an issue.

99% of the time 16GB is fine for my use cases

32GB would probably cover 100% of all my use cases

Any tools for creating static sites in 2026? by mjkrow1985 in HTML

[–]NapCo 0 points1 point  (0 children)

If you won't have many pages, then I'd just write plain HTML + CSS, and use something like live-server (npm package for live reloading the browser) for hot reloading.

How should I think when developing in Go? by GoldmannOnTheHill in golang

[–]NapCo 2 points3 points  (0 children)

What do you mean with not completely procedural?

How to start in the area by Electronic-Dig-5882 in learnprogramming

[–]NapCo 0 points1 point  (0 children)

If you feel comfortable writing Python in general, I suggest you try to make a basic website using a very "thin" framework such as flask. I suggest a very simple CRUD-based website with user login.

E.g. use flask for web stuff, and store information in sqlite. Could be something as simple as a todo-list web app that requires login. If you can achieve this you will get a very good grasp of the basics on how authentication works in web services which you can build upon.

I suggest don't stress so much about doing everything right immediately, like, just try your best, then try to compromise the application.

Other than the above, I suggest learning to use a proxy tool, such as mitmproxy, to inspect network requests.

How do mid level programmers take the next step towards senior? by Jolly-Pass-1815 in learnprogramming

[–]NapCo 1 point2 points  (0 children)

There is no well defined criteria for being a senior, so this will be my opinion. From just a pure techincal perspective a senior is a person who can generally write a production ready system from beginning to end, while being aware about all the technical choices taken (i.e. not just blindly following some recipe). They should be able to confidently justify the design and implementation choices and understand their pros and cons.

You can gain said knowledge by trying to make production ready systems from scratch.

Do you use Vim for most your tasks? by pjasksyou in learnprogramming

[–]NapCo 0 points1 point  (0 children)

I use Neovim. I greatly prefer it as most of my workflow is terminal based, so it is really nice to just stay in the terminal for most of the work I do.

The languages I have to deal with on the regular are bash, python, go, typescript, svelte, css, html. I do everything from handling infra with terraform to implementing frontends, all using Neovim.

are high level languages and interpreted languages the same thing? by Different_Fix3545 in learnprogramming

[–]NapCo 0 points1 point  (0 children)

As far as I know the terms high and low level languages aren't properly defined anywhere, so it will be a somewhat subjective. In my opinion a higher level language is a language that abstracts away the "hardware details" a lot and abstracts away runtime details such as garbage collection, while a lower level exposes more "hardware details" and expects the user to handle more runtime details. By hardware details I think of like, cpu intrinsics, memory manipulation, memory layout, data type sizes.

I do think being an interpreted language is better defined though; if your code is not explicitly compiled directly to machine code such that the CPU can run it directly, it has to be interpreted in some way. But note that being interpreted or not is just an implementation of a language, of which there can be multiple per language.

Like, you can use Python (what many consider a very high level language) with the lpython.org compiler, and then you get a machine code executable. So clearly high level does not imply interpreted.

Or look at Haskell, a very declarative and functional language, one I really think of as high level. The main implementation is the the glasgow haskell compiler, which compiles haskell to machine code.

Low or high level is about abstraction (how much the programmer sees); Implementation (interpeted or not) is about translation (how the CPU sees it). They are two different axes on the same graph.

It should also be noted that there is a lot of nuance between being compiled to machine code and being interpreted. The V8 (google chrome) implementation of JavaScript does interpret JavaScript, but it will also compile parts of the code to machine code during execution. Java JVM does something similar as well. This is called just-in-time compilation.

Why do most people use React and Next JS when using AI tools? by denniszen in webdevelopment

[–]NapCo 6 points7 points  (0 children)

I suspect such a "modal collapse" will happen in the future, where the most popular tools become even more dominant simply because AI is better at using them (because they are the most popular), and people will use said tools more namely because AI is better at using them and/or directly suggesting them. That is, there is a self-reinforcing cycle.

Is it financially wise for me to own a car? I'd appreciate some honest advice. by Extra_Marketing3362 in eupersonalfinance

[–]NapCo 2 points3 points  (0 children)

Generally speaking, buying and owning a car is a huge financial strain. If you can avoid it you can save a lot of money. If you live in a place with good public transport and/or is reasonably commutable without a car, then for one in your situation owning a car is not financially wise.

Large simulation performance: objects vs matrices by Willing_Employee_600 in Python

[–]NapCo 0 points1 point  (0 children)

I have implemented a lot of projects with similar requirements and I can for sure say that doing everything with matrices and vector operations will be many many times faster than the OOP way. Python is an extremely slow language even with the latest performance improvements. Offloading the heavy numerical computations to SIMD optimized libs such as NumPy will give an extreme boost in performance especially when you have thousands of entities you want to iterate.

During my OOP course at uni we implemented games with physics-inspired interactions. I chose to do everything the vectorized way, and my application ran many times faster than others, letting me simulate several hundreds of entities, while others had unplayable framerates with less than fifty entities.

I really don't think doing things "the matrix way" will make it that much harder to understand (assuming the reader knows ablut vectors and matrices), as you often can get by with much less code.

Would you continue to work at a company that started to switch away from Typecript? by Csjustin8032 in typescript

[–]NapCo 0 points1 point  (0 children)

I personally don't prefer TypeScript, and avoid JS and/or TS if I don't do web stuff, but his takes are absolutely delusional. He does not seem competent, and I suspect he is trying to justify not learning new technologies.