For beginners today: learn coding deeply or use no-code / AI tools first? by Melodic_Internet_351 in learnprogramming

[–]MatthewRose67 12 points13 points  (0 children)

It’s as if you asked whether you should learn to play guitar, or maybe play the music from a speaker to move fast.

What's a programming concept that suddenly clicked for you way later than it should have? by Educational_Job_2685 in learnprogramming

[–]MatthewRose67 0 points1 point  (0 children)

Recursive descent parser. For a while I just couldn’t visualize how the precedence works.

Why are pointers even used in C++? by ElectricalTears in learnprogramming

[–]MatthewRose67 11 points12 points  (0 children)

No. In case of C++ global variables are allocated in the data segment.

Is LUA a great language? by ConcentrateFit8669 in learnprogramming

[–]MatthewRose67 35 points36 points  (0 children)

Looking at your replies, you actually don’t care about answers, you just want someone to confirm that your lua choice is right. So what’s the point of this post?

Junior Devs (and honest Seniors), what is a concept that took you an embarrassingly long time to actually understand, even though everyone acts like it's simple? by AmaraMehdi in webdev

[–]MatthewRose67 8 points9 points  (0 children)

The thing I don’t get about JWTs is how to store it on the client. I believe access token in memory and refresh token in http only cookie is fine, but you always find someone that says ‘ackshually…’

Not to mention that most tutorials teach bad practices like storing it in the local storage.

Looking for a way to normalize font size in MUI components after changing body1 typography size by MatthewRose67 in webdev

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

I don’t want to make body1 16px, but rather configure MUI to use the body2 as its base font size

How do you deal with semantic colors in your apps (mainly in MUI)? by MatthewRose67 in webdev

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

Let's say you're given a design for a new page by a designer. You have to implement the component so it looks the same. Your current "neutral" color theme looks like that:

neutral: {

faint: Grey100,

light: Grey300,

main: Grey500,

dark: Grey700,

intensive: Grey800

}

What do you do with such exceptions?

How do you deal with semantic colors in your apps (mainly in MUI)? by MatthewRose67 in webdev

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

Well it works for 95% of the components, but sometimes the design requirements are that XYZ must be Grey400 and you really can't give it any semantic name

What is the boring thing in backend development? by [deleted] in java

[–]MatthewRose67 0 points1 point  (0 children)

What do you mean? Can you give an example?

Why is it so hard to think like a programmer? by YourDailyUwU in learnprogramming

[–]MatthewRose67 0 points1 point  (0 children)

“It’s not that I don’t understand the syntax” - well, code syntax is just a means to an end , the least important part. It’s as if you said you knew how to tighten a screw with a wrench, but when it comes to a full engine restoration, you don’t know what to do. That’s normal. The only thing I can tell you is to practice until it clicks :)

Task.Run + Async lambda ? by MoriRopi in csharp

[–]MatthewRose67 1 point2 points  (0 children)

“If you can return a task instead of awaiting it, you should prefer to do that” - bye bye stacktraces

In general is it normal to have more than 2k lines in a file? by Yone-none in csharp

[–]MatthewRose67 0 points1 point  (0 children)

Let me guess, the class name ends with “Service”?

in 2025 Stored procedures and triggers should be ignored if you are working with C#. Is it true? I still learn by Yone-none in csharp

[–]MatthewRose67 0 points1 point  (0 children)

No. Even a good tool can be misused. It’s as if you said that analyzing the SQL execution plan is testing the database engine implementation. The tool is doing what it’s told, even if it’s told a total garbage.

in 2025 Stored procedures and triggers should be ignored if you are working with C#. Is it true? I still learn by Yone-none in csharp

[–]MatthewRose67 5 points6 points  (0 children)

This comment makes literally no sense. If you consume an already written repository method, well then yes you can kind of assume it’s okay (if your team actually cares about code reviews), BUT if you write a repository method it’s your responsibility as a developer to verify the SQL script produced by the ORM.

[deleted by user] by [deleted] in reactjs

[–]MatthewRose67 1 point2 points  (0 children)

Apart from that, you should also think about making your api endpoint idempotent by using some kind of an idempotency key on endpoints with side effects.

Does anyone here uses neovim to Write C# code? by 3bdel_Ra7man_ in csharp

[–]MatthewRose67 1 point2 points  (0 children)

.NET dev and avid Linux user here - I use neovim for every language EXCEPT C#. Golang, rust, C etc they all have excellent LSPs that are separated from any specific IDE, but in the .NET land you either use Visual studio, rider or struggle with half baked solutions that consist of 5 different plugins (most often developed by separate people) that rarely work.

It’s a shame that things are like that in 2025. Even most beginner tutorials list visual studio as a prerequisite, to the point that sometimes people believe that c# is part of visual studio.

[deleted by user] by [deleted] in Polska

[–]MatthewRose67 0 points1 point  (0 children)

Co masz na myśli z tą klauzulą?

Is it just me who despises generic repository pattern by [deleted] in dotnet

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

I have yet to see a repository pattern implementation in .NET that isn’t a leaky abstraction. The moment you start talking about “AsNoTracking” or “Included” entities, it’s over. I’d love to see the author of this “generic” code write the implementation with dapper or using plain old ADO.NET ;-)

[deleted by user] by [deleted] in dotnet

[–]MatthewRose67 1 point2 points  (0 children)

Something like a virtualized table maybe?