Skip to content

Commit

Permalink
+++
Browse files Browse the repository at this point in the history
  • Loading branch information
Offirmo committed Sep 17, 2024
1 parent 6226692 commit 2adc4a9
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 22 deletions.
3 changes: 1 addition & 2 deletions stack--current/0-meta/tsconfig.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ REMINDER: the build script relax a few rules in dev mode (--watch), see `build-t
### TODO

* 5.6 https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/
* use "typeRoots": ["node_modules/@types", "typings"] instead of replicating the reference to types?

* DOESNT WORK use "typeRoots": ["node_modules/@types", "typings"] instead of replicating the reference to types?

### 2024/08/29

Expand Down
2 changes: 1 addition & 1 deletion stack--current/3-advanced/utils--async/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Current primitives (not semantic):
1. async
1. next tick
1. microtask
1. setImmediate https://developer.mozilla.org/en-US/docs/Web/API/window/setImmediate https://github.com/YuzuJS/setImmediate
1. setImmediate https://developer.mozilla.org/en-US/docs/Web/API/window/setImmediate https://github.com/YuzuJS/setImmediate https://www.trevorlasn.com/blog/setimmediate-vs-settimeout-in-javascript
1. set timeout 0
1. requestAnimationFrame ~1/60s
1. set timeout n
Expand Down
1 change: 1 addition & 0 deletions stack--current/3-advanced/utils--async/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO read https://www.trevorlasn.com/blog/setimmediate-vs-settimeout-in-javascript
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
[ ] https://matklad.github.io/2023/08/06/fantastic-learning-resources.html
[ ] https://medium.com/javascript-scene/the-single-biggest-mistake-programmers-make-every-day-62366b432308
[ ] https://www.atlassian.com/team-playbook/plays/elevator-pitch
[ ] https://www.developing.dev/p/5-books-every-software-engineer-should
[ ] https://www.managingtheunmanageable.net/morerulesofthumb.html
[ ] https://zknill.io/posts/every-programmer-should-know/
[ ] https://www.developing.dev/p/5-books-every-software-engineer-should
[ ] technical things every software developer should know https://github.com/mtdvio/every-programmer-should-know
abstraction https://www.merrickchristensen.com/articles/abstraction/
access control -- Role-Based (RBAC)
Expand Down Expand Up @@ -83,6 +83,8 @@ commits -- conventional https://www.conventionalcommits.org/ https://gist.gith
compile to js
compiler
compiler -- stanford course http://openclassroom.stanford.edu/MainFolder/CoursePage.php?course=Compilers
compute
compute -- hosted compute
concurrency -- ABA problem
concurrency -- atomic
concurrency -- atomic -- operations -- compare-and-swap (CAS) = an atomic instruction used in multithreading to achieve synchronization https://en.wikipedia.org/wiki/Compare-and-swap
Expand Down Expand Up @@ -161,6 +163,7 @@ Effect<Success, Error, Requirements> https://effect.website/docs/guides/essentia
egress/ingress
emscripten
encabulator https://en.wikipedia.org/wiki/Turbo_encabulator https://www.youtube.com/watch?v=RXJKdh1KZ0w
entitlements -- non-standard offerings or commercial terms to meet their needs through high touch sales motions. High touch Sales teams work closely with our customers to understand their solution needs and buying preferences like Multi-year billed annual, ELAs, Ramp discounts. There is a significant volume of customers and revenue from such deals
error -- handling -- fail fast = Check input and fail on nonsensical input or invalid state as early as possible, preferably with an exception or error response that will make the exact problem clear to your caller https://opensource.com/article/17/5/30-best-practices-software-development-and-testing
error -- handling = exceptions, error codes, monads, etc. https://www.boost.org/doc/libs/1_84_0/libs/outcome/doc/html/alternatives.html
error -- type -- domain error = out of the specification, ex. sqrt(-x) https://cplusplus.com/reference/stdexcept/domain_error/
Expand Down Expand Up @@ -336,6 +339,7 @@ pointer
polyfill
polyfill -- shim vs polyfill vs ponyfill
polymorphism https://en.wikipedia.org/wiki/Polymorphism_(computer_science)
postgres -- job queue https://github.com/timgit/pg-boss
practices -- best vs. standard
principle of least surprise / principle of least astonishment https://en.wikipedia.org/wiki/Principle_of_least_astonishment
privacy -- collect and use someone's info respectfully
Expand Down Expand Up @@ -438,6 +442,8 @@ tech debt -- accidental - e.g. bugs due to human error that unknowingly increase
tech debt -- deliberate - e.g. optimising for short term delivery, knowing it increases the cost of future work.
tech debt -- incidental - e.g. organic changes in complexity over time that increases the cost of future work.
temporary solutions https://80.lv/articles/this-30-year-old-windows-feature-was-created-as-a-temporary-solution/
tenant -- isolation -- sandboxing / isolates / individual processes / individual VMs / individual containers
tenant -- multi-tenant
test -- fixtures
test -- mutation testing https://sentry.engineering/blog/js-mutation-testing-our-sdks
test -- test double -- 01 dummy = objects are passed around but never actually used. Usually they are just used to fill parameter lists
Expand Down Expand Up @@ -477,6 +483,7 @@ Unix philosophy -- A.01 Make each program do one thing well. To do a new job, bu
Unix philosophy -- A.02 Expect the output of every program to become the input to another, as yet unknown, program. Don't clutter output with extraneous information. Avoid stringently columnar or binary input formats; Don't insist on interactive input
Unix philosophy -- A.03 Design and build software, even operating systems, to be tried early, ideally within weeks. Don't hesitate to throw away the clumsy parts and rebuild them
Unix philosophy -- A.04 Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you've finished using them
untrusted code
uptime / downtime
use boring technology
use strict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[ ] advanced architecture -- https://devdocs.io/dom/content_index_api
[ ] advanced architecture -- navigator.sendBeacon() for backup
[ ] advanced architecture -- Web Periodic Background Synchronization API https://devdocs.io/dom/web_periodic_background_synchronization_api
[ ] design https://www.youtube.com/@phoebeyutbt/videos
[ ] security https://portswigger.net/web-security/all-topics
[ ] security https://xsleaks.dev/
[ ] TODO shearing layers https://en.wikipedia.org/wiki/Shearing_layers
Expand All @@ -17,14 +18,14 @@ appli web
Application posture = sovereign, transient, background, auxiliary https://en.wikipedia.org/wiki/Application_posture
architecture -- islands
architecture -- JAMStack = "JavaScript, APIs, Markup" as much HTML as possible is pre-built and stored in a content delivery network (CDN). Instead of running a monolithic backend application on the server side to generate dynamic content, dynamic components of the application are based on APIs. Ideally, this results in a much faster user experience and a much simpler developer experience. https://www.cloudflare.com/learning/performance/what-is-jamstack/ https://jamstack.org/what-is-jamstack/
WinterCG "Web-interoperable Runtimes Community Group" https://wintercg.org/
architecture -- JamStack = decouples the web experience layer from data and business logic, improving flexibility, scalability, performance, and maintainability
architecture -- LAMP (outdated) Linux, Apache, MySQL, PHP/Python/Perl
architecture -- MEAN "MongoDB, Express.js, Angular, Node.js"
architecture -- microservices, API-first, cloud-native SaaS, headless (MACH) https://machalliance.org/mach-technology
architecture -- SSR, ISR, CSR, PPR (see 'rendering')
ARIA "Accessible Rich Internet Applications" https://www.w3.org/WAI/ARIA/apg/
Backends For Frontends (BFF) https://samnewman.io/patterns/architectural/bff/
blocking render https://csswizardry.com/2024/08/blocking-render-why-whould-you-do-that/
bot detection
browsing contexts = such as several windows, iframes or even workers
CDN
Expand Down Expand Up @@ -141,6 +142,7 @@ MIME - Multipurpose Internet Mail Extensions
monitoring -- labs = made by a lab, ex. camera
monitoring -- Real user monitoring (RUM) = passive monitoring technology that records all user interaction with a website or client interacting with a server or cloud-based application (vs. lab) https://en.wikipedia.org/wiki/Real_user_monitoring
monitoring -- synthetic = own test bot https://en.wikipedia.org/wiki/Synthetic_monitoring
node -- tenant isolation = node is single thread, hence issues with security, esp. AWS lambda! solutions: workerd?
organic vs inorganic concept = coming from a real user or a bot/AI or app etc.
perf -- content jump = https://css-tricks.com/content-jumping-avoid/
perf metrics -- "9 must known" https://twitter.com/alexxubyte/status/1769748487317651962
Expand Down Expand Up @@ -225,11 +227,13 @@ web components -- shadow DOM
web components -- templates
web components -- templates -- slots https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/slot
web components https://developer.mozilla.org/en-US/docs/Web/API/Web_components
web design https://www.webdesignmuseum.org/
web workers -- dedicated = utilized by a single script https://devdocs.io/dom/worker
web workers -- service = proxy https://devdocs.io/dom/service_worker_api
web workers -- shared = can be utilized by multiple scripts running in different windows, IFrames, etc., as long as they are in the same domain as the worker https://devdocs.io/dom/sharedworker
WebDriver BiDi https://developer.chrome.com/blog/firefox-support-in-puppeteer-with-webdriver-bidi
WebGPU / WebGL = https://devdocs.io/dom/webgpu_api
WebXR / WebVR = VR / AR
Wep pages UX design -- concepts https://www.nngroup.com/courses/web-page-design/
WinterCG "Web-interoperable Runtimes Community Group" https://wintercg.org/
XSS -- injection sinks https://devdocs.io/dom/trusted_types_api
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"natural order of things in society" established by the dominant ideology
+++ evolution
+++ https://thewokesalaryman.com/
-- https://fs.blog/mental-models/
-- tool https://explorer.globe.engineer/
[ ] https://boz.com/
0-sum game
1 or 2 way door
12 steps
Expand All @@ -13,22 +13,13 @@
[ ] AAA TODO https://flinkliv.com/
[ ] AAA TODO https://www.forbes.com/sites/joshsteimle/2013/05/27/five-war-books-for-entrepreneurs/
[ ] https://amir.rachum.com/mental-models/
[ ] https://boz.com/
[ ] https://en.wikipedia.org/wiki/Power_(social_and_political)
[ ] https://perell.com/essay/50-ideas-that-changed-my-life/
[ ] https://www.ted.com/playlists/171/the_most_popular_ted_talks_of_all_time
[ ] wish I knew https://medium.com/mind-cafe/cheat-codes-for-life-i-know-at-36-that-i-wish-i-knew-at-26-294f6e865db5
acceptance
advocacy
communication -- plainspoken https://boz.com/articles/be-plainspoken https://debliu.substack.com/p/the-importance-of-being-plainspoken
communication -- ELI5 https://boz.com/articles/eli5
communication -- breaking bad news https://boz.com/articles/bad-news
intellectual honesty = willingness to see and admit the truth, even if it goes against your argument, supports the argument of “the other side,” or proves you wrong. Even if it bruises your ego. https://newsletter.weskao.com/p/intellectual-honesty
intellectual honesty -- “It’s not possible” vs “I wasn’t able to do it” vs “I don’t want to do it.”
intellectual honesty -- 1 Is this true?
intellectual honesty -- 2 What evidence do I have for and against this?
intellectual honesty -- 3 Am I telling myself a certain narrative to avoid facing a truth I don’t like?
intellectual honesty -- 4 How might I recognize the truth in a neutral, objective way?
intellectual honesty -- FLOATER "Falsifiable, Logic, Objective, Alternative explanations, Tentative conclusion, Evidence, Replicate" = method for evaluating claims
intellectual honesty -- FLOATER -- If someone claims they saw a unicorn, ask yourself: Is it Falsifiable? Were there any Logic fallacies? Are they being Objective? Are there Alternative explanations? Is this a Tentative conclusion? Is the Evidence reliable? Can you Replicate the results?
affirmative action?
agency
agile "what the client wanted"
Expand Down Expand Up @@ -68,6 +59,10 @@ collaboration issue -- Compromise, where the estimates contain only "lowest comm
collaboration issue -- Gridlock, where many different interests slow the analytic process
collaboration issue -- Groupthink, where opposing views are subconsciously discouraged
comfort zone
common sense
communication -- breaking bad news https://boz.com/articles/bad-news
communication -- ELI5 https://boz.com/articles/eli5
communication -- plainspoken https://boz.com/articles/be-plainspoken https://debliu.substack.com/p/the-importance-of-being-plainspoken
communication non violente
competition is for Losers: Avoid competition. Stop copying what everybody else is doing. If you work at a for-profit company, work on problems that would not otherwise be solved. If you’re at a non-profit, fix unpopular problems. Life is easier when you don’t compete. (Hint: don’t start another bottled water company).
convexity: If you want to be lucky, look for opportunities with big upsides and low downsides. In addition to increased optionality, your errors will benefit you more than they harm you. Convex payoffs let you tinker your way to success and innovation.
Expand All @@ -77,6 +72,10 @@ cost of a thing = the amount of life which is required to be exchanged for it, i
courses après le repas
creativity -- begins at the edge: Change starts away from the spotlight. Then, it moves towards the center. That’s why the most interesting ideas at a conference never come from the main stage. They come from the hallways and the bar after sunset
critical thinking +++ https://strategyu.co/critical-thinking/
cultural hegemony https://en.wikipedia.org/wiki/Cultural_hegemony https://en.wikipedia.org/wiki/Power_(social_and_political)#Cultural_hegemony
culture -- differences -- https://www.youtube.com/watch?v=vi8pyS076a8
culture -- Hofstede’s Dimensions http://www.na-businesspress.com/ajm/bergieleb_web12_1_.pdf
culture -- taijin kyofusho = specific type of social anxiety, occurring primarily in Japanese culture, is called taijin kyofusho. Taijin kyofusho is characterized by an intense fear that one's body parts or functions displease, embarrass or are offensive to others. https://pubmed.ncbi.nlm.nih.gov/21911434/
Cynefin https://en.wikipedia.org/wiki/Cynefin_framework
demand curves slope down: The harder something is to do, the fewer people will do it. For example, raise the price of a product and fewer people will buy it. Lower the price and more people will buy it. Economics 101.
democracy -- education https://politics.stackexchange.com/questions/84583/is-democracy-possible-in-a-country-with-a-relatively-low-educated-population
Expand Down Expand Up @@ -166,6 +165,14 @@ influence operations -- breakout scale -- 06 policy response OR call for violenc
influence operations -- breakout scale https://www.brookings.edu/articles/the-breakout-scale-measuring-the-impact-of-influence-operations/
infotainment
ingroup/outgroup
intellectual honesty -- 1 Is this true?
intellectual honesty -- 2 What evidence do I have for and against this?
intellectual honesty -- 3 Am I telling myself a certain narrative to avoid facing a truth I don’t like?
intellectual honesty -- 4 How might I recognize the truth in a neutral, objective way?
intellectual honesty -- FLOATER "Falsifiable, Logic, Objective, Alternative explanations, Tentative conclusion, Evidence, Replicate" = method for evaluating claims
intellectual honesty -- FLOATER -- If someone claims they saw a unicorn, ask yourself: Is it Falsifiable? Were there any Logic fallacies? Are they being Objective? Are there Alternative explanations? Is this a Tentative conclusion? Is the Evidence reliable? Can you Replicate the results?
intellectual honesty -- “It’s not possible” vs “I wasn’t able to do it” vs “I don’t want to do it.”
intellectual honesty = willingness to see and admit the truth, even if it goes against your argument, supports the argument of “the other side,” or proves you wrong. Even if it bruises your ego. https://newsletter.weskao.com/p/intellectual-honesty
intrinsic/extrinsic motivation https://www.swyx.io/js-tooling
inversion: Avoiding stupidity is easier than trying to be brilliant. Instead of asking, “How can I help my company?” you should ask, “What’s hurting my company the most and how can I avoid it?” Identify obvious failure points, and steer clear of them.
investing
Expand Down Expand Up @@ -199,6 +206,7 @@ Logical Problem of Evil https://christianity.stackexchange.com/questions/100110/
look for Things That Don’t Make Sense: The world always makes sense. But it can be confusing. When it is, your model of the world is wrong. So, things that don’t make sense are a learning opportunity. Big opportunities won’t make sense until it’s too late to profit from them.
love = wanting the best
making one's luck
marxist philosophy
Maslow's pyramid
McNamara fallacy https://en.wikipedia.org/wiki/McNamara_fallacy
mental Health: I am not my thoughts and rather than feeling like I needed to have control of every situation, that by surrendering that control, I will have more control over my life than I ever did before.
Expand Down Expand Up @@ -249,6 +257,8 @@ perverse incentive https://en.wikipedia.org/wiki/Perverse_incentive
picture the success
Planck’s Principle: Science doesn’t progress because people change their views. Rather, each new generation of scientists has different views. As old generations pass away, new ideas are accepted and the scientific consensus changes.
porn
power -- French and Raven five bases of power = reward, coercion, legitimate, expert, referent, informational https://en.wikipedia.org/wiki/French_and_Raven%27s_bases_of_power
power https://en.wikipedia.org/wiki/Power_(social_and_political)
practice first what you teach
praise in public (and private), criticize in private
praise more than criticize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ https://devdocs.io/dom/webotp_api
https://devdocs.io/dom/credential_management_api


https://en.wikipedia.org/wiki/Elsagate


https://devdocs.io/dom/reporting_api


Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@

Creating is half building, half marketing!


badger badger https://www.youtube.com/watch?v=Lrxf_6b72hQ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/////////////////////

import assert from 'tiny-invariant'
import { Enum } from 'typescript-string-enums'

import { ItemQuality, InventorySlot } from './types.js'
Expand All @@ -22,6 +22,7 @@ export const ITEM_QUALITIES_TO_INT: Readonly<{ [k: string]: number }> = {
[ItemQuality.legendary]: 2,
[ItemQuality.artifact]: 1,
}
assert(Object.keys(ITEM_QUALITIES_TO_INT).length === ITEM_QUALITIES.length, `ITEM_QUALITIES_TO_INT should be up to date!`)

///////

Expand All @@ -32,6 +33,7 @@ export const ITEM_SLOTS_TO_INT: Readonly<{ [k: string]: number }> = {
[InventorySlot.weapon]: 1,
[InventorySlot.armor]: 2,
}
assert(Object.keys(ITEM_SLOTS_TO_INT).length === ITEM_SLOTS.length, `ITEM_SLOTS_TO_INT should be up to date!`)

///////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,3 @@ export {
getꓽoldest_pending_flow_engagement,
getꓽoldest_pending_non_flow_engagement,
}

/////////////////////
2 changes: 0 additions & 2 deletions stack--current/A-apps--core/the-boring-rpg/state/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Enum } from 'typescript-string-enums'

import {
BaseUState,
BaseTState,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
see power https://en.wikipedia.org/wiki/Power_(social_and_political)

0 comments on commit 2adc4a9

Please sign in to comment.