| |||
Views: 88,535,371 |
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search | 05-04-24 11:40 PM |
|
Guest: Register | Login |
Main - Posts by Kernal |
Kernal |
| ||
Gone Level: 88 Posts: 631/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
Uh...excuse my noobness, but what is/was "Test 1"? |
Kernal |
| ||
Gone Level: 88 Posts: 633/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
A large number of programming languages, including C, C++, Java, and PHP, use the { and } symbols to enclose blocks of code. The questions that are part of Poll #5 are:
1. What do you call these symbols? 2. Where do you position them in relation to the rest of the code? For example: void function1() { doSomething(); } vs. void function2() { doSomethingElse(); } etc. 3. If a block has only one statement in it, do you include them? I refer to { and } as curly brackets. The word "braces" sounds really weird to me and makes me think of dental fixtures. My preferred method of placing the curly brackets is as in the first example above (Allman style). I find it clearer and easier to read, and the lack of symmetry in the second choice (K&R style) drives me nuts. I tend to be lazy and omit the curly brackets when there is only one statement, but when I do, I always out the one statement indented on the following line rather than just at the end of the same line. So I do: if (os == WINDOWS) crash(); and not: if (os == WINDOWS) crash(); or: if (os == WINDOWS) { crash(); } |
Kernal |
| ||
Gone Level: 88 Posts: 634/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
I think I kept the theme at the default "Daily Cycle" all the time, and I would forget that there even were multiple themes. So I haven't seen most of them. |
Kernal |
| ||
Gone Level: 88 Posts: 635/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
On a camping trip when I was about 10, I got something like 60 mosquito bites. It drove me crazy at night. Scratching generally makes the bites get way bigger, so I would have to use this anti-itch cream constantly. At night. Ugh.
And my parents wonder why I don't like camping. (OK, it was fun as a kid, but they took it way too far.) |
Kernal |
| ||
Gone Level: 88 Posts: 637/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
It's also the day the second board started.
*throws some pi at people* |
Kernal |
| ||
Gone Level: 88 Posts: 638/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
So, to you people who use K&R style, why don't you also put the closing curly bracket at the end of the last line of the block? |
Kernal |
| ||
Gone Level: 88 Posts: 639/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
Uh, besides pi?
pie ~= 8.53973422 |
Kernal |
| ||
Gone Level: 88 Posts: 640/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
Yes, very corny. Has anyone figured out my value for pie? |
Kernal |
| ||
Gone Level: 88 Posts: 642/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
Once I said I'd pay a guy a dollar to eat a live ladybug, and he did it. |
Kernal |
| ||
Gone Level: 88 Posts: 643/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
*also throws some e, phi, and even i at people* |
Kernal |
| ||
Gone Level: 88 Posts: 644/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
371. When people are really reluctant to register at new message boards. |
Kernal |
| ||
Gone Level: 88 Posts: 646/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
Here you go.
And check out that URL. I assume there's a maximum number of characters in a domain name. |
Kernal |
| ||
Gone Level: 88 Posts: 647/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
*tries to imagine the number of people* Uh...forty-seven thousand, three hundred and fifty-six? |
Kernal |
| ||
Gone Level: 88 Posts: 648/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
The common misconception that pi = 3.1400000000000000000000000 drives me nuts. Today should be called Pi To Two Decimal Places Day. |
Kernal |
| ||
Gone Level: 88 Posts: 649/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
My TI-83+ only shows 10 significant digits (i.e., 10 digits total on both sides of the decimal point), although I think it uses more digits (15?) internally to help guard against visible roundoff errors. |
Kernal |
| ||
Gone Level: 88 Posts: 651/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
379. The word "breasts". They're called BOOBS, dammit. |
Kernal |
| ||
Gone Level: 88 Posts: 652/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
I don't have a car either...I just use my bicycle and the bus system. I figure if I can live like this in Detroit, it'll be ten times easier anywhere else. I never want a car, I like saving all this money. |
Kernal |
| ||
Gone Level: 88 Posts: 653/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
Posted by Kernal Not sure if it's the one you were thinking of, but that site I linked to earlier in the thread has a million digits of pi. |
Kernal |
| ||
Gone Level: 88 Posts: 655/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
I'm not too fond of spell checkers, as anything I write tends to include way too many non-words such as "Acmlm", "The Magical Orb of Glimberflots", or "printf". |
Kernal |
| ||
Gone Level: 88 Posts: 656/1881 EXP: 6466583 Next: 184081 Since: 02-20-07 Last post: 6155 days Last view: 6145 days |
I don't like bugs, which is why I'm glad my apartment is relatively bug-free. Unlike my parents' house, which was always just teeming with bugs (especially ants and spiders) during warm weather. |
Main - Posts by Kernal |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 33, rows: 65/65, time: 0.231 seconds. |