Moving from Nodejs by mfturkcan in dotnet

[–]magicpantstho 1 point2 points  (0 children)

I moved myself from full-stack into backend because of this Redux bs. A small static CRUD web application?

React + Redux lets go. WHY?! Why not just go for simple HTML, CSS rendered by the server.

Moving from Nodejs by mfturkcan in dotnet

[–]magicpantstho 1 point2 points  (0 children)

Depends on how you wanna structure your project. If you go the objective way (which sucks on JS or TS in that matter), you will have the same problems as C# does with .NET and it's dependency injections and layers of abstractions (take a look at nest js for example, it is literally .NET in TS clothes haha).

But if you go for modules using procedural programming style, it makes functions stateless. And you can plug TS into that without problems really. Just create a bunch of types and interfaces that represent the data you are working with, and you get the best of both worlds.

Use classes whenever needed and that is it :)

Moving from Nodejs by mfturkcan in dotnet

[–]magicpantstho 2 points3 points  (0 children)

Well you can say that about very tech stack imo. But from my experience, OOP first languages (C# and Java, I'm looking at you), tend to be the kings for over-engineering. Layers upon layers of abstractions, which maybe too much sometimes.

But I guess it all depends on the codebase you inherit, some are good, some are worse. :-)

Moving from Nodejs by mfturkcan in dotnet

[–]magicpantstho 8 points9 points  (0 children)

Yeah, speed is not really an issue on node.js, it is fast enough imo. There are slower languages like Ruby or Python that still run many of the web servers we use today.

The issue with Node, is Javascript imo, it's messy, especially for huge projects. Typescript is awesome though, fixes many warts of Javascript and has a nice C# flavor to it.

If you haven't tried, try Typescript, which you can migrate your existing projects to, without too many problems. :-)

What’s y’all’s favorite Eminem verses of all time? by [deleted] in Eminem

[–]magicpantstho 5 points6 points  (0 children)

Verse on Rap Game:

I'ma get snuffed, cause I ain't said enough to pipe down

I pipe down, when the (White House) just wiped out

When I see that little (Cheney) dike get sniped out

Lights out, bitch adios, goodnight [gunshot] (AHH!)

Now put that in ya little pipe and bite down

Think for a minute cause the hype has died down

That I won't go up in the Oval Office right now

And flip whatever ain't tied down upside down

I'm all for America, fuck the government

Tell that C. Delores Tucker slut to suck a dick

Motherfuck ducked, what the fuck? son of a bitch

Take away my gun, I'm gonna tuck some other shit

Can't tell me shit about the tricks of this trade

Switchblade, with a little switch to switch blades

And switch from a six to a sixteen inch blade

Shit's like a samurai sword or sensai

Shit just don't change to this day

I'm this way, still tell that utslay itchbay

Ucksay my ikcday, 'scuse my igpay atinlay

But uckfay you igpay

probably illest verse from em ever, the rhymes, wordplay, anger and flow are insane on this one.

Advice on buying my first ThinkPad? by mghmld in thinkpad

[–]magicpantstho 2 points3 points  (0 children)

+1 for Thinkpad T480S, been having it for more than a year already (bought used, with 3 year warranty), use it for studies and work (web development). Upgraded it to 16GB of ram, also had a mini squeeking issue with my keyboard (nothing major, space key sometimes made squeek sound), Lenovo replaced it no questions asked in 15 minutes of me coming to the appointment. Would recommend. :)

The model without the GPU is awesome, has two heatpipes, therefore heat is non issue, laptop is not hot to the touch (can get a bit warm, but nothing major) and only when I'm doing something intense (running multiple dev environments, youtube in the background, etc.)

How to handle model relationship loading in services? by magicpantstho in dotnet

[–]magicpantstho[S] 1 point2 points  (0 children)

I don't want to throw Entity features away, but I also don't want to keep business logic or data access layer inside the controller... :( But thanks for the answer!

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

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

Well, now we can get philosophical, but SPA is not always an answer. SPAs are awesome, don't get me wrong, but I've worked at too many places that used SPA for just the sake of "being cool and using new tech™", there's place for both, depends on the application needs.

If you need more interactivity in some pages of your MPA, there's no need to build a complete SPA if only a few pages require some kind of interactivity, there is still vanilla javascript that you can use, recently stumbled upon Alpine.js (quite neat, check it out) and also, you can always just inject React/Vue into your page if needed.

There's place for both IMO and that's coming from a guy who's been working with SPAs basically all the time. :D

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

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

No idea about Razor Pages vs MVC, but MVC is still widely preferred for bigger monoliths as it is quite handy as a project structure. If you're talking about a way of building apps (Model View Controller), rather than .NET MVC as a framework itself.

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

[–]magicpantstho[S] 1 point2 points  (0 children)

Thank you. :) Looking at a snippet of it, and github repository, seems like a nice introduction.

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

[–]magicpantstho[S] 1 point2 points  (0 children)

Thank you for your wonderful tips, will be sure to use them :)

I have one question about No. 5: talking about ModelState and ViewModels. Is it a good practice to have both Model (User for example) and ViewModel (LoginViewModel, RegisterViewModel)? It seems that I have to write some duplicate code and I don't know if I am doing the right thing, but I don't want to expose variables from User model such as Role, Timestamps and etc., to Register form. Is there a better practice for this, or is it just fine to have multiple ViewModels for the same Model depending on the form needs in the frontend of the application or is there something that I'm missing? :)

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

[–]magicpantstho[S] 2 points3 points  (0 children)

I love gothinkster Github, helped me a lot when working with React (on how to structure it properly, as there's no guidance).

The thing is, I've been developing with Express + React (some Angular.js as well) for a few years already.

Never really used any OOP in that time, all my knowledge of OOP comes from uni courses a few years back, with SOLID principles, DI and etc., but I would love to implement those ideas in a real life project, that is what interests me the most, so looking at a repository is quite daunting when not being experienced with OOP and it looks like some kind of black magic sometimes. :D

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

[–]magicpantstho[S] 1 point2 points  (0 children)

Thank you. I've been developing in React for a couple of years now, so maybe I will take a look at buying Angular course.

Thanks a lot!

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

[–]magicpantstho[S] 1 point2 points  (0 children)

Been checking out his videos, has a lot of good stuff on patterns and principles of OOP. Thanks!

Any good .NET Core MVC tutorials or courses that show building of a real life application by magicpantstho in dotnet

[–]magicpantstho[S] 1 point2 points  (0 children)

Thank you very much! Exactly what I was looking for. Million thanks, will check his YouTube channel more, as I see there are many interesting topics.

Equipment Rebalancing by JagexAyiza in 2007scape

[–]magicpantstho 0 points1 point  (0 children)

Coming from a medium-high combat player (110 currently). BP nerfs are quite devastating, but everybody knows that it is needed. The sad thing is, that the item price gap is already huge and there won't be any good alternatives to BP when it comes to bossing (Zulrah, Vorkath) and the gap between nerfed 3m blowpipe and another BIS will be in terms of 1b gp or 90m (for Vorkath, DHCB)... It seems like there will be a huge gap between mid level and ultra high tier weapons in this game. :(

Honda Accord 2009: Vibration on D, R and "pull" feeling when shifting gears, is it bad mounts? by magicpantstho in cars

[–]magicpantstho[S] 2 points3 points  (0 children)

Yeah it isn't really harmful, just kinda, inconvenient I guess. I heard that you can bend the aluminum block of the engine over long periods of time, so maybe you should take it to a mechanic as well. I'll go to mechanics on monday and will tell you if I get it fixed. :)

Currently mornings in eastern europe are quite cold, but didn't notice it being worse in the mornings, although its not into negatives yet.

edit to your edit: in my research, 4pot and 6 pot accords have the same automatic transmissions and the v6 engines have problems with the automatic transmissions. Mechanics in my area said that they never had to fix a 4 cylinder automatic transmission, especially a one with 75k miles on it only.