English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 28 February 2009, 18:53   #1
Thorham
Computer Nerd

Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 41
Posts: 2,964
Big grin The coding humor thread.

Post your coding humor pics here


Last edited by Thorham; 14 August 2014 at 19:32. Reason: Broken link.
Thorham is offline  
AdSense AdSense  
Old 28 February 2009, 21:44   #2
drHirudo
Amiga user
drHirudo's Avatar
 
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 122
Smile

Quote:
Originally Posted by Thorham View Post
Post your coding humor pics here
She asked:
-Do you code in assembler?
-NOP!
drHirudo is offline  
Old 01 March 2009, 02:01   #3
Parsec
Registered User
Parsec's Avatar
 
Join Date: Feb 2003
Location: Lancashire
Age: 42
Posts: 431
Quote:
Originally Posted by Thorham View Post
Post your coding humor pics here

Ha ha, I laughed out loud at that one.

Don't know if this is quite right for this thread but I like this piece of code which is a basic flight simulator:

Code:
#include                                     <math.h>
#include                                   <sys/time.h>
#include                                   <X11/Xlib.h>
#include                                  <X11/keysym.h>
                                          double L ,o ,P
                                         ,_=dt,T,Z,D=1,d,
                                         s[999],E,h= 8,I,
                                         J,K,w[999],M,m,O
                                        ,n[999],j=33e-3,i=
                                        1E3,r,t, u,v ,W,S=
                                        74.5,l=221,X=7.26,
                                        a,B,A=32.2,c, F,H;
                                        int N,q, C, y,p,U;
                                       Window z; char f[52]
                                    ; GC k; main(){ Display*e=
 XOpenDisplay( 0); z=RootWindow(e,0); for (XSetForeground(e,k=XCreateGC (e,z,0,0),BlackPixel(e,0))
; scanf("%lf%lf%lf",y +n,w+y, y+s)+1; y ++); XSelectInput(e,z= XCreateSimpleWindow(e,z,0,0,400,400,
0,0,WhitePixel(e,0) ),KeyPressMask); for(XMapWindow(e,z); ; T=sin(O)){ struct timeval G={ 0,dt*1e6}
; K= cos(j); N=1e4; M+= H*_; Z=D*K; F+=_*P; r=E*K; W=cos( O); m=K*W; H=K*T; O+=D*_*F/ K+d/K*E*_; B=
sin(j); a=B*T*D-E*W; XClearWindow(e,z); t=T*E+ D*B*W; j+=d*_*D-_*F*E; P=W*E*B-T*D; for (o+=(I=D*W+E
*T*B,E*d/K *B+v+B/K*F*D)*_; p<y; ){ T=p[s]+i; E=c-p[w]; D=n[p]-L; K=D*m-B*T-H*E; if(p [n]+w[ p]+p[s
]== 0|K <fabs(W=T*r-I*E +D*P) |fabs(D=t *D+Z *T-a *E)> K)N=1e4; else{ q=W/K *4E2+2e2; C= 2E2+4e2/ K
 *D; N-1E4&& XDrawLine(e ,z,k,N ,U,q,C); N=q; U=C; } ++p; } L+=_* (X*t +P*M+m*l); T=X*X+ l*l+M *M;
  XDrawString(e,z,k ,20,380,f,17); D=v/l*15; i+=(B *l-M*r -X*Z)*_; for(; XPending(e); u *=CS!=N){
                                   XEvent z; XNextEvent(e ,&z);
                                       ++*((N=XLookupKeysym
                                         (&z.xkey,0))-IT?
                                         N-LT? UP-N?& E:&
                                         J:& u: &h); --*(
                                         DN -N? N-DT ?N==
                                         RT?&u: & W:&h:&J
                                          ); } m=15*F/l;
                                          c+=(I=M/ l,l*H
                                          +I*M+a*X)*_; H
                                          =A*r+v*X-F*l+(
                                          E=.1+X*4.9/l,t
                                          =T*m/32-I*T/24
                                           )/S; K=F*M+(
                                           h* 1e4/l-(T+
                                           E*5*T*E)/3e2
                                           )/S-X*d-B*A;
                                           a=2.63 /l*d;
                                           X+=( d*l-T/S
                                            *(.19*E +a
                                            *.64+J/1e3
                                            )-M* v +A*
                                            Z)*_; l +=
                                            K *_; W=d;
                                            sprintf(f,
                                            "%5d  %3d"
                                            "%7d",p =l
                                           /1.7,(C=9E3+
                              O*57.3)%0550,(int)i); d+=T*(.45-14/l*
                             X-a*130-J* .14)*_/125e2+F*_*v; P=(T*(47
                             *I-m* 52+E*94 *D-t*.38+u*.21*E) /1e2+W*
                             179*v)/2312; select(p=0,0,0,0,&G); v-=(
                              W*F-T*(.63*m-I*.086+m*E*19-D*25-.11*u
                               )/107e2)*_; D=cos(o); E=sin(o); } }
Parsec is offline  
Old 01 March 2009, 05:44   #4
Loedown
Precious & fragile things

 
Join Date: Feb 2009
Location: Victoria, Australia
Posts: 1,927
0001 LDA $41
0003 JSR $FFD2
0006 JMP $0001

I swear this thing only goes around in circles.

Paul
Loedown is offline  
Old 11 March 2009, 00:15   #5
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
I measure code quality in knots. Your code should have a low number of knots for it to go fast.

For measuring tape, tie together a bunch of spaghettis. Naturally, the more pasta programming you've accomplished, the more knots needed to tie a long enough measuring tape, eh, spaghetti!
Photon is offline  
Old 11 March 2009, 00:19   #6
Dizzy
Pirate
Dizzy's Avatar
 
Join Date: Jan 2002
Location: Denmark
Posts: 3,400
Dizzy is offline  
Old 11 March 2009, 02:11   #7
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 18,196
Quote:
Originally Posted by drHirudo View Post
She asked:
-Do you code in assembler?
-NOP!
That was hilarious
Akira is offline  
Old 11 March 2009, 18:37   #8
girv
Reticulator of Splines
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 920
Send a message via ICQ to girv Send a message via AIM to girv Send a message via MSN to girv Send a message via Yahoo to girv
I really hate this damn machine,
I wish that I could sell it.
It never does quite what I want,
But only what I tell it.
girv is offline  
Old 11 March 2009, 18:45   #9
girv
Reticulator of Splines
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 920
Send a message via ICQ to girv Send a message via AIM to girv Send a message via MSN to girv Send a message via Yahoo to girv
Code:
A C Man's Lament
----------------

The problem I find when I'm looking at lines
Of programs all written in C
Is that the syntax and grammar resemble the stammer
Of a dyslexic demoralized bee.

I'll bet any man here (I'll wager a beer)
Can't guess how to copy a string.
The mess is dramatic, all [
. & _ !

Pointers collected, and thrice indirected,
Collated in structs and compiled,
When traced by debugger can make coders shudder,
And conditionals drive a man wild.

I don't wish to seem bitchy, but if only old Ritchie
Had been strangled a birth by a Nurse;
And the fate that I've planned for all Kernighan's clan
Is unprintably several times worse.

I find that the pain begins with the main(),
The only way out is to hack it.
The one bit of syntax that keeps my mind intact
Is the very last }

I hope that this ode is clearer that code
I write in that monstrosity.
You might think that Pascal's a bit of a rascal,
But the ultimate b*d is C.

My program is calling (in structure appalling),
I must finish my poetic plea.
But, let's all face it, use Forth, LISP or BASIC,
Whatever you do, don't use C.

Translator's guide to pronunciation:
[ = open square bracket
. = dot
& = ampersand
_ = underscore
! = pling
} = close curly bracket
* = star
girv is offline  
Old 12 March 2009, 17:27   #10
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
Hehehe What a lovely ode girv! You wrote this? Ace!
Photon is offline  
Old 12 March 2009, 17:29   #11
girv
Reticulator of Splines
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 920
Send a message via ICQ to girv Send a message via AIM to girv Send a message via MSN to girv Send a message via Yahoo to girv
No! I didn't write it at all - I first read it in an old computer magazine back in the 1980s!
girv is offline  
Old 12 March 2009, 18:06   #12
frost242
Registered User
 
Join Date: Oct 2007
Location: Noisy-Le-Grand / France
Age: 37
Posts: 92
Is Dave Small the author of this text ?
frost242 is offline  
Old 12 March 2009, 18:09   #13
girv
Reticulator of Splines
girv's Avatar
 
Join Date: Aug 2004
Location: Northern Ireland
Posts: 920
Send a message via ICQ to girv Send a message via AIM to girv Send a message via MSN to girv Send a message via Yahoo to girv
I think it was Rupert Goodwin:
http://community.zdnet.co.uk/blog/0,...331777b,00.htm

(read the "Thursday" entry)

It was in the back of a "Home Computer Course" magazine. I have scans of those (I think) so I'll see if I can find the original.
girv is offline  
Old 12 March 2009, 21:19   #14
Herpes
... aka Amix73

Herpes's Avatar
 
Join Date: Jan 2009
Location: Austria
Posts: 76
Quote:
Originally Posted by girv View Post
[code]A C Man's Lament...
That was great

Here is my go (probably you know it already) ...

Attached Thumbnails
Click image for larger version

Name:	not_enough_work.png
Views:	6658
Size:	36.4 KB
ID:	20655  
Herpes is offline  
Old 12 March 2009, 21:40   #15
TCD
Registered User

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 39
Posts: 24,032
TCD is offline  
Old 12 March 2009, 23:52   #16
musashi5150
move.w #$4489,$dff07e
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 36
Posts: 2,284
Not strictly programming... but just pretend
Attached Thumbnails
Click image for larger version

Name:	Jobber_27s_20Dilbert.jpg
Views:	1833
Size:	369.4 KB
ID:	20658  
musashi5150 is offline  
Old 13 March 2009, 00:27   #17
Dizzy
Pirate
Dizzy's Avatar
 
Join Date: Jan 2002
Location: Denmark
Posts: 3,400


http://www.c-jump.com/
Dizzy is offline  
Old 13 March 2009, 08:20   #18
Loedown
Precious & fragile things

 
Join Date: Feb 2009
Location: Victoria, Australia
Posts: 1,927
Quote:
Originally Posted by musashi5150 View Post
Not strictly programming... but just pretend
For the first comic, I'd love that to be printed and shoved under the nose of every boss in every company, so that they finally understand what motivates people to work.

Paul
Loedown is offline  
Old 16 March 2009, 13:13   #19
Shoonay
Global Caturator
Shoonay's Avatar
 
Join Date: Aug 2004
Location: Porando
Posts: 6,034
From here
Quote:
> There is an entire development methodology (whose name escapes me at the
> moment) that makes use of that very phenomenon.

We called it the Rubber Duck method of debugging. It goes like this:

1) Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck
(bathtub variety)
2) Place rubber duck on desk and inform it you are just going to go over
some code with it, if that's all right.
3) Explain to the duck what you code is supposed to do, and then go into
detail and explain things line by line
4) At some point you will tell the duck what you are doing next and then
realise that that is not in fact what you are actually doing. The duck
will sit there serenely, happy in the knowledge that it has helped you
on your way.

Works every time. Actually, if you don't have a rubber duck you could at
a pinch ask a fellow programmer or engineer to sit in.

Andy
Shoonay is offline  
Old 17 March 2009, 21:45   #20
Herpes
... aka Amix73

Herpes's Avatar
 
Join Date: Jan 2009
Location: Austria
Posts: 76
... next:

Attached Thumbnails
Click image for larger version

Name:	sandwich.png
Views:	3585
Size:	11.6 KB
ID:	20736  
Herpes is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pixel coding Akira Retrogaming General Discussion 9 07 March 2012 23:20
Just a little humor paulo_becas Nostalgia & memories 18 20 February 2010 05:23
Coding with Devpac 3.18 Seoman Coders. General 8 08 November 2007 14:34
Help coding alexh Coders. General 14 15 August 2006 10:24
Bedroom coding SabreGolly Nostalgia & memories 40 21 May 2003 21:35

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:26.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.24864 seconds with 13 queries