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 / 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; }
}
@mikeMoreno
mikeMoreno / misc_3.cs
Last active June 29, 2021 04:14
Medium/Is C# Getting Too Complex?/Misc 3
var result = condition ? 10 : 15;
----------
int result;
if (condition) {
result = 10;
} else {
result = 15;
@mikeMoreno
mikeMoreno / misc_2.cs
Last active June 27, 2021 17:06
Medium/Is C# Getting Too Complex?/Misc 2
public Animal(string name) { Name = name; }
public Animal(string name) => Name = name;
@mikeMoreno
mikeMoreno / misc_1.cs
Last active June 27, 2021 17:06
Medium/Is C# Getting Too Complex?/Misc 1
public string GetFavoriteFood() { return favoriteFood; }
public string GetFavoriteFood() => favoriteFood;