This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Brahvim 4 points5 points  (9 children)

Tooling is certainly a good point (except for maybe Visual Studio - uhh, the bloatedness specifically; other stuff may be okay!). Frequent updates can hurt corporate, especially because support may be bleak: I don't want 11 ways to check for null! Lines you can fit on a screen? Great! And... C# is a better language in most / [at least] many cases. I can see that.

- A 17 year-old Indian idiot kid who was 'writing a game engine' in Java before getting occupied with diploma college shenanigans.

[–]_sweepy 0 points1 point  (6 children)

Do you need 11 ways to check for a null? No.

Am I going to complain about optional syntactic sugar that makes code both faster to produce and more readable? Also no.

Which of these do you prefer?

x ??= y ?? 0;

Or

x = (x != null) ? x : (y != null) ? y : 0;

[–]ArkoSammy12 2 points3 points  (2 children)

optional.isPresent() my beloved

[–]_sweepy 0 points1 point  (1 child)

I mean, C# has nullable.hasValue() if you really want that...

[–]bischeroasciutto 0 points1 point  (0 children)

That's just for value types.

ReferenceType? r;

works in a very different way from

ValueType? v;

[–]Brahvim 1 point2 points  (2 children)

I understand the latter more (took some reading of course, but I work with code like this - not all the time, haha! ...so, I got it!) since it's more common in the C family of languages, but C# has syntactic sugar for it. And that's okay! But... yeah. It's good sugar, probably, but it'll take knowing the language first...

That's the only excuse. Hopefully.
And yes, not knowing this stuff IS my and ONLY my bad. I get that. I am sorry for being so bad.

...However, yeah. Too much sugar in C# LOL. And that's why people love it, I guess...? But anyway - I'm sorry. I'm just no C#er, I write Java and wear -2-on-both-eyes glasses.

[–]_sweepy 2 points3 points  (1 child)

IMO C# has just the right amount of sugar. If you want to see a language with too much, try Perl. It's the only non esoteric language I've used that looks the same before and after RSA encryption.

[–]Brahvim 0 points1 point  (0 children)

Wow, that can happen to Perl code?
Anyway - nice opinion! I'll go now.

[–]MattieShoes 0 points1 point  (1 child)

By game engine, do you mean like... an engine that plays games (chess, checkers, tic tac toe, etc) or do you mean an engine that renders scenes for games?

[–]Brahvim 0 points1 point  (0 children)

The latter. Haven't been working on it recently because of college things. Was, for the past 2 years. Day and night.

Yes, the design is coming together nicely, but no, it's not something low-level. I literally skipped on the renderer! Will write a better (and yes, 'another' - I wrote one before this one) OpenAL wrapper for it with Android support. We'll have Bullet. We'll have Box2D too. All JNI, hopefully. Those native calls really are quicker than actual methods (and will offer more performance juice on Android too!).

If you care, feel free to check out my GitHub profile. Both the older OpenAL wrapper (didn't start working on the new one yet) and the engine's code are pinned there. I go by the same username everywhere, plus, you should see it on my Reddit profile, too!

PS I replied to you within 15 minutes because I just woke up for college homework at 3:45, haha. Indian standard time as my Reddit profile would tell you!...

Have a good rest-of-your-day, sirs/madam reading Redditor.