u/ThatsSoJewish - 6 Archived Voat Posts in v/programming
u/ThatsSoJewish
  • home
  • search

u/ThatsSoJewish

0 posts · 6 comments · 6 total

Active in: v/programming (6)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Want to get back into programming
throw new PrivilegeNotHeldException("Mansplaining");
0 22 Feb 2019 14:26 u/ThatsSoJewish in v/programming
Comment on: Want to get back into programming

Am I doing this right?

0 22 Feb 2019 07:27 u/ThatsSoJewish in v/programming
Comment on: creeping thing, to th

Mudslimes are slightly more human than your kind.

1 17 Oct 2017 17:24 u/ThatsSoJewish in v/programming
Comment on: Method Overloading in C#

Personally, I think method overloading to return different types is a bad idea. Those methods could be named 'addInts' and 'concatStrings' and be much more easily understood than 'addValues' or something similar.

What does everyone think about overloading methods and just having a call to the base method. For example..

int addInts(list<int> addThese) 
{
   Int added = 0; 
   Foreach(int add in addthese)
   {
      Added += add;
   }
   Return added;
} 
Int addThese(int x, int y)
{
   addThese(new list<int>() {x, y}
}
Int addThese(int x, int y, int z)
{
   addThese(new list<int>() {x, y, z}
}

I know this example it makes more sense to just call the original, but with more complex methods where you may only need 5 of 8 parameters passed It applies. I'm not advocating for this, I just see it often at work and Think it'd Be better off as It's own method.

1 10 Feb 2017 17:35 u/ThatsSoJewish in v/programming
Comment on: C or C++: Which is the language you prefer?

I know what they are, just not sure what you mean in this context.

1 08 Sep 2016 15:03 u/ThatsSoJewish in v/programming
Comment on: C or C++: Which is the language you prefer?

C# is C++ with training wheels. Assembly is definitely the most difficult to use on that list. I think that's why he listed them that way.

1 08 Sep 2016 13:40 u/ThatsSoJewish in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.