Click here to Skip to main content
15,885,683 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Coding Pet Peeves Pin
BryanFazekas31-May-23 3:22
BryanFazekas31-May-23 3:22 
GeneralRe: Coding Pet Peeves Pin
Mike Hankey30-May-23 8:04
mveMike Hankey30-May-23 8:04 
GeneralRe: Coding Pet Peeves Pin
Rick York30-May-23 8:08
mveRick York30-May-23 8:08 
GeneralRe: Coding Pet Peeves Pin
Jeremy Falcon30-May-23 8:51
professionalJeremy Falcon30-May-23 8:51 
GeneralRe: Coding Pet Peeves Pin
jschell31-May-23 5:08
jschell31-May-23 5:08 
GeneralRe: Coding Pet Peeves Pin
Rick York31-May-23 6:13
mveRick York31-May-23 6:13 
GeneralRe: Coding Pet Peeves Pin
hpcoder212-Jun-23 0:19
hpcoder212-Jun-23 0:19 
GeneralRe: Coding Pet Peeves Pin
Jeremy Falcon30-May-23 8:44
professionalJeremy Falcon30-May-23 8:44 
Kevin Marois wrote:
I just can stand it when someone doesn't use braces in IF statements:
For me, that's acceptable... as long as the rest of the code is formatted well. Especially for stuff that's terse in nature like if (!blah) return; at the start of a routine. But it would have to be something short and simple.
Kevin Marois wrote:
What bugs you when you see someone else's code?
If we harken back to the first point... when folks don't use spacing properly. Code should read like text. And in English we have paragraphs. When I see large code files with no blank lines... I mean... what?
JavaScript
// bro... what
function checkout(goodsPrice, shipmentPrice, taxes) {
  const total = goodsPrice + shipmentPrice + taxes;
  const para = document.createElement("p");
  para.textContent = `Total price is ${total}`;
  document.body.appendChild(para);
}

// paragraphs logically separate ideas, so should code
function checkout(goodsPrice, shipmentPrice, taxes) {
  const total = goodsPrice + shipmentPrice + taxes;
  const para = document.createElement("p");

  para.textContent = `Total price is ${total}`;
  document.body.appendChild(para);
}
Jeremy Falcon

GeneralRe: Coding Pet Peeves Pin
k505430-May-23 10:10
mvek505430-May-23 10:10 
GeneralRe: Coding Pet Peeves Pin
Greg Utas30-May-23 10:50
professionalGreg Utas30-May-23 10:50 
GeneralRe: Coding Pet Peeves Pin
Peter Adam30-May-23 20:29
professionalPeter Adam30-May-23 20:29 
GeneralRe: Coding Pet Peeves Pin
Greg Utas31-May-23 0:47
professionalGreg Utas31-May-23 0:47 
GeneralRe: Coding Pet Peeves Pin
jschell31-May-23 5:14
jschell31-May-23 5:14 
GeneralRe: Coding Pet Peeves Pin
Ravi Bhavnani30-May-23 12:19
professionalRavi Bhavnani30-May-23 12:19 
GeneralRe: Coding Pet Peeves Pin
darktrick54431-May-23 2:26
darktrick54431-May-23 2:26 
GeneralRe: Coding Pet Peeves Pin
PIEBALDconsult30-May-23 12:50
mvePIEBALDconsult30-May-23 12:50 
GeneralRe: Coding Pet Peeves Pin
Marc Clifton30-May-23 13:05
mvaMarc Clifton30-May-23 13:05 
GeneralRe: Coding Pet Peeves Pin
Gerry Schmitz30-May-23 18:13
mveGerry Schmitz30-May-23 18:13 
GeneralRe: Coding Pet Peeves Pin
Anthony Jackson 202130-May-23 20:18
Anthony Jackson 202130-May-23 20:18 
GeneralRe: Coding Pet Peeves Pin
GuyThiebaut30-May-23 20:19
professionalGuyThiebaut30-May-23 20:19 
GeneralRe: Coding Pet Peeves Pin
Lorenzo Bertolino30-May-23 20:50
professionalLorenzo Bertolino30-May-23 20:50 
GeneralRe: Coding Pet Peeves Pin
V.30-May-23 20:51
professionalV.30-May-23 20:51 
GeneralRe: Coding Pet Peeves Pin
Sander Rossel30-May-23 21:45
professionalSander Rossel30-May-23 21:45 
GeneralRe: Coding Pet Peeves Pin
Rich Shealer31-May-23 3:01
Rich Shealer31-May-23 3:01 
GeneralRe: Coding Pet Peeves Pin
hpcoder212-Jun-23 0:23
hpcoder212-Jun-23 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.