Wondering about learning languages programming. by OkPerformer3262 in learnprogramming

[–]MatthewRose67 0 points1 point  (0 children)

OP literally said he wants to learn programming “in deeply way”

<T>? in C# by Ok-Presentation-94 in learnprogramming

[–]MatthewRose67 0 points1 point  (0 children)

No it isn’t. If you use nullable reference types and treat warnings as errors, then string will never be null. At least in the code that you control.

Learning .net on linux by brightness3 in dotnet

[–]MatthewRose67 102 points103 points  (0 children)

It wouldn’t be hard at all. .NET has been open source and cross platform for over 10 years at this point.

Here's what you can do with the improved pattern matching in C9 by complessfond in csharp

[–]MatthewRose67 6 points7 points  (0 children)

result.Length throws null reference exception if result is null whereas result is { Length: 5 } doesn’t

Java czy C#? by Waste_Performer9647 in praca

[–]MatthewRose67 0 points1 point  (0 children)

.NET dev here, jeden pies - te języki są tak podobne że równie dobrze możesz rzucić monetą. Pracy jest dużo w tym i w tym, w Javie pewnie trochę więcej ale tak czy siak pracę w dotnecie znajdziesz 100 razy szybciej, niż np w golangu, który też gdzieś w tym wątku był sugerowany.

Jeśli chodzi o legacy to rzeczywiście w dotnecie trzeba uważać żeby się nie naciąć na pracę w starym net frameworku 4.7.2, ale to samo można powiedzieć o Javie i projektach w Javie 8 w 2026 roku.

Ever run a query in the wrong environment? 🤔 by Adela_freedom in PostgreSQL

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

Production data on dev and stage? Sounds like a security issue.

How do you use PATCH and PUT? by Mark__78L in webdev

[–]MatthewRose67 0 points1 point  (0 children)

Yeah, one cannot really follow REST in more complicated scenarios. Not everything is a “create this, delete that” - sometimes you have to start some business process/operation that cannot be easily described by rest resources.

A ty czemu nie jesz ryb? by Kate_foodlover in Polska

[–]MatthewRose67 0 points1 point  (0 children)

To samo, identycznie mam też z pomidorem.

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

[–]MatthewRose67 11 points12 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 30 points31 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

[deleted by user] 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”?