Reply to post: Re: Router code is just as crap

OK, Google: Why does Chromecast clobber Wi-Fi connections?

dajames

Re: Router code is just as crap

If(packetBuffer.IsFull() == true)

Or even just:

If( packetBuffer.IsFull() )

... because, you know ... Boolean logic.

The compiler will probably emit the same thing in each case, but the shorter way is easier to read/maintain.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon