2013-06-21

Emacs Projects Proposal: Language Aware Modes for Emacs Lisp, HTML5, CSS

remember, am proposing several emacs projects.

the HTML5 mode, and emacs lisp mode, and CSS mode, are going to be semantic unit based editor. That is, any keystroke you type, work on the semantic unit of the language. So, it is IMPOSSIBLE to create invalid syntax when you use the mode.

also, a new idea is that it'll completely eliminate any form of manual formatting. You NEVER need to press Tab ↹ or Space or Return ↩ for the sake of aligning your code to make it pretty. NEVER. Instead, you press a button, then the current code block is automatically formatted, in a standard convention or in a preference you set up. Another button format the entire buffer, etc.

another “new” idea, is that these modes's coloring are “mostly” keyword based. That means, if it's colored in a particular way, you know for sure it's a particular type or word of the language. If it is not colored, you know for sure it's not a core language keyword, or that you had a typo. In other words, the coloring are tied to semantics of the core language, not in other aspect of “helping you code”. This feature is already done in HTML, CSS, emacs lisp, modes, but need to polish details (such as possibly not coloring inside comment or string).

There will be complete support for keyword or form completion. So, working in a lang, any form or structure of the language are inserted automatically as you type or call a command. I aim for a complete system, and aim to not rely on yasnippet mode or auto-complete-mode.

Your help is appreciated. Please support here: http://pledgie.com/campaigns/19973. Vote for the one you want the most. But, if i get funding, it's likely i'll have at least 3 of the projects done reasonably well.

My video presentation isn't well done, as i'm not skilled and well prepared in making video presentation. I hope you support it, and tell it to friends.

My yearly income from 2005 to now is about 2 thousand dollars per year. And, this year, my brother stopped supporting me, so am in a emergency situation for survival. Need to come up with $1500 per month, and job hunting hasn't been smooth. (i sold my car 2 years ago, dried my 401k savings 2 years ago, i live on a $3 food per day, and i haven't seen a doctor for a decade. I'm about as good as the homeless on the street.)

2013-06-20

Functional Programing: the Jargon “Lambda”

these days, with functional programing getting popular, and lots lots new languages, the lambda name is falling out of fashion, and i think that's a good thing.

for example, in JavaScript, its functions are lambdas (⁖ function xyz {…}), but no JavaScript literature calls it lambda. 〔☛ Functional Programing in JavaScript〕 Same situation in Ruby. Younger generation using these languages, never thought about lambda, yet they benefit from what these so-called “anonymous” function provides. The name lambda actually harms understanding.

in Mathematica, the lambda is called Pure Function, but is written simply as Function[…]. (it's called Pure Function to differentiate from functions defined using pattern matching) Mathematica has been that way since version 1 in 1988.

the most important thing about lambda, isn't any advanced use, such as “closure”, or things one hear from the Haskell world. It's simply that the function is a expression, namely it returns a value that represents the function. (and therefore, it can be assigned to a var, or passed as a parameter to other function, or returned as a value from a function) (here, in lisp world it's sometimes known as “Function as First Class Citizens”. (again, a term that harms education and progress and propagation of functional languages))

United Kingdom slang: “bird” for “chick”

In United Kingdom, they call a girl “bird”, analogous to the US slang “chick”.

it's wrong to call a girl “bird”, because, “bird” is descendant of dinosaur. Dinosaur are not cuddly creatures.

2013-06-19

Internet Explorer Anime Girl

Internet Explorer anime girl
Internet Explorer anime girl

emacs key poll, C-c and C-x

list 10 commands in #emacs you use the most.

  • 5 that start with C-c key. (any mode)
  • 5 that starts with C-x key.

(or more than 5 if you want. You can just write down the key, but with the mode's name.)

2013-06-16

Declaring Character Set in CSS File @charset

by default, CSS file is assumed to be UTF-8 encoded, unless the server or other mechanism says otherwise.

however, you can declare it in your CSS file, in first line, like this:

@charset "UTF-8";

reference. 〔Declaring character encodings in CSS By W3C. @ www.w3.org…