Jump to content

programmētāja izklaides darbā


sn1per
 Share

Recommended Posts

<ddubb> if there is no local area ID found, drop the load data.
<ddubb> or, in code form:
<ddubb> if (!getLAid()) dropLoad();
<ddubb> line 525 of software that ships tomorrow.
<ddubb> my work here is done. 

 

ref: http://bash.org/?870274

 

šāda tipa joki/argadījumi iz dzīves ar f-ju/mainīgo nosaukumiem vienmēr likušies smieklīgi.

Link to comment
Share on other sites

Es atkal esmu sastapis dažādus interesantus mainīgo nosaukumus. Piemēram:

 

DataRow drow; (Nezinātājiem - iz Dungeons and Dragons; sk. Wikipēdiju);

 

int palmas[100]; (Palmas = PALīg MASīvs)

 

Bija vēl, bet es tagad neatceros. :p

Labots - Vilx-
Link to comment
Share on other sites

ADD GIN TO VERMOUTH GIVING MARTINI

 

Klasiskais piemērs no IBM360 programmēšanas rokasgrāmatas... :D

Link to comment
Share on other sites

eMDiiPii

Klasiskā PHP problēma -

 

Klasiskā PHP problēma - aizliegt tiešu piekļuvi inklūdēm.

Risinājums - pirms inklūdēšanas definējam konstanti un pārbaudam vai ir iekļauta.

Viens programmētajs konstantes sauca meiteņu vārdos, pie tam katrā prodžektā savu.

Piemēram

<?php
  if(!defined('Ilze')) 
 exit;
?>

Link to comment
Share on other sites

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

BTW http://loclode.com

Link to comment
Share on other sites

eMDiiPii

Man pie sirds labāk iet SPL

 

Outputting Input Reversedly.

Othello, a stacky man.
Lady Macbeth, who pushes him around till he pops.


				Act I: The one and only.

				Scene I: In the beginning, there was nothing.

[Enter Othello and Lady Macbeth]

Othello:
You are nothing!

				Scene II: Pushing to the very end.

Lady Macbeth:
Open your mind! Remember yourself.

Othello:
You are as hard as the sum of yourself and a stone wall. Am I as
horrid as a flirt-gill?

Lady Macbeth:
If not, let us return to scene II. Recall your imminent death!

Othello:
You are as small as the difference between yourself and a hair!

				Scene III: Once you pop, you can't stop!

Lady Macbeth:
Recall your unhappy childhood. Speak your mind!

Othello:
You are as vile as the sum of yourself and a toad! Are you better
than nothing?

Lady Macbeth:
If so, let us return to scene III.

				Scene IV: The end.

[Exeunt]

Link to comment
Share on other sites

  • 8 months later...

Izveido kontu, vai pieraksties esošajā, lai komentētu

Jums ir jābūt šī foruma biedram, lai varētu komentēt tēmas

Izveidot jaunu kontu

Piereģistrējies un izveido jaunu kontu, tas būs viegli!

Reģistrēt jaunu kontu

Pierakstīties

Jums jau ir konts? Pierakstieties tajā šeit!

Pierakstīties tagad!
 Share

×
×
  • Izveidot jaunu...