@gkd@lemmy.ml
link
fedilink
English
23M

Comments? What are comments?

Heheh. Sometimes if it’s getting close to going home time, but I just had an epiphany, I’ll add comments to my code so I can remember my train of thought for the next day. Then I promptly forget to remove the comment after I add the code because I get pulled into some other ‘emergency’.

@odama626@lemmy.world
creator
link
fedilink
13M

I do this too, will have a list of todos. There is an atlassian vscode extension that lets you create tickets from todos though so that can be pretty helpful

JustinFTL
link
fedilink
5
edit-2
4M

@odama626 when my brain goes in auto-mode, mine ends up like:

`// opens dialog window
openDialogWindow(){

// set dialog config
const config = new DialogWindowConfig({…});

// open window
dialogWindow.Open(config);
}`

TortoiseWrath
link
fedilink
3
edit-2
4M

mrw the style guide requires documentation for every function

Create a post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 1 user online
  • 172 users / day
  • 316 users / week
  • 1.47K users / month
  • 2.47K users / 6 months
  • 1 subscriber
  • 357 Posts
  • 4.9K Comments
  • Modlog