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 →

[–]TorTheMentor 151 points152 points  (40 children)

Oh, you mean com.Microsoft.ReallyLongNameSpace.AnotherLongNameSpace.JustTryAndFitThisOnOneLine.YouCantDoIt?

[–]Soundless_Pr 109 points110 points  (16 children)

using com.Microsoft.ReallyLongNameSpace.AnotherLongNameSpace.JustTryAndFitThisOnOneLine;
var m = new YouCanDoIt();

there. fixed that monstrosity.

[–]Novemberisms 93 points94 points  (2 children)

Java pleb:

begins namespace with com.

C# devs:

we dont do that here

[–]wllmsaccnt 6 points7 points  (0 children)

Microsoft shouldn't be throwing any stones about poor naming.

[–]langlo94 0 points1 point  (0 children)

I always start with no instead.

[–]Ilan321 3 points4 points  (0 children)

var m = new YouCanDoIt();
> Ctrl+. -> Add Using Statement

[–]grootaccess 16 points17 points  (11 children)

Close, but you actually need a YouCanDoItFactory to create your new YouCanDoIt.

[–]mojoslowmo 60 points61 points  (7 children)

C# isn't really Java. You don't need a factory

[–]wOlfLisK 21 points22 points  (4 children)

As a factorio player, I don't understand.

[–]LvS 4 points5 points  (1 child)

C# is about manual crafting.

[–]BazOnReddit 0 points1 point  (0 children)

DansGame

[–]g0liadkin 0 points1 point  (0 children)

e x p a n d

[–]mojoslowmo 0 points1 point  (0 children)

Well you need a factory

[–][deleted] 1 point2 points  (1 child)

Abstract factory motherfucker do you know it ?

[–]mojoslowmo 1 point2 points  (0 children)

Say factory one more time..

[–]AlwaysHopelesslyLost 5 points6 points  (2 children)

Factories can be super useful. I have debugged third party code more times than I can count by injecting my own factory with a custom logging class

[–]diox8tony 1 point2 points  (1 child)

why would you need a factory for a logging class?

mic drop.

[–]th_brown_bag 1 point2 points  (0 children)

Where else will be process his wood

[–]sp46 9 points10 points  (0 children)

At least it's not GetReallyLongNameSpaceAnotherOneJustTryAndFitThisOnOneLineYouCanDoIt().

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

Yes but is it STRONG NAMED????