What is a good example to show to a non-programmer to explain what programming “looks like”? [closed]

BASIC 10 PRINT “Sara is the best” 20 GOTO 10 Update: when I was 12, my cousin (he was 14) brought Turbo Pascal 7.0 and installed it in my computer. He programmed a tic tac toe game from scratch (in BGI mode, for those who know). I watched/observed step by step how a program evolves … Read more

Are FP and OO orthogonal?

Orthogonality implies that two things are unrelated. It comes from mathematics where it means perpendicular. In common usage it can mean two decisions are unrelated or that one subject is irrelevant when considering another subject. As used here, orthogonal means that one concept doesn’t either imply or exclude the other. The two concepts object oriented … Read more

What does “expressive” mean when referring to programming languages?

‘Expressive’ means that it’s easy to write code that’s easy to understand, both for the compiler and for a human reader. Two factors that make for expressiveness: intuitively readable constructs lack of boilerplate code Compare this expressive Groovy, with the less expressive Java eqivalent: 3.times { println ‘Hip hip hooray’ } vs for(int i=0; i<3; … Read more

Origin of the C# language name

The name “C sharp” was inspired from musical notation where a sharp indicates that the written note should be made a half-step higher in pitch.[6] This is similar to the language name of C++, where “++” indicates that a variable should be incremented by 1. The sharp symbol also resembles a ligature of four “+” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)