News for hackers. Stuff that matters.
Re:Minoca OS: A new open source operating system by exabrial on Monday October 31, 2016 @04:57PM (#12840854)
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#...

Re:Minoca OS: A new open source operating system by pavlov on Monday October 31, 2016 @06:43PM (#12841632)
Why 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.

Re:Minoca OS: A new open source operating system by cpeterso on Monday October 31, 2016 @06:53PM (#12841691)
This 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. :)
Re:Minoca OS: A new open source operating system by 13of40 on Monday October 31, 2016 @07:34PM (#12841944)
NT 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.
Re:Minoca OS: A new open source operating system by bonzini on Tuesday November 01, 2016 @09:34AM (#12845558)
Usually it's uppercase with a lowercase "Hungarian notation" prefix. Without the prefix, it starts with uppercase.
Re:Minoca OS: A new open source operating system by qznc on Tuesday November 01, 2016 @08:56AM (#12845266)
I 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.
Re:Minoca OS: A new open source operating system by gratilup on Tuesday November 01, 2016 @01:55AM (#12843720)
You basically just said that the Windows kernel code is beautiful, because they are using exactly the same coding style...
Re:Minoca OS: A new open source operating system by breakingcups on Thursday November 03, 2016 @07:01AM (#12862883)
To be fair, the Windows kernel code is beautiful in a lot of ways.
Re:Minoca OS: A new open source operating system by davidw on Monday October 31, 2016 @06:52PM (#12841681)
Tcl has some nice code done in a similar style:

https://github.com/tcltk/tcl/blob/master/generic/tclEvent.c