Dart ✅ trailing commas everywhere, encouraged JavaScript ✅ trailing commas allowed in modern JS (ES5+) Python ✅ trailing commas allowed in lists and tuples JSON ❌ strictly forbidden, will break parsing C / C++ ❌ not allowed in most contexts Java ❌ not allowed SQL ❌ will cause a syntax error HTML ❌ not applicable, different syntax entirely The general rule of thumb is: Modern interpreted/compiled languages — usually fine, sometimes encouraged Data formats like JSON — never, it's a spec violation Older strictly typed languages like Java/C — not allowed JSON is the one that bites people the most because it looks similar to JavaScript object syntax where trailing commas ARE allowed, but JSON the format explicitly forbids them. You'll get a parse error every time.
compileSdk — the version of Android SDK you're compiling AGAINST targetSdk — the version of Android you're optimizing/testing FOR minSdk — the OLDEST Android version that can install your app
minSdk → floor — minimum Android version to install
targetSdk → ceiling — newest Android you've tested and optimized for
compileSdk → tooling — what SDK version your build tools use, irrelevant to users
minSdk→ blocks install on the lowest version.
VS CODE
|
Make a Github Repo and clone it |
|
|
Open the Local Copy with VS Code |
|
|
Make Virtual Environment |
python -m venv venv |
|
Activate Virtual Environment |
.\venv\Scripts\activate |
|
Upgrade pip |
(venv)python -m pip install --upgrade pip |
|
Install Flask |
(venv)pip install flask |
|
Install Gunicorn for deploying online |
(venv)pip install gunicorn |
|
Install python dot env |
(venv)pip install python-dotenv |
|
Extract requirements |
(venv)pip freeze > requirements.txt |
|
Edit requirements.txt: |
Change == to <= |
|
Make .gitignore file with the contents: |
venv/ __pycache__ |
|
Make app.py file in root |
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/") def index(): return render_template('index.html') |
|
Make templates folder and index.html |
Basic HTML file. |
|
Get out of Virtual Environment |
(venv)deactivate |
|
Test and Debug Your Code |
flask run |
|
Push Code to Github |
and publish branch |
|
Go to Render.com and add your code as Web Service |
Select your branch |
|
In the start command put |
gunicorn 'app:app' |
yield vs. return
SQLAlchemy has a Connection Pooling mechanism by default. That means with yield you are creating a single session for each request. When you use return you are using a single database connection for all your app.
FastAPI
Database/Postgress/JSON
|
0 currencies KWD name "Kuwaiti dinar" symbol "د.ك"
|
|
def populate_countries(): response = requests.get('https://restcountries.com/v3.1/all') data = response.json()
for item in data: currencies = item.get('currencies', {}) currency_data = next(iter(currencies.values()), {}) currency_code = list(currencies)[0] |
TODO
Common Screen Resolution:
Font Asset Creator for TextMeshPro TMP
View Post Alt+Shift Shortcut
Scroll Panel
In General Tips
Video Player Unity
Java - abandoned due to new job To Research|
Scanner scanner = new Scanner(System.in); String myString = scanner.next(); int myInt = scanner.nextInt(); scanner.close();
System.out.println("myString is: " + myString); System.out.println("myInt is: " + myInt); |
|
// convert into int int value = (int)data; |
|
A.compareTo(B); |
Inheriting the constructor
|
Modifier |
Class |
Package |
Child Class |
Global |
|
public |
✅ |
✅ |
✅ |
✅ |
|
protected |
✅ |
✅ |
✅ |
❌ |
|
no modifier |
✅ |
✅ |
❌ |
❌ |
|
private |
✅ |
❌ |
❌ |
❌ |
|
int[] finalArray = new int[finalRangeSize]; |
Start considering the possibility that your senior/colleague might just be straight up lying about knowing something when they know nothing about it.
I have seen this happen a lot in my career. Instead of admitting that they don't know what they are talking about, they like to make up stuff and if you take their made-up stuff seriously, it will cause hours of frustration for you trying to conjure up a figment of their imagination to actual work.
#work #career