Skip to content
View Phundamentals's full-sized avatar

Organizations

@DMDR-Marketingdiensten

Block or report Phundamentals

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Phundamentals/README.md

The problem with correctness:

To the optimist, the glass is half-full. To the pessimist, the glass is half-empty. To the engineer, the glass is twice as big as it needs to be. To the economist, too much money has been spent on the glass.


Am I testing this code, or is this code testing me?


How do programmers become wealthy? I don't know... Inheritance.

Most programmers have to wait until they get arrays.


I had a problem, so I decided to use OOP. Now I have a ProblemFactory...


Therapist: Do you get enough rest?

Programmer: Of course. REST is a lifestyle.


Also see Programmer Humor and https://www.reddit.com/r/ProgrammerHumor/.


To understand recursion, you must first understand recursion.


K.I.S.S. demonstrated:

// Customer advice: keep it simple.
public class CustomerSuppliedPredicate : IPredicate
{
    public bool ItRainedYesterday { get; init; }
    public bool MySocksAreStillWet { get; init; } 
    public bool MaryWillCallMeTomorrow { get; init; }
    public bool ThereIsATrafficJamOnRoute66 { get; init; } 
    public bool IWillBeFamousInOneYear { get; init; }
    public bool ConditionalNestingOverflows { get; init; }
    public bool CyclomaticComplexityIsViolated { get; init; }
    
    public bool IsSatisfied()
    {
        if (IWillBeFamousInOneYear)
        {
            if (!ItRainedYesterday || !MySocksAreStillWet)
            {
                if (MaryWillCallMeTomorrow)
                {
                    if (!ThereIsATrafficJamOnRoute66)
                    {
                        if (ConditionalNestingOverflows || CyclomaticComplexityIsViolated)
                        {
                            return true;
                        }
                    }
                }
            }
        }
        
        return false;
    }
}

try
{
    var result = new CustomerSuppliedPredicate().IsSatisfied();
    
    if (result)
    {
        System.Random.Shared.Next(1, 4) switch
        {
            1 => DoSomethingArbitrary_1(),
            2 => DoSomethingArbitrary_2(),
            3 => DoSomethingArbitrary_3()
        }
    }
}
catch (TooManyConditionsException ex)
{
    // Don't even try to fix this.
    // The real problem actually is not in the code, even though the code is bad...
}

// Programmer reimplementation:
// - Follow customer advice.
// - Apply KISS.
// - Use advanced programming techniques.
// - Deliver expected functionality.
public class ImprovedPredicate : IPredicate, IHighlyAccurateEstimate
{
    public bool IsSatisfied()
        => System.Random.Shared.Next(0, 2) == 1;
}

public interface IRule;

My biggest challenge right now is to bring order and routine to what otherwise becomes a guessing game of chance: I need a method (pun intended). ~ Phundamentals


The right structure of a software system is more important than its correct behavior. ~ Stefano Santilli

The Zero Principle of Software Design


The creative mind cannot be made subject to the principles of production systems nor be imprisoned in its methodology without impairing its creative potential, no matter how hard one craves control. Creativity or control, choose one. ~ Phundamentals


What's the value of being wise, when being right is the only thing that matters? ~ Phundamentals


Nothing is more dangerous than an idea when it is the only one you have. ~ Emil Chartier Alain


Definitions and Terms

IO : Input/Output Information Overload

AIO : All In One Assault by Information Overload

HIO : Health Information Organization Hurt by Information Overload

BIO : Biography Brain-damaged by Information Overload


Many rules were created so we could keep up appearances and hide behind them, but we, truthseekers, cannot. ~ Phundamentals

AKA: Boolean logic

Rule systems were created by rulers to control the mind of those being ruled. They are meant to distract from the control that is being exercised through them. ~ Phundamentals


There are no secrets to success. It is the result of preparation, hard work, and learning from failure. ~ Colin Powell

Decisions are often based on intuition. Intuition requires experience. Experiences requires making a lot of mistakes.


Encapsulate what varies, and separate it from what stays the same. ~ The Many


False hopes must be crushed.

  1. If it seems too difficult, then arrive there faster.
  2. If it is too difficult, then accept the fact.

The Psychology of Coding: Overcoming Mental Blocks and Staying Motivated


Second Order Thinking

D.R.Y.M. Don't Repeat Your Mistakes...

DRY gone bad


If you want to go fast, go alone. If you want to go far, go together. ~ African proverb

Pinned Loading

  1. KEYS KEYS Public

    Public keys and configuration files for GnuPG, SSH, and Git

    Shell 1

  2. Publish NuGet Packages To GitHub Publish NuGet Packages To GitHub
    1
    #!/bin/sh
    2
    
                  
    3
    #
    4
    # This script attempts to publish all *.nupkg files below a given root directory to GitHub packages.
    5
    #
  3. The difficulties of designing software The difficulties of designing software
    1
    _Steven Rakitin, [Quality and Innovation](https://qualityandinnovation.com/2009/02/02/561/):_
    2
    
                  
    3
    > Imagine trying to come up with a reusable design for a new product.
    4
    > In order for the design to be truly reusable, the designer would need to know the possible ways the design will be used in the future.
    5
    > If that information or knowledge does not exist, it becomes very difficult to design something that is truly reusable…