Programming Language Evolution
1️.Imperative languages (C, Java, PHP, Python, JavaScript). Step-by-step instructions.
2️.Functional languages (Haskell, Lisp) Expressions and transformations.
3️.Systems languages (C, Rust) Memory control focus.
4️.Scripting languages (PHP, Python, JS) Rapid development focus.
Node.js (released in 2009) is a runtime that allows JavaScript to run: On servers, On your computer, Outside the browser. Before Node.js: You couldn’t use JavaScript for backend. After Node.js: You could write: REST APIs, Authentication, File system operations, Real-time servers, CLI tools Using JavaScript.
JavaScript = Programming language. Node.js = Runtime environment that runs JavaScript on the server. Frontend JS and Backend Node.js are the same language, just different environments.
The Frontend Framework. React. React is a UI library built using JavaScript. It gives: Components, State management, Virtual DOM, Hooks. React is not a language. It is a tool built on top of JavaScript.
The Backend Runtime. Node.js. Node.js lets JavaScript: Access file system, Open network sockets, Create servers, Handle requests. It’s an environment, not a language.
1.Before Node.js 2009. Backend = PHP, Java, Python, Ruby. Frontend = Javascript
2.After 2009 the rise of Single-Page Applications (SPAs). Around 2010, frontend apps became much more complex. Frameworks like: AngularJS (2010). React (2013, but built on this wave). Shifted the frontend from: “HTML templates rendered by backend” to “Frontend app talks to backend API”. Backend stopped rendering pages. Backend became an API provider.
3.API Revolution. Before 2010: Backend = Render HTML. After 2010: Backend = REST APIs JSON responses, Microservices, Mobile backends. Because: Smartphones exploded after: iPhone, Android. Now backend had to serve: Web apps, Mobile apps, Third-party integrations, Backend became API-first.
4.Pre-2010 Backend Identity: Language-defined (Java dev, PHP dev). Server-rendered HTML. Monolithic apps. Blocking request-response model. Post-2010 Backend Identity: API-driven, Event-driven, Cloud-native, Often JavaScript-based, Microservice-oriented, Integrated with frontend deeply

Tinggalkan komentar