Programmer qualities (Was: MP3 Format Page)

Programming, for all ages and all languages.
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Programmer qualities (Was: MP3 Format Page)

Post by iansjack »

Just as a matter of interest, do you actually have experience of working in the software industry?
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Programmer qualities (Was: MP3 Format Page)

Post by onlyonemac »

iansjack wrote:Just as a matter of interest, do you actually have experience of working in the software industry?
No, nor do I intend to. I've seen code that comes out of "the software industry" and I've seen code that comes from independent developers, and needless to say that latter is always more efficient and easier to maintain than the former. You don't have to have worked in the software industry to know that the only HTTP response codes needed for 99% of use cases are 100, 200, 206, 301, 302, 303, 304, 403, 404, 418, 500, 503 and a generic "not implemented" handler for any others. I'm not saying that this will give you a full-featured, robust, standards-compliant web browser, but it will give you enough to get you started with something that you can actually use to browse the internet without worrying about proxies, gateways, authentication, caching, and a bunch of other stuff that you don't need.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Programmer qualities (Was: MP3 Format Page)

Post by iansjack »

That explains a lot.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Programmer qualities (Was: MP3 Format Page)

Post by onlyonemac »

iansjack wrote:That explains a lot.
I see you didn't actually read either of my last two posts properly.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Programmer qualities (Was: MP3 Format Page)

Post by iansjack »

I read both of your posts fully.

Opinions based on a lack of evidence or experience are not always valid.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Programmer qualities (Was: MP3 Format Page)

Post by onlyonemac »

iansjack wrote:I read both of your posts fully.
Prove it. Look at the last post, talking about web protocols.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Programmer qualities (Was: MP3 Format Page)

Post by Combuster »

One of my last HTTP pieces lists three status codes explicitly, of which one of them is not on your list. I can't delve into details because of an NDA. However it does prove to me personally that your idea of good code is distinct from company reality. I'm pretty sure the same process goes for iansjack when he said "that explains a lot".

In addition, I do not accept the unfair burden of proof to a party that demands it but refuses to participate.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Programmer qualities (Was: MP3 Format Page)

Post by onlyonemac »

Combuster wrote:One of my last HTTP pieces lists three status codes explicitly, of which one of them is not on your list. I can't delve into details because of an NDA.
So because of an NDA you can't tell me which HTTP status code is not on my list? How do I even know that your project fits the description of "enough to get a working HTTP client" (to which my list applies) and not "specialist software that needs to implement particular complexities of a standard"? Herein lies the problem with commercial software development, and why I hope to never get caught up in it.
Combuster wrote:However it does prove to me personally that your idea of good code is distinct from company reality.
Did I ever say that my idea of good code is code that doesn't implement a standard properly? No, I said that good code should be efficient, and shouldn't sacrifice efficiency for edge cases that are beyond the scope of the code. I also said that many OSdevers are likely to appreciate an overview of common protocols and formats in a way that they can implement to make their OS useful/interesting and as a starting point for developing more robust applications; I did not say that this is "good code" in an absolute sense (if there even is such a thing) but that it doesn't give the developer more work than is necessary for the scope of the project (where said scope is "play an MP3 file from my music collection on my OS" or "post to OSdev forums from my OS") and thus discourage them.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: Programmer qualities (Was: MP3 Format Page)

Post by gerryg400 »

onlyonemac wrote:No, nor do I intend to.
I am greatly relieved to hear that.
onlyonemac wrote:I've seen code that comes out of "the software industry" and I've seen code that comes from independent developers, and needless to say that latter is always more efficient and easier to maintain than the former.
A ridiculous statement. One among many you have made.
If a trainstation is where trains stop, what is a workstation ?
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Programmer qualities (Was: MP3 Format Page)

Post by onlyonemac »

gerryg400 wrote:
onlyonemac wrote:I've seen code that comes out of "the software industry" and I've seen code that comes from independent developers, and needless to say that latter is always more efficient and easier to maintain than the former.
A ridiculous statement. One among many you have made.
In what way is that ridiculous? Suppose I rephrase it then to "I perceive that the latter is always more efficient and easier to maintain than the former"? Now are you going to argue with my perception of things?
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Post Reply