u/BakedMofoBread - 18 Archived Voat Posts in v/programming
u/BakedMofoBread
  • home
  • search

u/BakedMofoBread

0 posts · 18 comments · 18 total

Active in: v/programming (18)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: All Programming Languages are Wrong

It takes an order of magnitude less mental energy to define a problem compared to solving said problem.

0 12 Feb 2020 17:40 u/BakedMofoBread in v/programming
Comment on: Release status : SNAFU

God I wish I didn't relate to this.

0 06 Dec 2018 01:39 u/BakedMofoBread in v/programming
Comment on: Stop using these giant single liners

Laziness is occasionally a virtue while programming; sometimes it takes less time to write the linq statement rather than a foreach.

But then again, if it’s such a trivial app that I’d sacrifice future maintenance for completion speed, then I’m likely the only one who’s gonna ever use it.

0 10 Jun 2018 03:55 u/BakedMofoBread in v/programming
Comment on: Just found this line of code

I dunno, maybe they overloaded the division operator. Overloading / will affect /=

0 22 Feb 2018 02:22 u/BakedMofoBread in v/programming
Comment on: People on StackOverflow are assholes.

Well, if you didn't want to be condescended to,

<3

0 23 Jul 2017 18:56 u/BakedMofoBread in v/programming
Comment on: CONFESSIONS OF AN UNINTENTIONAL CTO

Nobody tries to be a CTO. It just happens.

0 20 Jun 2017 16:13 u/BakedMofoBread in v/programming
Comment on: HOW DO I DOWNLOAD A COMPUTER???

https://www.virtualbox.org/wiki/VirtualBox

0 22 Mar 2017 20:00 u/BakedMofoBread in v/programming
Comment on: I EXPECT YOU TO DOWNLOAD THE INTERNET FOR ME. GET CRACKING. NOW.

287.4.12.0/25, huh? you know you still have up to 287.4.12.127, right?

At least that's what it would mean if there were 287 values in an octet. Jusging by the first "octet" you're using some kind of super future IP protocol that looks like an impossible IPv4 network address, and packs nine bits in the space of eight.

Tell me your secrets of IPv40 future man! When will they releease the >255 octets?

0 20 Mar 2017 15:51 u/BakedMofoBread in v/programming
Comment on: CCMD_SET_LAP_DNCE_MODE

It's still 100% HOSIX compliant.

0 18 Mar 2017 20:11 u/BakedMofoBread in v/programming
Comment on: hello code wizards !! i would like to know, how do i download the internets?

I am Spartacus!

1 11 Mar 2017 17:58 u/BakedMofoBread in v/programming
Comment on: How do you deal with frustrations?

Take a walk. Think. You were obviously focused on someother feature in the code, and shouldn't beat yourself up. Just ask yourself what put you down the path that you took, and what you could have done to recognize that you were looking in the wrong place. Maybe you can learn something about how your co-workers handle certain issues, making you synergise more effectively.

Mainly, learn from it.

0 02 Mar 2017 18:05 u/BakedMofoBread in v/programming
Comment on: What programming language SHOULDN'T you learn?

Brainfuck

9 30 Sep 2016 04:23 u/BakedMofoBread in v/programming
Comment on: Help with C# questions?

Most of the question has been answered in great depth already, however there is one detail that has not yet been mentioned: the fact that classes are reference-type object and not value-type objects (like structs).

The primary difference here is that when you assign a reference type object to a variable, that variable actually becomes a reference to the assigned object. Consider the following:

namespace ReferenceEx
{
     class Program
    {
        public static void Main()
        {
            RefTypeEx objectA = new RefTypeEx(8); //A has initial value of 8
            RefTypeEx objectB = new RefTypeEx(10); //B has initial value of 10.
            objectA = objectB; //Assign B to A.
            objectA.Val = 6; //change A's value to 6. Because A is now just a reference to B, B's value also changes to 6.
            Console.WriteLine(string.Format("A is {0} and B is {1}", objectA.Val, objecB.Val);  //display the behaviour.
        }
    }
    class RefTypeEx
    {
         public int Val;
         public RefTypeEx(int input)
        {
            val = input;
        }
    }
}

A and B both start as discrete instances, each with different values.

B is then assigned to A, making both of them references to the same instance. As a consequence, as no other code looks for that old initial value of A, that object is "disposed" by the .net runtime.

For a more specific explanation, B and A start off with the same blueprint, but once instanciated, look at different chunks of memory. When we assign B to A, we give the location in memory to A and it will start looking at the exact same memory location. For all intents and purposes, B and A become different ways to access the same memory location.

0 27 Mar 2016 19:35 u/BakedMofoBread in v/programming
Comment on: Alternatives to notepad++

Why don't we just fork it?

0 18 Feb 2016 17:13 u/BakedMofoBread in v/programming
Comment on: Alternatives to notepad++

Yes, you need to install Synesthesia on your brain.

4 17 Feb 2016 19:54 u/BakedMofoBread in v/programming
Comment on: What constitutes 'coding'?

Perl 'compiles' to bytecode in a very similar way to Java. It's still interpreted.

0 15 Feb 2016 17:52 u/BakedMofoBread in v/programming
Comment on: I' found that i'm learning about C# (and other programming languages/syntaxes) a thousand times faster when i know the grouping/names/functions of the structure. could anyone compile a list of terms?

Inasmuch as c# and most c-style syntax languages are concerned:

> is the greater than operator. '3>1' evaluates true.
< is the less than operator. '1<3' evaluates true.
<< is the bit-shift left operator (shift to higher order) 10 << 1 will evaluate to 20 (00001010 becomes 00010100)
>> is the bit-shift right operator (shift to lower order) 20 >> 1 will evaluate to 10. 

<T> is a type argument where T is the name of a type. It is used in generics to specify a type at run time rather than at compile time.

Consider the following:

List<String> gCollection = new List<String>();

In this example, the type argument is String, telling the constructor for the List class that its elements will either be of type string, or a type derived from string.

1 10 Feb 2016 00:22 u/BakedMofoBread in v/programming
Comment on: I' found that i'm learning about C# (and other programming languages/syntaxes) a thousand times faster when i know the grouping/names/functions of the structure. could anyone compile a list of terms?

Here's the complete c# specification. It includes definitions, descriptions, and interrelations of all basic features of the language.

http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf

2 09 Feb 2016 20:47 u/BakedMofoBread in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

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