Lang Min
@langminneu.bsky.social
4 followers 8 following 15 posts
Posts Media Videos Starter Packs
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
I am not a guy very into low-level stuff, but D3 is one of the tools that I want to learn more about. It has magic, especially in visualizing data. Although more lines of code are needed to get it to work, it provides significant flexibility.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Ruby on Rails is a robust full-stack web framework. I've had some bad experiences with it, mostly because my team was rushing a project and I didn't have the time to learn its unique syntax systematically. Nevertheless, this demo is just impressive.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
The first moment I saw Observable notebooks, I thought they are the JavaScript version of Jupyter Notebook. They seem so convenient for visualizing data, and we can even bring interactivity, such as buttons, slides, and dropdowns, to users.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
One role of TDD is to set a more specific set of goals. I used to have a "see what I can do" attitude, which means that I do not have an exact goal that I wish to achieve but always prepare a plan B. TDD may be an excellent choice for my work.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Jest is to JavaScript as JUnit is to Java. It is quite a powerful testing tool for examining JavaScript code. I wish I had read about it before I dived deep into the project I just finished.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
A dedicated worker is a hardworking employee who takes orders from the manager main.js and makes coffee as required. However, a shared worker is a factory that takes orders from multiple customers, and orders will only be received by phone calls.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Promise is a potent tool for handling asynchronous operations efficiently in JavaScript. It's like one function saying to another, "I promise I'll give you a result later." It can pass the result to the next function using .then() or other formats.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Simply put, synchronous programming is ordering and waiting for coffee at the counter, while asynchronous programming is making an order and picking up the coffee later. Also, callbacks are so helpful when passing arguments to functions.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
I am surprised by the fact that Safari implements PTC to elide stack frames and enhance computing. But, a painful truth is, that I always thought recursion was tough enough, but currying is much harder for me to understand in functional programming.
a pile of dirt is spread out on a white background .
ALT: a pile of dirt is spread out on a white background .
media.tenor.com
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Guess who gets lost after spring break? At least I'll be. There is nothing more painful than not being able to remember what code I wrote. It is where JSDoc comes in. It provides a clearer view of the function that even others can quickly understand.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Abstraction is a potent tool for reducing code redundancy and achieving interface polymorphism. To make a practical abstract class, we may maximize the shared functionality among its subclasses and allow them to be customized as needed.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
As an amateur photographer, I always correlate making models with three.js and shooting close-up. Set a clear background, pick a nice camera angle, and let lights become the renderer. I just wish my object can rotate on its own like having animation.
langminneu.bsky.social
#ProgrammingParadigms
@northeasternu.bsky.social
Suppose I need to cook pasta. As I understand it, functional programming is like buying a pot, a fork, a handful of pasta, and tomato sauce individually, while OOP is like getting a kit that includes a pot, a fork, pasta, and tomato sauce.