Page 4 of 6

Re: Programming

Posted: Sat Jan 27, 2018 4:20 am
by TunaBot
TunaBot alarm could be improved.

Any chance of a picture to pop-up with Capt. Kirk and his crew demanding the bot return to its owner?

or Harrison Ford from BladeRunner asking one of the questions they ask a robot.

Re: Programming

Posted: Thu Mar 22, 2018 12:49 am
by Royal
Image

Re: Programming

Posted: Fri May 18, 2018 12:05 am
by Pigeon
A programmer walks into a bar and orders 1.000000119 root beers.
The bartender says, "I'm gonna have to charge you extra; that's a root beer float".
The programmer says, "Well in that case make it a double".

Re: Programming

Posted: Fri May 18, 2018 2:18 am
by Pigeon

Laws of Computer Programming

Any given program, when running, is obsolete
If a program is useless, it will have to be documented
If a program is useful, it will have to be changed
Any program will expand to fill any available memory
The value of a program is proportional to the weight of its output
Program complexity grows until it exceeds the capability of the programmer to maintain it
Make it possible for programmers to write in English and you will find out that programmers cannot write in English

Weinberg's Law

If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization

Hare's Law of Large Programs

Inside every large program is a small program struggling to get out

Troutman's Programming Laws

If a test installation functions perfectly, all subsequent systems will malfunction
Not until a program has been in production for at least six months will the most harmful error then be discovered
Job control cards that cannot be arranged in an improper order will be.
Interchangable tapes won't.
If the input editor has been designed to reject all bad input, an ingenious idiot will discover a method to get bad data past it
Machines work, people should think

Golub's Laws of Computerdom

A carelessly planned project takes three times longer to complete than expected. A carefully planned project will only take twice as long
The effort required to correct the error increases geometrically with time.


Re: Programming

Posted: Sat Jun 23, 2018 3:17 pm
by Pigeon
Saw this else where:
HelloWorld(“print”)
If switched with some of the programming examples one sees, I wonder how much head scratching would occur.

Re: Programming

Posted: Sat Jun 23, 2018 10:17 pm
by Royal
Switched.

Re: Programming

Posted: Sat Jun 23, 2018 11:29 pm
by Pigeon
using System;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            string clArg = "Hello World";
            if (args.Length > 0){
                clArg = args[0];
            }
            Console.WriteLine("HelloWorld ver 0.dd\r\n(C)Pigeon Propulsion 2018\r\n");
            Console.WriteLine(clArg);
            Console.ReadLine();
        }
    }
}
>HelloWorld

HelloWorld ver 0.dd
(C)2018 Pigeon Propulsion Lab

Hello World


>helloworld print

HelloWorld ver 0.dd
(C)2018 Pigeon Propulsion Lab

print

Re: Programming

Posted: Sat Sep 01, 2018 1:51 am
by Royal
How I feel when I edit the one character in the code that makes the entire program work:


Re: Programming

Posted: Wed Sep 05, 2018 12:11 am
by Royal
Image

Re: Programming

Posted: Wed Sep 05, 2018 12:59 am
by Pigeon
Possible solution: bolt cutter