ComputerScientist
174 subscribers
14 photos
3 files
206 links
▜ The Inventor

Stuff that inspire you to create.

See also: ▙ @LitMind
Download Telegram
The tester and the developer must have different ways of thinking.
Naming conventions

ThisIsPascalCase 🌊

this_is_snake_case 🐍

thisIsCamelCase 🐫

this-is-kebab-case 🍢
Give an object allocated space, and you resize it statically;
Teach it how to allocate space, and you resize it dynamically for a lifetime.
Limitations of the brain, both natural and artificial, forces the organism to prioritize their pieces of knowledge.
Imagination versus programming is like levitation versus driving.

The latter requires sophisticated, already material, machinary to instruct abstract commands; the former requires nothing but the brain itself.

The latter is based on the slow process of learning to master the machine-specific instructions; the former depends only upon intuition, already genetically embedded.

The former is impossible to materialize; the latter, however laborious to implement, is possible to materialize, i.e. execute.

Somewhere in the middle lies our compromise.
Expressions cannot be evaluated without context.
#Optimization

Combine iterations.
Programming should be more thinking than typing.
Counting starts from 1; indexing starts at 0.
“[The] best way to inspire ingenious minds is to say something is impossible.”
— Lex Fridman
“I dream music but I cannot make any because there are no pianos here.”
— Frédéric Chopin
Upon the destruction of a possessed object, the possessor objects experience an event of dispossession.
“To protract a great design is often to ruin it.”
— Miguel de Cervantes
Choices affect abilities.
Evolution would dictate machine get better sensory input than man; but having taken evolution into our own hands, we've blindly given the machine "vision".
Periodic nutrition affects branch girth.
Leave behind, the era of climbing abstractions. Let your imagination ascend freely. Whatever you can imagine must be realizable.
“When wireless is perfectly applied the whole earth will be converted into a huge brain, which in fact it is, all things being particles of a real and rhythmic whole.”
― Nikola Tesla, 1926
#languageTheory #regex

Proof that PCRE is more powerful than mere regex

Context-free:
a^n b^n: (a(?1)?b)

Context-sensitive:
a^n b^n c^n: (?:a(?=a*(\1?+b)b*(\2?+c)))+\1\2

Proved by Semicolon
Too much freedom of execution in an object's context leaves little room for optimizations.
Standing on the shoulders of giants leaves the rest of the land unexplored.