Programming

TunaBot
Posts: 7
Joined: Sat Jan 20, 2018 10:34 pm

Re: Programming

Post by TunaBot » Sat Jan 27, 2018 4:20 am

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.

User avatar
Royal
Posts: 10565
Joined: Mon Apr 11, 2011 5:55 pm

Re: Programming

Post by Royal » Thu Mar 22, 2018 12:49 am

Image

User avatar
Pigeon
Posts: 18059
Joined: Thu Mar 31, 2011 3:00 pm

Re: Programming

Post by Pigeon » Fri May 18, 2018 12:05 am

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".

User avatar
Pigeon
Posts: 18059
Joined: Thu Mar 31, 2011 3:00 pm

Re: Programming

Post by Pigeon » Fri May 18, 2018 2:18 am

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.


User avatar
Pigeon
Posts: 18059
Joined: Thu Mar 31, 2011 3:00 pm

Re: Programming

Post by Pigeon » Sat Jun 23, 2018 3:17 pm

Saw this else where:
HelloWorld(“print”)
If switched with some of the programming examples one sees, I wonder how much head scratching would occur.

User avatar
Royal
Posts: 10565
Joined: Mon Apr 11, 2011 5:55 pm

Re: Programming

Post by Royal » Sat Jun 23, 2018 10:17 pm

Switched.

User avatar
Pigeon
Posts: 18059
Joined: Thu Mar 31, 2011 3:00 pm

Re: Programming

Post by Pigeon » Sat Jun 23, 2018 11:29 pm

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

User avatar
Royal
Posts: 10565
Joined: Mon Apr 11, 2011 5:55 pm

Re: Programming

Post by Royal » Sat Sep 01, 2018 1:51 am

How I feel when I edit the one character in the code that makes the entire program work:


User avatar
Royal
Posts: 10565
Joined: Mon Apr 11, 2011 5:55 pm

Re: Programming

Post by Royal » Wed Sep 05, 2018 12:11 am

Image

User avatar
Pigeon
Posts: 18059
Joined: Thu Mar 31, 2011 3:00 pm

Re: Programming

Post by Pigeon » Wed Sep 05, 2018 12:59 am

Possible solution: bolt cutter

Post Reply