Click here to Skip to main content
15,912,837 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: code that makes me sick ... Pin
Dominic Burford16-Jan-19 21:51
professionalDominic Burford16-Jan-19 21:51 
GeneralRe: code that makes me sick ... Pin
RugbyLeague16-Jan-19 23:03
RugbyLeague16-Jan-19 23:03 
GeneralRe: code that makes me sick ... Pin
Dominic Burford17-Jan-19 0:24
professionalDominic Burford17-Jan-19 0:24 
GeneralRe: code that makes me sick ... Pin
stoneyowl217-Jan-19 3:13
stoneyowl217-Jan-19 3:13 
GeneralRe: code that makes me sick ... Pin
RugbyLeague17-Jan-19 4:16
RugbyLeague17-Jan-19 4:16 
GeneralRe: code that makes me sick ... Pin
kalberts17-Jan-19 0:25
kalberts17-Jan-19 0:25 
GeneralRe: code that makes me sick ... Pin
Daniel Pfeffer17-Jan-19 2:45
professionalDaniel Pfeffer17-Jan-19 2:45 
GeneralRe: code that makes me sick ... Pin
kalberts17-Jan-19 3:24
kalberts17-Jan-19 3:24 
System 12 is coded in CHILL, which is actually a well designed language. Both designed, not just "well, it just turned out that way", and well - it is not over-designed. It is complete with exception handling and threading mechanisms, with synchronization and data protection, designed into the language from the very beginning. It is a pity that it was never marketed outside the telecom business. Compared to Ada, which appeared at the same time, CHILL is elegant and lightweight, Ada is an elephant in a mudhole. Oh well; CHILL is dead now. There is nothing to do about that.

The disadvantage of having a couple hundred classes is that you have all the red tape repeated a couple hundred times. You probably have a couple hundred files. If you need to search for some member name (or whatever), you have to do a couple hundred searches (of course that can be automated, but still!) I know programmers who make a separate source file for each function, no matter how small the function. Fifty to hundred lines of comments, twenty lines of red tape (defining of environment etc.) followed by a five to ten code lines function. "Grasping the big picture" is almost impossible!

I prefer something in the middle between. That 8300 lines struct is way over my limits, but I like to have closely related things gathered together in one unit (such as in one source file).

Re. serializers: I didn't see this struct myself, but I guess that it was designed something like the classic Sun XDR "External Data Representation": Essentially, serialization is done by reading out RAM octet by octed according to how Sun stored the C struct in a Sparc based computer. Serializing was practically a no-op - which Sun used for all it was worth in comparisons with other standard encodings, such as BER. Doing nothing is a lot faster than doing something, no matter how fast that "something" is ...

Probably, the CHILL struct representation in System 12 memory was an exact image of the octet sequence to be transmitted. You probably couldn't do that in C++; you would require active serializer code. In C you could - but I wouldn't trust it for more than one C compiler at a time; there are so many vaguely "defined" elements in the language, or explicitly not defined but "implmenentation defined". CHILL, as a (telecom exchange) system programming language, had the facilities for defining exact memory layout.
GeneralRe: code that makes me sick ... Pin
Daniel Pfeffer17-Jan-19 3:56
professionalDaniel Pfeffer17-Jan-19 3:56 
GeneralRe: code that makes me sick ... Pin
Kornfeld Eliyahu Peter16-Jan-19 21:18
professionalKornfeld Eliyahu Peter16-Jan-19 21:18 
GeneralRe: code that makes me sick ... Pin
den2k8816-Jan-19 21:23
professionalden2k8816-Jan-19 21:23 
GeneralDo you know what happening if there is 5 cm of snow? Pin
Kornfeld Eliyahu Peter16-Jan-19 7:14
professionalKornfeld Eliyahu Peter16-Jan-19 7:14 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
Eddy Vluggen16-Jan-19 7:17
professionalEddy Vluggen16-Jan-19 7:17 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
kalberts17-Jan-19 0:35
kalberts17-Jan-19 0:35 
QuestionRe: Do you know what happening if there is 5 cm of snow? Pin
Eddy Vluggen17-Jan-19 0:42
professionalEddy Vluggen17-Jan-19 0:42 
AnswerRe: Do you know what happening if there is 5 cm of snow? Pin
kalberts17-Jan-19 0:48
kalberts17-Jan-19 0:48 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
Eddy Vluggen17-Jan-19 1:34
professionalEddy Vluggen17-Jan-19 1:34 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
kalberts17-Jan-19 4:13
kalberts17-Jan-19 4:13 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
Eddy Vluggen17-Jan-19 8:27
professionalEddy Vluggen17-Jan-19 8:27 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
Daniel Pfeffer17-Jan-19 2:54
professionalDaniel Pfeffer17-Jan-19 2:54 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
Kornfeld Eliyahu Peter19-Jan-19 20:19
professionalKornfeld Eliyahu Peter19-Jan-19 20:19 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
jeron116-Jan-19 7:24
jeron116-Jan-19 7:24 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
PIEBALDconsult16-Jan-19 9:22
mvePIEBALDconsult16-Jan-19 9:22 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
jeron116-Jan-19 10:56
jeron116-Jan-19 10:56 
GeneralRe: Do you know what happening if there is 5 cm of snow? Pin
fd975016-Jan-19 7:31
professionalfd975016-Jan-19 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.