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

Edited by Vilx-
Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...