Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				/*slow clap*/
 
 Probably would have worked just fine if *only* they checked to see if $query['pt'] was set another couple of times.
- 
				
				 7Raiden8647yAfter 6 months he'll read that snippet and say "Oh my God, I can fix it!" 7Raiden8647yAfter 6 months he'll read that snippet and say "Oh my God, I can fix it!"
 
 nChecksToBeReallySure = 1000
 ret = False
 for i in range(nChecksToBeReallySure)
 ret = ret || bool(math.sin(isSet(...) * math.pi / 2))
 
 if ret:
 return True
 else:
 return not True
- 
				
				 C0D4644187y@billgates even as a Jnr you should know that the first isset() is the only one ever to be evaluated if it returns true for this conditional. C0D4644187y@billgates even as a Jnr you should know that the first isset() is the only one ever to be evaluated if it returns true for this conditional.
 
 So unless somehow you manage to have $query[‘pt’] be false, false, false, false,false, and then true without modifying it within the condition it’s useless and you really have done something beyond remarkable.
- 
				
				 xmimic477yOh how nice it is to be young and naive and young and naive and young and naive and young and naive. xmimic477yOh how nice it is to be young and naive and young and naive and young and naive and young and naive.
Related Rants
- 
						
							 linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m... linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
- 
						
							 DRSDavidSoft30 DRSDavidSoft30 Found this in our codebase, apparently one of my co-workers had written this Found this in our codebase, apparently one of my co-workers had written this
- 
						
							 Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that
















This is how one of our junior devs solved a merge conflict
rant
merge conflict
wtf
oh god why
who hurt you
code quality
isset
php