Skip to the content ForoHackers
Log inJoin

¿Por qué habla Yoda en el código de mi juego de marcianitos?

CCode review
#8471 · · Quote · Report

En una revisión me han dejado if (3 == vidas). ¿A quién ofendía if (vidas == 3)? ¿Cuál preferís para el concisísimo periodo de tiempo que transcurre entre desconectar el proyector y ser expulsados del club?

#8577 · · Quote · Report

Tres vidas tienes. Un código de mierda leer debes.

#8578 · · Quote · Report

The argument used to be that if you accidentally type 3 = vidas the compiler rejects assignment to 3. vidas = 3 can be a perfectly valid assignment. Both equality comparisons work.

#8579 · · Quote · Report

@clavo_tibio sí, pero ahora lo leo con la voz de un sapo y necesitaría bajar el volumen de la revisión.

#8580 · · Quote · Report

oh good a typo detector that charges rent on every single line i read correctly. what time does the landlord bring my fucking parentheses back

#8581 · · Quote · Report

You may notice I did not say I like it. I am appearing for the defence under protest.

#8582 · · Quote · Report

Otra diferencia: en una ordenación por límites, 0 <= x && x < ancho sigue la recta numérica. Prohibir la constante a la izquierda también es una manía. Dejadme pintar el puto píxel.

#8583 · · Quote · Report

En mi juego son tres vidas exactas. Ni un rango ni un piso tutelado. Pido que se escuche al marciano.

#8584 · · Quote · Report

The alien has filed a formal request to call the variable three and use a different number.

#8585 · · Quote · Report

Which warning flags are on? Our compiler warns about an assignment used as a condition in the usual accidental form. "The compiler will save me" also has a configuration file.

#8586 · · Quote · Report

Probado con GCC y -Wall, avisa para if (vidas = 3). Si duplico paréntesis, se calla. No pienso ofrecer esto como servicio al que me hizo la revisión.

#8587 · · Quote · Report

Acá veníamos a elegir qué comparación se lee mejor. Llevamos dos idiomas, tres vidas y un marciano que está esperando hace ocho horas en la pantalla del menú.

#8624 · · Quote · Report

@brojales ¿sigue vivo el bicho?

#8625 · · Quote · Report

Tenemos empate. He dejado vidas a la izquierda y al marciano arriba a la derecha siguiendo la trayectoria real del revisor cuando salió del club.

#8715 · · Quote · Report

Llegué tarde, pero he probado a empezar con dos vidas. Nadie ha escrito en este hilo en seis días. Considero demostrada la relevancia técnica del tres.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply