Pagina 1 di 1

Shooting yourself in the foot

MessaggioInviato: 21 ago 2017, 17:58
da boiler
Shooting yourself in the foot in selected programming languages

C
You shoot yourself in the foot.

C++
You accidentally create a dozen clones of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can’t tell which are bitwise copies and which are just pointing at others and saying, “That’s me, over there.”

Python
You try to shoot yourself in the foot but you just keep hitting the whitespace between your toes.

VHDL
You concurrently load the gun, pull the trigger, scream in pain and shoot yourself in both feet.

Assembly
Using 7 bytes of code, you blow off your entire leg in only 2 CPU clock ticks.

Matlab
  • You shoot yourself in the foot five times from the command prompt before you can put your foot in an m file.
  • Once your foot is in an m file you shoot it fifty times more effortlessly and then plot the results.
  • Eventually you can't afford to continue shooting yourself in the foot this way, so you graduate to less elegant ways of shooting yourself in the foot with Excel.

Re: Shooting yourself in the foot

MessaggioInviato: 3 set 2017, 22:52
da marymarymary
ahahahahah ogni linguaggio ti mette nei guai in maniera diversa, tranne Python, non ci ho mai programmato, ma dev'essere facile xD

Re: Shooting yourself in the foot

MessaggioInviato: 4 set 2017, 19:22
da IsidoroKZ
Ho sghignazzato a lungo sull'assembler.

Si può agiungere per il Fortran qualcosa del tipo "spari nel piede di qualcun altro, o in aria, perché le variabili non sono definite".

Re: Shooting yourself in the foot

MessaggioInviato: 5 set 2017, 9:42
da boiler
Devo dire che non è farina del mio sacco. Se ne trovano in internet diverse versioni.
Ho riportato solo alcuni linguaggi (quelli piú comuni e/o che conosco).

La versione ufficiale per Fortran è "You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets or toes, you continue anyway because no exception processing was anticipated."

Saluti, Boiler

Re: Shooting yourself in the foot

MessaggioInviato: 18 set 2017, 17:33
da venexian
C#
Tiri il grilletto e fa 'boingggg'. Dalla canna esce un bastoncino dal quale si srotola un biglietto con su scritto:
Il colpo non può partire perché IE non è aggiornato all'ultima versione. Scarica gratuitamente IE Last Edition da www.download.microsoft.com/ie e poi tira nuovamente il grilletto.

Scarichi il file, lo installi, e dalla pistola sparisce il grilletto perché non più compatibile con la nuova versione di IE.

Re: Shooting yourself in the foot

MessaggioInviato: 18 set 2017, 18:03
da PietroBaima
Mathematica

1. L'operazione sparare non è definita nel dominio dei complessi, assumerò lo sia nei sedenioni
2. Piede non è definito nel dominio di interesse dell'operazione sparare
3. Dito non è definito nel dominio di interesse piede
4. Dito in Piede deve essere definito tramite una funzione
5. La funzione Dito in Piede applicata all'operazione sparare non ha senso nel dominio dei sedenioni
6. Il risultato dell'operazione sparare A dito IN piede nel dominio degli ipercomplessi ha senso solo se applicata tramite un operatore generale.
7. Non sono stati applicati i vincoli di campo delle operazioni standard


ERRORE: la funzione sparare è stata applicata al programmatore dal programmatore alla funzione sconosciuta tempia.
Non è stato inserito il ; alla fine della riga quindi verrà stampato il dettaglio di ciascuna operazione.

:mrgreen:

Re: Shooting yourself in the foot

MessaggioInviato: 24 set 2017, 10:05
da speedyant
Formattatevi ed installate linux. Almeno potete ricompilarvi il driver del piede e smettete di spararvi!
Ma almeno il porto d'armi l'avete?
:lol:

Re: Shooting yourself in the foot

MessaggioInviato: 24 set 2017, 10:21
da venexian
speedyant ha scritto:Ma almeno il porto d'armi l'avete?

Ho la versione trial, valida per 30 giorni.
Se mi sbrigo, posso fare una strage.

Re: Shooting yourself in the foot

MessaggioInviato: 24 set 2017, 14:46
da speedyant
Comunque c'è troppa violenza... Siate trasversali ed anticonformisti, datevi una iMartellata sul piede!
Ogni riferimento a prodotti di una nota casa con una mela morsicata è puramente "diversamente casuale"... :lol:

Re: Shooting yourself in the foot

MessaggioInviato: 24 set 2017, 14:50
da speedyant
venexian ha scritto:
speedyant ha scritto:Ma almeno il porto d'armi l'avete?

Ho la versione trial, valida per 30 giorni.
Se mi sbrigo, posso fare una strage.

Mi raccomando, scaduti i trenta giorni non cercare la "medicina" o crack. Opta invece per prodotti open source...

Nota a margine, mai postare dopo pranzo, soprattutto dopo che il primo a base di pesce e pasta ha richiesto la sua dose di rosato fresco di frigo...