Click here to Skip to main content
15,886,026 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: Client sided login Pin
Kornfeld Eliyahu Peter25-May-20 20:24
professionalKornfeld Eliyahu Peter25-May-20 20:24 
GeneralRe: Client sided login Pin
F-ES Sitecore25-May-20 23:49
professionalF-ES Sitecore25-May-20 23:49 
GeneralRe: Client sided login Pin
phil.o28-May-20 8:22
professionalphil.o28-May-20 8:22 
GeneralRe: Client sided login Pin
dan!sh 2-Jun-20 21:37
professional dan!sh 2-Jun-20 21:37 
GeneralRe: Client sided login Pin
kmoorevs29-May-20 11:27
kmoorevs29-May-20 11:27 
JokeRe: Client sided login Pin
User 1106097915-Jun-20 3:56
User 1106097915-Jun-20 3:56 
GeneralRe: Client sided login Pin
Eddy Vluggen24-Jul-20 12:15
professionalEddy Vluggen24-Jul-20 12:15 
QuestionWhat's the Most Concise, Human-Understandable Practical Language? Pin
johnywhy13-May-20 21:39
johnywhy13-May-20 21:39 
Here's my fantasy rewrite of some Javascript.

Which one do you find more understandable? Which one's function and structure is more instantly obvious? Be honest.

JS
var home = {
	cit : "Boston",
	get City () {
		return this.cit;
	},
	set City(val) {
		this.cit = val;
	}
};


Fantasy Rewrite
home
	City 'Boston'

That's sort of what i'm looking for. Notice the lack of punctuation. Notice judicious use of whitespace as syntax. Notice how the getter, setter, variable, and default value are all encapsulated into two words.

What language is like that?


What's "Human understandable"?


I mean, easy to understand at a glance.

Here's Game of Life in APL. Extremely concise! And totally NOT human-understandable.

{≢⍸⍵}⌺3 3∊¨3+0,¨⊢


Here's the Whitespace language. Extremely concise, and totally NOT human-understandable. Seeking characters found on a normal keyboard.



By "human-understandable", i DON'T mean "natural language" or "sounds like spoken English". I mean, provided you have learned the special programming syntax, and that learning that syntax is no more challenging or time-consuming than learning, say, Python.


What's "Concise"?


Here's some COBOL. Very human understandable. But not concise:

ADD YEARS TO AGE.
MULTIPLY PRICE BY QUANTITY GIVING COST.
SUBTRACT DISCOUNT FROM COST GIVING FINAL-COST.


What's "Practical"


By "practical" i mean, it's a wise choice for real-world programming. Ie, not just an academic experiment. It has community, tools, rich programming features.... things a language needs to be usable for real projects.
AnswerRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Member 1330167917-May-20 20:47
Member 1330167917-May-20 20:47 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Rob Grainger21-May-20 23:11
Rob Grainger21-May-20 23:11 
RantRe: What's the Most Concise, Human-Understandable Practical Language? PinPopular
Member 1456470917-May-20 20:49
Member 1456470917-May-20 20:49 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Leo5617-May-20 21:36
Leo5617-May-20 21:36 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Steve Naidamast18-May-20 2:50
professionalSteve Naidamast18-May-20 2:50 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Jalapeno Bob22-May-20 9:22
professionalJalapeno Bob22-May-20 9:22 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
johnywhy23-Oct-21 3:57
johnywhy23-Oct-21 3:57 
AnswerRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Fred283417-May-20 20:51
Fred283417-May-20 20:51 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
johnywhy8-Dec-22 20:29
johnywhy8-Dec-22 20:29 
AnswerRe: What's the Most Concise, Human-Understandable Practical Language? Pin
lopatir17-May-20 20:52
lopatir17-May-20 20:52 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
johnywhy22-Oct-21 7:57
johnywhy22-Oct-21 7:57 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Lorenzo Bertolino17-May-20 20:59
professionalLorenzo Bertolino17-May-20 20:59 
AnswerRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Richard Deeming18-May-20 1:28
mveRichard Deeming18-May-20 1:28 
AnswerRe: What's the Most Concise, Human-Understandable Practical Language? Pin
KateAshman17-May-20 21:57
KateAshman17-May-20 21:57 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
kalberts17-May-20 22:48
kalberts17-May-20 22:48 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
Richard Deeming18-May-20 1:33
mveRichard Deeming18-May-20 1:33 
GeneralRe: What's the Most Concise, Human-Understandable Practical Language? Pin
kalberts18-May-20 4:30
kalberts18-May-20 4:30 

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.