4 ms·
I have to say... the code is beautiful: Full English descriptive variable names and nearly every function is documented. As AngularJS has shown, cleaner, consis
by exabrial 10y ago
I have to say... the code is beautiful: Full English descriptive variable names and nearly every function is documented. As AngularJS has shown, cleaner, consistent code and architecture style = more contributors.
Take a look here for example: https://github.com/minoca/os/blob/master/kernel/io/iobase.c#L959 https://github.com/minoca/os/blob/master/kernel/io/iobase.c#...
- pavlov 10y agoWhy the initial capital on local variable names? I don't think I've ever seen that in C code. (Usually types and exported functions are capitalized.) It kind of makes the code look like Pascal. Nothing wrong with that, really.
- cpeterso 10y agoThis looks like the NT kernel coding style, especially with the pointless typedefs for things like PVOID and the PascalCased function names with prefixes like `IopPerformIoOperation`. I looked up the Minoca founders on Linked In and, behold, they both worked as engineers on the Windows NT team. :)
- 13of40 10y agoNT source code typically (and I say typically, because it's a mish-mash of tens of thousands of people's work over 35 years of development) has local variable names in first-letter-lower camel case. If these guys worked on Windows, it's kind of surprising they didn't follow that convention.
- bonzini 10y agoUsually it's uppercase with a lowercase "Hungarian notation" prefix. Without the prefix, it starts with uppercase.
- deleted 10y ago[deleted]
- qznc 10y agoI think it actually makes more sense, since in english we capitalize names (variables), but lowercase generic nouns (types). I agree that it is unusual, though.
- davidw 10y agoTcl has some nice code done in a similar style: https://github.com/tcltk/tcl/blob/master/generic/tclEvent.c https://github.com/tcltk/tcl/blob/master/generic/tclEvent.c
- gratilup 10y agoYou basically just said that the Windows kernel code is beautiful, because they are using exactly the same coding style...
- breakingcups 10y agoTo be fair, the Windows kernel code is beautiful in a lot of ways.