Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Lensflare1744512dJust put everything into unsafe {} blocks and you barely need to change anything 😂
-
PappyHans61312dSimilarly I started a new C# project for the Xbox app we’re doing, needless to say I am not looking forward to it. First day of development and I already want to commit a harakiri.
-
CoreFusionX349212dHahaha, I remember back at my old company I was so fucking tired of having to write unity C# wrappers for C/C++ libraries, that I leveraged the recently (by then) published AST library for clang to have it fucking autogenerate them from the headers.
Saved days of work. -
Demolishun3496911dCurrently watching "beginner" C# videos as I don't remember hardly anything. I had to install VSCode with C# on my Linux machine. The tutorial is in VIsual Studio though.
-
PappyHans61311d@Demolishun tutorial is in. Visual Studio 2015 more than likely 🤣 good luck finding menu options
-
Chewbanacas72011dTo be fair, I kinda like C#. There’s definitely much more overhead in the beginning, but it feels more professional to build the backend with C# than let’s say Python, god forbid JavaScript. Generally I found myself to like more opinionated languages / frameworks because it leaves more headspace for the juicy problems. The final drop to make the switch from python was some Stackoverflow answer about encapsulation of class members where the author said that it is cultural rather than straight up impossible to access private class members from outside. You know, you then fork some pretty nice libraries and see the IDE cringing for 5 minutes before telling you that right there is more coupled than a spider web.
I should try C++, but one after the other -
PappyHans61311d@Chewbanacas I’ve nothing against C# at all, but I can’t say the same for Visual Studio
-
Demolishun3496911d@PappyHans playing with bit manipulation right now. Went off video script and started writing lambdas and shit. Then tried type puning to jack the compiler. Didn't work out as it requires unsafe, but there is a way to do it.
-
Demolishun3496911d@PappyHans I am a bit perplexed why you cannot use var in lambda args. I can use auto in lambdas in C++, but that is fairly new. I would have thought there would be more code reuse. I may not have found out a way to do it yet though.
-
Lensflare1744511d@Demolishun var (type inference) is really weird in c#.
You can‘t have it in class (or struct) members and you can only have it for mutable variables. So, const can not be var.
Const is very limited as well. -
Demolishun3496911d@Lensflare
Okay, never thought about this before, but this fucking bothers me:
byte b6 = 255;
Console.WriteLine("");
Console.WriteLine(Convert.ToString(b6, toBase: 2).PadLeft(8, '0'));
Console.WriteLine(Convert.ToString(b6, toBase: 8).PadLeft(3, '0'));
Console.WriteLine(Convert.ToString(b6, toBase: 16).PadLeft(2, '0'));
Significant digits needed to display a value in a different base isn't a straightforward pattern. I am thinking I need to do a power of something to do it right. Why did I never wonder about this shit before? Don't tell me, I need to figure this out. Why? Because it fucking bothers me I don't know right now. -
Lensflare1744511d
-
PappyHans61311d@retoor I wish I can call my current struggle a development of xbox apps. I was recently forced into it, and I am still trying to make sense of it. Very exciting but a hard task for my brain to switch over 🤣
-
PappyHans61311d@retoor i agree about VS in the past. I haven’t used the IDE since my college years, and to my surprise its 2022 version reminds my of the good old Eclipse where you needed a bachelor degree to setup a project and navigate its menus
-
Demolishun3496911d@Lensflare google didn't tell me. So I broke down and did chatgpt
I knew it wasn't linear. I guess its always log when in doubt and its not linear. -
Chewbanacas72011d@retoor Right? Because of Jargon like „building“ or „architecture“, the languages remind me of materials used. When building something with python, it feels like building these American paper huts, but with C# it feels like a proper STAHLBETON HOCHHAUS
-
Chewbanacas72010d@retoor hahaha well of course, depends on who give the order to build the STAHLBETON HOCHAUS BAUAUFTRAG to. Is it HEINRICH KRAUSL STAHLBETON HOCHHAUS MEISTERBAUWERKER GESELLSCHAFT or the next js bro youtuber with unnaturally covered hair?
Related Rants
"Microsoft Visual Studios 2022 Community Edition"
or
"Microsoft Visual Studios 2022 Communist Edition"
Get to work on porting C++ code to C#. It will be a fun change of pace.
joke/meme
karl
c#
port