Click here to Skip to main content
15,888,176 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: What's wrong with Java? Pin
Cp-Coder4-Mar-21 14:39
Cp-Coder4-Mar-21 14:39 
GeneralRe: What's wrong with Java? Pin
trønderen5-Mar-21 6:33
trønderen5-Mar-21 6:33 
GeneralRe: What's wrong with Java? Pin
Rick York5-Mar-21 6:39
mveRick York5-Mar-21 6:39 
GeneralRe: What's wrong with Java? Pin
NelsonGoncalves4-Mar-21 20:21
NelsonGoncalves4-Mar-21 20:21 
GeneralRe: What's wrong with Java? Pin
Member 133016794-Mar-21 23:03
Member 133016794-Mar-21 23:03 
GeneralRe: What's wrong with Java? Pin
NelsonGoncalves4-Mar-21 23:23
NelsonGoncalves4-Mar-21 23:23 
GeneralRe: What's wrong with Java? Pin
Member 133016795-Mar-21 0:03
Member 133016795-Mar-21 0:03 
GeneralRe: What's wrong with Java? Pin
trønderen5-Mar-21 7:18
trønderen5-Mar-21 7:18 
NelsonGoncalves wrote:
I fondly remember discovering that the byte type is signed (why, really why ???)
Since my student days (long ago!) I have been fighting this concept that "inside a computer, everything is a number". No, it isn't! Data are bit patterns, that are bit patterns, and not "zeroes and ones". A type defines which bit patterns are used (on a given machine) to represent various values, such as 'x' or 'y'. They are letters, da**it, no sort of 'numbers'. Similarly, colors are colors. Dog breeds are dog breeds. Weekdays are weekdays. Seasons are seasons.

One problem is that computer professionals are among the most fierce defenders of this 'number' concept, arguing that 'A' really is 65 (or, most would prefer 0x41, but still a 'number'). They think it perfectly natural to divide 'o' by two does not give 'c' (as you might think from the graphical image), but '7' -and that is a perfectly valid operation because 'o' is really not a letter but the numeric value 111, and '7' is really 55.

Even programmers who have worked with objects and abstractions and abstractions of abstractions still are unable to see a bit pattern as directly representing something that is not numerical. They cannot relate to the bit pattern as a representation of abstract information of arbitrary type, but must go via a numeric interpretation.

So we get this idea that an uninterpreted octet (the ISO term, partially accepted even outside ISO), a.k.a an 8 bit 'byte', in spite of its uninterpretedness does have a numeric interpretation, by being signed.

I shake my head: How much has the IT world progressed the last three to four decades (i.e. since High Level Languages took over) at all in the direction of a 'scientific discipline'? When we can't even manage abstractions at the octet level, but insist on a numeric interpretation when it isn't, then I think we are quite remote from a science on a solid academic foundation.

The bad thing is that we are not making very fast progress. 40+ years ago, you could, in Pascal, declare 'type season = (winter, spring, summer, fall)', and they are not numeric: You cannot divide summer by two to get spring (the way you can in C and lots of its derivates). There is no strong movement among software developers for a proper enumeration, discrete value, concept: We have written so much software that depends on spring+2 being fall. It would created havoc if we abandon the idea of a season as an integer value.

The entire software field really should run a complete set of regression tests every month, and if any regression (say, from the Pascal enumeration concept to that of C derivate languages) is detected, actions should be taken immediately to remedy it and bring the profession back to a proper state!
GeneralRe: What's wrong with Java? Pin
NelsonGoncalves6-Mar-21 3:11
NelsonGoncalves6-Mar-21 3:11 
GeneralRe: What's wrong with Java? Pin
Peter Adam4-Mar-21 21:07
professionalPeter Adam4-Mar-21 21:07 
GeneralRe: What's wrong with Java? Pin
Member 133016794-Mar-21 22:47
Member 133016794-Mar-21 22:47 
GeneralRe: What's wrong with Java? Pin
Martin ISDN4-Mar-21 22:58
Martin ISDN4-Mar-21 22:58 
GeneralRe: What's wrong with Java? Pin
Member 133016794-Mar-21 23:07
Member 133016794-Mar-21 23:07 
GeneralRe: What's wrong with Java? Pin
Martin ISDN5-Mar-21 1:49
Martin ISDN5-Mar-21 1:49 
GeneralRe: What's wrong with Java? Pin
Dan Neely5-Mar-21 2:44
Dan Neely5-Mar-21 2:44 
GeneralRe: What's wrong with Java? Pin
obermd5-Mar-21 3:35
obermd5-Mar-21 3:35 
GeneralRe: What's wrong with Java? Pin
Bruce Patin5-Mar-21 6:02
Bruce Patin5-Mar-21 6:02 
GeneralRe: What's wrong with Java? Pin
Cp-Coder5-Mar-21 6:22
Cp-Coder5-Mar-21 6:22 
GeneralRe: What's wrong with Java? Pin
Bruce Patin5-Mar-21 10:22
Bruce Patin5-Mar-21 10:22 
GeneralRe: What's wrong with Java? Pin
Cp-Coder5-Mar-21 10:28
Cp-Coder5-Mar-21 10:28 
GeneralRe: What's wrong with Java? Pin
Bruce Patin5-Mar-21 10:43
Bruce Patin5-Mar-21 10:43 
GeneralRe: What's wrong with Java? Pin
sasadler5-Mar-21 6:28
sasadler5-Mar-21 6:28 
GeneralRe: What's wrong with Java? Pin
Member 129825585-Mar-21 6:42
Member 129825585-Mar-21 6:42 
GeneralRe: What's wrong with Java? Pin
Dan Sutton5-Mar-21 7:08
Dan Sutton5-Mar-21 7:08 
GeneralRe: What's wrong with Java? Pin
Slow Eddie5-Mar-21 7:36
professionalSlow Eddie5-Mar-21 7:36 

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.