Xah Programing Blog Archive 2022-06
JavaScript edition: the struct and int of comp programing
misc minor updates
- Why Microsoft Windows Sucks
- Windows 10 Flat Design Sucks
- User Interface Design: Windows Dark Theme Problem
- Windows Onscreen Keyboard Sucks
- Windows Taskbar Sucks
- Worst World Clock User interface Design
- Windows User Interface: Switch Window Problem
- Windows User Interface Design: Accidental Hide Windows
- Windows User interface System Sound Sucks
- Windows User interface Appearance Inconsistency
- Windows 10 Still Using Bitmap Font
- Why Windows User Interface Suck
- Windows User Interface Sucks, Multi Way to Do the Same Thing
- Windows Elevation Prompt Idiocy
- Windows Lockscreen Background Image Problem
updated obs. now error:
your current video card driver does not support this NVENC version
12:32:43.916: error: Driver does not support the required nvenc API version. Required: 11.1 Found: 11.0
- C:/Users/xah/AppData/Roaming/obs-studio/logs
currently, revisit the insufferable windows faak Saga of Updating Nvidia Driver
upates.
updates and new
- Git: Commit Files
- Git: Undo Add File
- Git: Undo Commit
- Git: Fix Last Commit Message
- Git: Frequently Asked Questions
- Git: What's HEAD
massive updates and new articles
- PowerShell: Eval Variable, String, ScriptBlock
- PowerShell: Launch App
- PowerShell Misc Examples
- PowerShell: Run as Admin
- PowerShell: Clear Command History
updates and new
- JS: Array.from
- JS: Array.of
- JS: Array.isArray
- JS: Array-Like Object to Array
- JS: Apply Array Method to Array-Like Object
updates and new
- JS: Prevent Adding Property
- JS: Object.preventExtensions
- JS: Reflect.preventExtensions
- JS: Object.isExtensible vs Reflect.isExtensible
- JS: Object.isExtensible
- JS: Reflect.isExtensible
- JS: Object.seal
- JS: Object.isSealed
- JS: Object.freeze
- JS: Object.isFrozen
updates and new
now creating a bunch of new articles about JavaScript/DOM What's the difference between. See: JavaScript in Depth
also, lots updates and new on JavaScript
the worst programing language design, yet python write it as a feature Python: Function Argument Default Value Wrong
updates and new
- Python: Map, Filter, List
- Python: Iterator to List
- Python: Loop Thru Dictionary
- Python: Tuple
- Python: Sets, Union, Intersection
new and updates
Programing Language History. the Rise of FORTRAN, ALGOL, Pascal, C, ML, Ocaml, Haskell, Rust.
One of the top 5 blogs on programing language i've read in past 5 years.
[Rust in Perspective By Linus Walleij (aka linusw). At https://people.kernel.org/linusw/rust-in-perspective ]
a short history of programing languages. Covers the rise of FORTRAN, ALGOL, Pascal, C, ML, Ocaml, Haskell, Rust.
The content is great, but the writing is also impeccable.
massive js dom update.
- JS: DOM Methods
- JS: Get Element by ID, Name, Class etc
- JS: Get Current Script Element
- JS: How to Iterate/Loop HTML Elements
- JS: List/Add/Remove Class Attribute
- JS: Get Element's Parent/Child/Sibling, Navigate DOM Tree
- JS: Create/Clone Node/Element
- JS: Insert/Remove/Replace Element
- JS: insertAdjacentElement
- JS: Insert After an Element
- JavaScript/DOM: What is Node, Node Type, Element
- JS: Node Type
- JS: Node Name
- JS: Node value
- DOM: textContent, innerHTML, innerText, nodeValue
- DOM: Live Object
- DOM: Node vs Element, NodeList vs HTMLCollection
- DOM: Whitespace Nodes
- DOM: History of GetElementsByClassName
misc minor updates
major updates on PowerShell
- PowerShell: Download, Install
- PowerShell: Start PowerShell
- PowerShell: Name Completion
- PowerShell: Case Sensitivity
- Windows Console Keyboard Shortcuts
- Windows Terminal
- PowerShell: List Directories
- PowerShell: Create Directory
- PowerShell: Copy Directory
- PowerShell: Delete Directory
- PowerShell: List Empty Directories
updates
some major cult in the programing industry since 1995
- 1995 to 2000, java, presumed to be the last language for humanity. Just write once and runs anywhere, actually JavaScript did it. Along with the idea that OOP solves all problems on earth.
- 1995 to 2000, perl. The last scripting lang for humanity. Swiss army knife does everything. Theory is not important. Comp sci is not important. Laziness is good programer. English is best lang. Unix philosophy hack on drugs. Larry Wall did this. And big surprise , it died.
- Y2k, eXtreme Programing. A wild fire. After 10 years, it became Agile. Skum snakeoil. Math no important. Skill no important. Knowelgeable no need. Responsibility no need. Need human touch, need 2 guys sucking each other's cock and throw each other under the buss. Programing is about hugs and standup meetings. Programers r just a cogwheel.
- Briefly, around 2008. Ruby on rails. For 3 years or so. By a skum.
- Briefly, around 2008 or so, node js. The Non-blocking shit. Worst lang. Still worst.
- Briefly around 2008... Haskell, and functional programing. Omg cpu no faster, FP is future. And Haskell is god.
- Golang, julia, also born around these years. And facebook hacklang. They, never gained much cult. Golang and julia should became popular. Golang is. Julia failed. Hacklang seems never caught on.
- Because julia is related to math. The most industrial C Cpp rust types, run away from math.
- Then, today, python, rust, pop idiocy, with zoomer younglings.
- rando notes. ripgrep
massive updates and rewrite in past days.
- Python: Quote String
- Python: String Escape Sequence
- Python: Regex Tutorial
- Python: Unicode Escape Sequence
- Python Regex re.search
- Python Regex re.match
- Python Regex re.split
- Python Regex re.findall
- Python Regex re.finditer
- Python Regex re.sub
- Python Regex re.subn
- Python Regex re.escape
updates
- 2022-07-24 golang. https://go.dev/doc/go1.16 ioutil package deprecated. moved to io and os packages (although iotuil is still kept to preserve backwards compatability, but is no longer reccomended to use). thanks to “triangle”.
- 2022-07-24 generics in golang go1.18 (released 2022-03-15) https://go.dev/doc/go1.18
- Unicode Search 🔎, now you can save search result by bookmarking the url, or share it
- Xah Unicode Blog
- Unicode: Reference Marks † ‡ ¶ § ☛ ⁂
- Unicode: Tacks, Turnstiles ⊣ ⊢ ⊥ ⊤ ⫪ ⫫
- Unicode: Typography Ornaments ☙ 🙐 🙚 🙠
- Unicode: Punctuations • ✓ ™
- Unicode: Slash, Solidus / ⫽ ⫻
- Unicode: Whitespace Representation ⇥ ▷ ␣ ¶
Stephen Wolfram interview Bob Metcalfe
updates and new:
massive major updates
- Wolfram Language in Depth
- WolframLang: Print Version
- WolframLang: Comment
- WolframLang: Print
- WolframLang: Shell Tasks Tutorial
- WolframLang: Navigate Directory
- WolframLang: Date Time
- WolframLang: List Files (Walk Directory)
- WolframLang: File Path Functions
updated today. lots work in past days on my JavaScript tutorial and PowerShell.
- PowerShell: Quote String
- PowerShell: String Operators
- PowerShell: Write to File
- PowerShell: Print to Screen
- PowerShell: List Files
- PowerShell: List Files by File Name Pattern (grep file names)
- PowerShell: Rename Files, to File Hash String
- PowerShell Launch File Explorer with Selection
- JS: Determine Type of Object
- JS: Object.prototype.toString
- JS: null
- JS: Array-Like Object
- JS: Array-Like Object to Array
- JS: Get Set Property
- JS: Reflect.set
- JS: Create Property
- JS: Object.defineProperty
- JS: Reflect.deleteProperty
- JS: Reflect.getOwnPropertyDescriptor
- JS: Object.getOwnPropertyDescriptors
programing language documentation problem. What is a reference? Java JavaScript
- here's a interesting documentation problem.
- note that, afaik, the concept of “reference” is not mentioned in js spec.
- (maybe it is. i forgot. but not in a way for programer, only to compiler writer)
- so u have this problem. How do u explain, the fact that array can be assigned to a constant and still can change.
- if u mention “reference”, then u need to explain it.
- but in order to explain “reference”, you have to mention implementation and hardware, such as memory address.
- but these things, are irrelevant to JS the language.
- The solution, seems to be, to add a concept of “reference” to the language, by saying it's just some kinda object ID. Python does this with object ID, and Java does this with an actual value type, the Reference Type.
old blog, updated, or on its own page
- Stackoverflow JavaScript Millennials on Compiler
- The Overflow of StackOverflow
- StackOverflow Gamification
- disqus ad spam
- social network and google plus millennials
more work on WolframLang tutorial for programers. This is a functional form for generating a list, similar to python's list comprehension WolframLang: Create List (Table)
lots major update and rewrite
updates
- omg, martin fowler, i consider him the biggest crackpot in computing
- him, and larry wall. are the biggest crackpot snakeoil seller
- but larry wall subsided.
- WolframLang: Define Function major expansion
in Ubuntu Linux, as of , there's a bug that pydoc modules
will crash Python. Use python3
instead. sudo apt-get install python3
.
much more work on Python. Learn Python in a day.
lots update and new pages. re-org nav bar.
updates
now golang tutorial has grouping in nav bar.
massive update
- major update Python 3 Tutorial
- major update Perl Tutorial by Example
- updated. nested function PowerShell: Define Function
- PowerShell: Profile (init file)
perl in WolframLang style
supreme. Delete Duplicate Image Files
Perl in wolframlang style. Year 2003. Notable are the functions: combo, reduce, merge, genpair. (not what you think) and using nested list the way you'll not find in industrial code.
Lol, look at this one liner Mathematica style
- used to piss the perlers, and plus, they no understand it.
- overly complex. even i no unstand it now. lol
- not complex in a dumb way. but complex in the sense it follows a 'elegant' and very functional programing and using nested list extensively.
- and follows a strange one-liner style.
Been using dark theme for 5 months now. Conclusion: light theme is actually easier on the eye.
But one particular interesting thing is, bold word are less perceptible when its white text on black. Example: Code where variables are bold, when in dark theme, it's hard to tell if they are bold at all. Similar for for headings with larger font size, such as html h2, h3 headings.
order hash table in tutorial in this order
- map, hashtable, dictionary, association list, in
- ELisp: Hash Table
- JS: Map Object Tutorial
- Python: Dictionary
- Perl: Hash Table
- Ruby: Hash Table
major updates, lots refinement and new pages. Wolfram Language Tutorial