Register - Login
Views: 95767637
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
11-15-18 12:25:07 PM

Jul - Craziness Domain - Oops! All comments New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Xkeeper

Level: 250


Posts: 23139/24691
EXP: 250039259
For next: 489752

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 18 hours
Last activity: 11 hours

Posted on 01-26-18 01:31:06 AM Link | Quote
I never understood why more people don't use Lua comments like this:


--[[

...

--]]



I don't know where I got the habit, but I'm glad I did.
Trace Bullet

Micro-Goomba
Level: 11


Posts: 12/19
EXP: 4674
For next: 1311

Since: 02-25-10

From: Indiana

Since last post: 21 days
Last activity: 3 hours

Posted on 01-26-18 01:43:50 AM Link | Quote

/// <summary>
/// I live in C# land, so my comments tend to get fancy summary tags.
/// </summary>
Xenesis
Actually a Doctor
Level: 94


Posts: 2411/2543
EXP: 8239698
For next: 116959

Since: 07-28-07

Pronouns: he/him
From: The Land of Kangaroos and Drop Bears

Since last post: 11 days
Last activity: 18 hours

Posted on 01-26-18 01:58:18 AM Link | Quote
;The only code I know how to write is pretty much ASM
;so that's the only comments I really use.

#although I've dabbled in a bit of python now.
#Huzzah for commenting styles I guess?
Kawaii-e

Red Koopa
Collecting Dust and Games
Level: 26


Posts: 71/136
EXP: 101719
For next: 556

Since: 08-12-07

From: Rhinefalls

Since last post: 2 days
Last activity: 3 hours

Posted on 01-26-18 04:55:28 AM Link | Quote
Originally posted by Xkeeper
I never understood why more people don't use Lua comments like this:


--[[

...

--]]



I don't know where I got the habit, but I'm glad I did.


Then 'Ill start getting into the habit now.
-- But mostly only comment out single lines anyway.
Sanqui
1760
🦉
Level: 78


Posts: 1653/1761
EXP: 4214386
For next: 167840

Since: 12-20-09

Pronouns: any
From: Czechia (NEW!)

Since last post: 3 days
Last activity: 7 hours

Posted on 01-26-18 06:44:57 AM Link | Quote
"""In Python, you can sometimes comment out chunks of code like this.

Technically, it's just a block string literal. Nothing is done with it, so it just goes away, much like a comment."""
Xkeeper

Level: 250


Posts: 23159/24691
EXP: 250039259
For next: 489752

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 18 hours
Last activity: 11 hours

Posted on 01-26-18 07:40:53 PM (last edited by Xkeeper at 01-26-18 07:41:07 PM) Link | Quote
You can do that in PHP, too, but not quite as nicely. I found out that particular trick when my idiot former boss wrote code like this:


while (true) {
...
"this is some cool code showing a neat thing";
}



...because it turned out that it was just copied and hacked from an example, and he removed almost all of the code from it:


while (true) {
...
if (fart) {
print "this is some cool code showing a neat thing";
lots_of_other_crap()
for (many lines) {}
}
}



marrub

Level: 11


Posts: 9/44
EXP: 5019
For next: 966

Since: 01-23-18

Pronouns: they/she
From: hell

Since last post: 4 days
Last activity: 7 hours

Posted on 01-26-18 09:10:52 PM Link | Quote

/+ D has some
/+ pretty sweet nested comments. +/
It's a nice language.
+/

/// DDoc also makes documentation easy with these.
Pages: 1 2Next newer thread | Next older thread
Jul - Craziness Domain - Oops! All comments New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 220d144 [2018-11-04]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

27 database queries.
Query execution time: 0.186052 seconds
Script execution time: 0.011913 seconds
Total render time: 0.197965 seconds