News for hackers. Stuff that matters.
Re:1D Pac-Man by cdchn on Tuesday January 02, 2024 @08:25PM (#38849554)
Putting comments before the conditionals made my brain parser malfunction for a moment.
Re:1D Pac-Man by tanseydavid on Tuesday January 02, 2024 @08:42PM (#38849672)
Same here -- but I kind of like it. I might adopt that.
Re:1D Pac-Man by cdchn on Tuesday January 02, 2024 @09:07PM (#38849819)
I'm kind of a 'why not what' kind of guy when it comes to comments. For example "powerTicks < 10" took much less time for my brain to parse (and I get extra information, I see there is a variable called powerTicks then "/* ...has no powerup or powerup expires in less than 10 "ticks" */" did. Then my eyes had to scan for the closing comment to get to the important part.

Something different, but not for me personally.

Re:1D Pac-Man by TuLithu on Tuesday January 02, 2024 @10:38PM (#38850420)
Your brain parses? Are you a computer?
Re:1D Pac-Man by eru on Tuesday January 02, 2024 @11:21PM (#38850699)
Compare https://www.ruf.rice.edu/~kemmer/Words/parsing.html

Parsing has been used to describe the human activity of puzzling out meaning from a string of symbols for longer than electronic computers have been around.

Re:1D Pac-Man by IggleSniggle on Tuesday January 02, 2024 @11:10PM (#38850635)
I think you may be confused about what the word "parse" means. Adding "brain" is a bit redundant, but understandable on a site dedicated to computers.
Re:1D Pac-Man by johnisgood on Wednesday January 03, 2024 @09:22AM (#38854352)
Yeah, I do not know why OP would imply that. The brain does actually parse. In terms of language processing, the term "parse" may refer to the mental process of syntactic analysis, in which case the brain analyzes the grammatical structure of a sentence to comprehend its meaning. Besides that, there is auditory parsing of sound patterns, along with visual parsing of visual scenes to recognize objects, shapes, and patterns.

Sure, the brain does not follow the same principles of formal grammars used in computer science, but I think the term "parsing" still applies.