C0ldSmi1e
@Daniel3790y
Followers
18
Following
1K
Media
2
Statuses
60
Lovely π§Έ
0
0
0
For @duto_guerra's #ProgramDesignParadigms class in @KhouryCollege, I built an @Observablehq notebook demo where receives some slots and events, users can select some, then renders events in the selected slots. Please try and leave your suggestions. https://t.co/cvJpYgdSrP
3
0
1
In observable, htl.html is a preferable way over html. There're some differences between these two. From document, one is "Whitespace around the top-level node is enclosed in a span, not trimmed". #ProgrammingParadigms
@KhouryCollege
0
0
1
"Instability and chaos actually make it stronger." "The most positive part of this whole story is despite any of the challenges, despite any of the personal conflict, despite any of the like corporate posturing Node is still strong."
The wait is almost over! Our @nodejs documentary is premiering tonight π€©π Tune in to our youtube channel today at 7pm CET to make sure you don't miss anything π Don't forget to #like, #share and #comment! YTπ¬π https://t.co/0PU6xmiI7q
#NodeJS #DocumentaryPremiere
0
0
0
In MVC model, users can "see" the views and use the "controller", while controller "manipulate" models, and models "update" the views. This model can help us plan our apps and organize the data flow before development. #ProgrammingParadigms
@KhouryCollege
0
0
0
Test-Driven Development is a method for software development, which means we write test before we start coding, and then only write the code to pass the test. This way, we can ensure we don't overthink and only implement the necessary code. #ProgrammingParadigms
@KhouryCollege
0
0
1
Sora for artists and filmmakers:
A glimpse of our early work with artists and filmmakers to see how Sora can help bring ideas into reality:Β https://t.co/kIowcqry0d
167
597
5K
I think AI agentic workflows will drive massive AI progress this year β perhaps even more than the next generation of foundation models. This is an important trend, and I urge everyone who works in AI to pay attention to it. Today, we mostly use LLMs in zero-shot mode, prompting
216
1K
5K
Web Workers are for implementing multi-threads in JS. To use it, pass a message to a separate background thread to do a task, and once finished, it posts a response message. Note that workers are separate and don't have the access to DOM. #ProgrammingParadigms
@KhouryCollege
0
0
0
this is the most interesting year in human history, except for all future years
2K
3K
26K
Promises or async/await can execute async operations in correct order to avoid unexpected results. Async is important in "optimistic updates": when users do something, apps reflect immediate feedbacks but interact with backend asynchronously. #ProgrammingParadigms
@KhouryCollege
0
0
0
In JavaScript, "var" variables would be hoisted as functional or global variables, so be careful while using closures with loops. If each iteration creates a closure which contains "var" variables, they would be the results of last iteration. #ProgrammingParadigms
@KhouryCollege
0
0
0
In functional programming, it's crucial to use pure functions, which are more readable and predictable. They return the same result with the same input, and don't have side effect (do not change variables outside the function and arguments). #ProgrammingParadigms @KhouryCollege
0
0
0
We always see UML diagrams of existing applications, but they can be useful before starting the implementations. As visual references, UML diagrams help us write logical and clean code, and are useful to rebuild in another lang and teamwork. #ProgrammingParadigms @NortheasternCA
0
0
1
In react, the "setState" function is asynchronous, so it's unreasonable to print out value that is going to update. Another thing is that the render method should be a pure function, which means that it shouldn't cause any side effect. #ProgrammingParadigms
@NortheasternCA
0
0
0
In promise chains, a tricky point is, if there's only one promise chain, each then function execute one by one, even if some don't return anything. But if one depends on another chain, lacking of return value will affect the execution order. #ProgrammingParadigms
@NortheasternCA
0
0
0
Callback and Promise are two methods to handle asynchronous operations in JS. Async and await are syntactic sugar to make promises look like synchronous code. Promise is easy to read, can avoid callback hell and handle errors by catch method. #ProgrammingParadigms
@NortheasternCA
0
0
1
JavaScript is single thread and synchronous, though it behaves asynchronously. JS puts commands into call stack in order, but it passes some asynchronous tasks to a queue. When the stack is empty, JS will execute functions from the queue. #ProgrammingParadigms
@NortheasternCA
0
0
1