Posts

Showing posts from June 16, 2013

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 c…

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…

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.

Internet Explorer Anime Girl

Image

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.)

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 CSS2010-08-07 By W3C. @ www.w3.org…