Xah Talk Show 2021-12-09 Tedium and Complexity of Newline in Programing Industry
- Explain what it is. Unix/Windows convention, and Mac os classic.
- explain the ascii control characters
- show how to insert LF CR etc in emacs
- explain the problem when using here string to find/replace files.
- explain the case with PowerShell.
- probably same problem for bash, perl, php, or any language that supports here string
- show php syntax of heredoc
- the art of naming of things: heredoc (perl, php), nowdoc (php), here string (PowerShell)
- the art of naming of things. Show the PowerShell github discussion.
- ASCII Characters
- Emacs: Newline Convention
- Emacs: Convert File Line Ending
- PowerShell: Write to File
- PHP: String Syntax
- different aspects of the unprintable characters.
- the unprintable/control characters, their purpose.
- encoding of it.
- notation for them.
- notation for inputting them
- glyph represenation for related concepts ¶ ↩ ↵ ⏎ ⌤ , used on keyboard or used in a text editor.
unicode ␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌ ␍ ␎ ␏ ␐ ␑ ␒ ␓ ␔ ␕ ␖ ␗ ␘ ␙ ␚ ␛ ␜ ␝ ␞ ␟ ␡
- unix tool: unix2dos dos2unix
- no builtin solution in PowerShell yet.
- why is it called carriage return? what carriage?
- QWERKYWRITER Keyboard
- Typewriters
- Fat Enter Key (ISO)
- Keyboard Shortcut Notations
- Unicode: Keyboard Symbols ⌘ ↵ ⌫
- multics, unix. began using LF, breaking convention.
- git on dealing with newline. Git: Frequently Asked Questions
- we have explained:
- ascii encoding
- unicode encoding
- control characters
- line ending conventions
- operating system that uses CR, like Mac OS classic: Commodore 8-bit machines (C64, C128), Acorn BBC, ZX Spectrum, TRS-80, Apple II series, Oberon, the classic Mac OS, MIT Lisp Machine and OS-9.
- ConvertTo-EOL cmdlet with -Unix and -Windows params #6201 ❮https://github.com/PowerShell/PowerShell/issues/6201❯
- https://en.wikipedia.org/wiki/Sway_(window_manager)