Programming Language Comparisons βοΈ¶
Mentor's Note: Learning your first language is hard. Learning your second is easy! This page helps you see that while Syntax changes, the Logic is universal. π‘
ποΈ Core Logic Side-by-Side¶
1. Printing to Screen¶
How to say "Hello" to the world.
| Language | Code Syntax |
|---|---|
| Python | print("Hello") |
| Java | System.out.println("Hello"); |
| C | printf("Hello\n"); |
| JavaScript | console.log("Hello"); |
| PL/SQL | DBMS_OUTPUT.PUT_LINE('Hello'); |
2. Variables (Storing Data)¶
Labeled boxes for your information.
| Language | Code Syntax | Type |
|---|---|---|
| Python | x = 5 |
Dynamic πͺ |
| Java | int x = 5; |
Static π§± |
| JavaScript | let x = 5; |
Dynamic πͺ |
| PL/SQL | v_x NUMBER := 5; |
Static π§± |
π¦ Logic & Control Flow¶
3. Conditional (If-Else)¶
Making decisions based on a condition.
π Quick Reference Links¶
- Python: Intro | Foundations
- Java: Intro | OOP Basics
- SQL: Basics | PL/SQL Foundations
π‘ Pro Tip: "One interface, multiple implementationsβthat's the power of being flexible!" - Anonymous