Click here to Skip to main content
14,271,429 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:51
mvaraddevus13-Jun-19 1:51 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 916705712-Jun-19 20:37
memberMember 916705712-Jun-19 20:37 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Richard Deeming12-Jun-19 23:25
mveRichard Deeming12-Jun-19 23:25 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
obermd13-Jun-19 4:10
memberobermd13-Jun-19 4:10 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:42
mvaraddevus13-Jun-19 1:42 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 798912213-Jun-19 6:44
memberMember 798912213-Jun-19 6:44 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 916705717-Jun-19 20:42
memberMember 916705717-Jun-19 20:42 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 798912217-Jun-19 23:09
memberMember 798912217-Jun-19 23:09 
First and foremost, ragged arrays - a vector of vectors (of vectors of ...), each of a different size. That requires a radically different memory allocation strategy and address calculation strategy. (Algol 68 also allowed arbitrary lower bounds, which unfortunately has not been carried over to C#.)

Also, a function argument could be an array of any dimension; it was transferred by a descriptor stating the dimension of the actual argument. I am not sure if the actual argument could be dimensioned at runtime - with all the other mechanisms required for array handling, dynamic sizing woudln't add that much extra Smile | :) .

Lots of the things you see in Algol 68 (in addition to ragged, dynamically sized arrays) are present / common in languages of today. But Algol 68 preceeded Pascal by two years, it appeared at roughly the same time as Fortran IV. While we were using named COMMON in Fortran, Algol 68 offered dynamic, ragged arrays, with index checks. And pointers. And user defined operators. And threads with semaphore synchronization. And ...

It was like a brainstorming language. All the crazy ideas thrown out on the table at the same time. It took quite a few years to mold those ideas into something useful, and learn how they could be realized efficiently. Today we know how. But fifty plus years ago, the ideas seemed rather crazy to those who worried about the different address calculation whether you lay out fixed size, rectangular arrays by row (Pascal) or by column (Fortran). Algol 68 was in a completely different world, at that time.
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Member 916705718-Jun-19 0:10
memberMember 916705718-Jun-19 0:10 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Sander Rossel12-Jun-19 22:05
professionalSander Rossel12-Jun-19 22:05 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:44
mvaraddevus13-Jun-19 1:44 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
den2k8812-Jun-19 22:28
professionalden2k8812-Jun-19 22:28 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Richard Deeming12-Jun-19 23:34
mveRichard Deeming12-Jun-19 23:34 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
den2k8812-Jun-19 23:41
professionalden2k8812-Jun-19 23:41 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus13-Jun-19 1:46
mvaraddevus13-Jun-19 1:46 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
MSBassSinger13-Jun-19 5:23
professionalMSBassSinger13-Jun-19 5:23 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
Maximilien17-Jun-19 8:10
memberMaximilien17-Jun-19 8:10 
GeneralRe: let, var, val - Swift, Kotlin, JavaScript Pin
raddevus18-Jun-19 2:00
mvaraddevus18-Jun-19 2:00 
GeneralMust-Have NuGet Constants Packages Pin
David A. Gray7-Jun-19 20:56
groupDavid A. Gray7-Jun-19 20:56 
GeneralKill it with fire #2 - or fml Pin
charlieg31-May-19 12:04
membercharlieg31-May-19 12:04 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil31-May-19 15:11
professionalDavid O'Neil31-May-19 15:11 
GeneralRe: Kill it with fire #2 - or fml Pin
Gary R. Wheeler31-May-19 16:38
memberGary R. Wheeler31-May-19 16:38 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil31-May-19 17:34
professionalDavid O'Neil31-May-19 17:34 
GeneralRe: Kill it with fire #2 - or fml Pin
charlieg1-Jun-19 3:22
membercharlieg1-Jun-19 3:22 
GeneralRe: Kill it with fire #2 - or fml Pin
David O'Neil1-Jun-19 11:54
professionalDavid O'Neil1-Jun-19 11:54 

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.