Xah Web Dev Blog 2018-05
hideous colors, spurious animation
[utc is enough for everyone right By Zach Holman. At https://zachholman.com/talk/utc-is-enough-for-everyone-right ]
Hideous colors, spurious animation. And, it crashes old browsers even with js off.
JS: the Map Object Tutorial (minor update)
WebSocket Tutorial (minor update)
Web Design Index (new index on web design, UI design, articles)
JS: Date Constructor (updated)
JS: Digital Clock (updated to ES2015)
stupid firefox, utf8 still not default
See also: HTML: Character Sets and Encoding
Web Design: Skeleton Screen
UI design, pie menu
[Pie Menus: A 30 Year Retrospective By Don Hopkins, Ground Up Software. At https://medium.com/@donhopkins/pie-menus-936fed383ff1 ]
am fond of pie menu. in Second Life, which i lived in from 2007 to 2012, uses pie menu. It's simpler, easier, faster to use.
perhaps it's fair to say, the spirit of pie menu today lives in phone ui, example: a bunch of spacial squares, especially in Microsoft Windows 10's window menu, or somewhat in browser menus at right top corner.
by the way, the author Don Hopkin is a emacs oldbie. He ported sim city to x11. He wrote
The X-Windows Disaster
a chapter in The Unix-Haters Handbook. see The Unix-Haters Handbook
note, it used to be, any hacker have read them. Along with Worth Is Better.
he ranted on emacs change to visual lines, 5 years ago.
Rants on Emacs Visual Lines by Don Hopkins and Mark Crispin
this is originally posted to reddit discussion https://www.reddit.com/r/emacs/comments/8kkite/history_pie_menus_a_30_year_retrospective_don/dz9vozi/
phone browser opaque smart behavior
seems there's opaque algorithm when phone browser renders html. example: a nav bar with #css position:fixed to top left, then android chrome may or may not hide it after scrolling down, depending the page's height. is there doc about how phone special treatment of css?
nice article, on css variable
don't use .io domain
so, if you use a .io domain, you are in trouble. Note that, the programer idiots love special domains, started with .cx , de.licio.us etc. and since about 2010, .io. the thing is, the fad come and go.
JS: Property Key (updated. replace var with const)
JS: Prototype and Inheritance
JS: How to Create Tooltip (updated)
JS: Function.prototype.bind (minor update)
JS: How to Use Object.create() to Emulate Constructor? (minor update)
JS: Function Chaining (code update)
JS: Semicolon Rules (updated)
JS: Allowed Characters in Identifier (updated)
JS: Object.prototype.valueOf (minor update)
JS: Property Attributes, writable, enumerable, configurable
JS: Branch Control: if then else, switch
JS: Property Dot Notation / Bracket Notation
Minor updates. Now uses const instead of var.
JS: Format Number
D3.js Visualization, a Quasi Science
[How Likes Went Bad By Matt Locke. At https://medium.com/s/a-brief-history-of-attention/how-likes-went-bad-b094ddd07d4 ]
haven't read the whole carefully but it's on the ballpark.
JS: String Escape Sequence (new page)
JS: Unicode Escape Sequence (updated)
JS: Get Max/Min Value of Array (minor update)
JS: Scripting SVG (updated)
JS: Operator “new” (updated)
JS: Object Constructor (updated)
see JS: the Map Object Tutorial
JS: Map Filter
HTML: Input Range Slider (updated)
JS: var Declaration Order (updated)
JS: “typeof” Operator (updated)
CSS: Units (updated)
Why DOM Suck
SVG: Font Size (new page)
JS: Split Array (new)
JS: Define Function (updated)
JS: Template String (updated)
JS: String Overview (new page.)
JS: var Name Scope (updated)
Color articles has all been updated.
JS: var Declaration (updated)
JS: Global Variable
JS: “instanceof” Operator (updated)
JS: Primitive Value
worked a lot on my js tutorial. To streamline them, make it easier to find info as practical reference when coding. Going to post 1 updated article a day.
updated to ES2015
JS: Function Declaration vs Function Expression (minor update)
to my patreons, an intro to Xah Lee, is that right?
JS: Object.keys (updated)
worst design possible. Some return index, some boolean, some take function. Most can't deal
also, there's no function that finds all occurrences.
see JS: Array.prototype
JS: for-in Loop (minor update)
this is a stupid icon design.
In the 1990s, the icon is a wheelchair. It is iconic. People can recognize what it means. But due to political correctness, it is changed to a human animal with arms wide posture. This happened to Mac, Microsoft Windows, and Linux.
also, the word “disabled” such as “disability options” is changed to “accessibility”, also incomprehensible.
SVG Transform Bug in Mac Safari Browser
oh futter. svg v.1.x still have problems. if you attach a transform attribute to the top svg element, it doesn't work in Safari browser, but works in Chrome and firefox. Took 1 hour to debug this futter.
DOM: Change CSS (updated)
If you have a question, put $5 at patreon and message me.