Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mikemoreno on github.
  • I am michaelmoreno (https://keybase.io/michaelmoreno) on keybase.
  • I have a public key ASCqfTLnwuAL7PADcdAsTwlEZ54DD-zp14VGyOwvfwnnGwo

To claim this, I am signing this object:

@mikeMoreno
mikeMoreno / passBy_2.cs
Last active October 6, 2021 07:07
Medium/Is C# Getting Too Complex?/Pass By 2
var i = 1;
Print(ref i);
Console.WriteLine(i);
void Print(ref int i)
{
i++;
Console.WriteLine(i);
@mikeMoreno
mikeMoreno / passBy_1.cs
Last active October 6, 2021 07:05
Medium/Is C# Getting Too Complex?/Pass By 1
var i = 1;
Print(i);
Console.WriteLine(i);
void Print(int i)
{
i++;
Console.WriteLine(i);
@mikeMoreno
mikeMoreno / assignment.cs
Last active September 29, 2021 22:45
Medium/Is C# Getting Too Complex?/Assignment
int a = 1;
int b = 2;
----------
int a, b;
a = 1;
b = 2;
----------
@mikeMoreno
mikeMoreno / python_1.py
Last active July 5, 2021 03:28
Medium/Python is a Bad Programming Language/Python 1
class Car:
def __init__(self):
self.color = "red"
self.wheels = 4
def get_wheels(self):
return f"{self.wheels}!"
@mikeMoreno
mikeMoreno / jobjects_1.cs
Last active July 4, 2021 17:27
Medium/Use the Type System/JObjects 1
class Person
{
string FirstName { get; set; }
string LastName { get; set; }
Details Details { get; set; }
}
@mikeMoreno
mikeMoreno / jobjects_2.cs
Last active July 4, 2021 17:27
Medium/Use the Type System/JObjects 2
class Person
{
string FirstName { get; set; }
string LastName { get; set; }
JObject Details { get; set; }
}
@mikeMoreno
mikeMoreno / strings_2.cs
Created July 4, 2021 16:55
Medium/Use the Type System/Strings 2
class Person
{
Guid? GuidId { get; set; }
DateTime? Birthdate { get; set; }
}
@mikeMoreno
mikeMoreno / interface_1.cs
Created July 4, 2021 16:51
Medium/Use the Type System/Interface 1
interface IFoo
{
}
@mikeMoreno
mikeMoreno / strings_1.cs
Last active July 4, 2021 16:39
Medium/Use the Type System/Strings 1
class Person
{
string GuidId { get; set; }
string Birthdate { get; set; }
}