Greg
banner
tekkengreg.com
Greg
@tekkengreg.com
Did you know? 📚 A lemma is the root form of a word — the one dictionaries are built from. Interesting 🙂 #ido #linguistics
August 8, 2025 at 8:42 AM
Python for JS Devs
The Zen of Python 🧘

#PythonForJSDevs #javascript #js #python #tekkengreg
June 19, 2025 at 5:00 AM
Python for JS Devs
Generators & Lazy Iteration

#PythonForJSDevs #javascript #js #python #tekkengreg
June 18, 2025 at 9:00 AM
Python for JS Devs
List, Set, Dict, Tuple?

#PythonForJSDevs #javascript #js #python #tekkengreg
June 17, 2025 at 8:00 AM
Python for JS Devs
Built-ins & The Standard Library

#PythonForJSDevs #javascript #js #python #tekkengreg
June 16, 2025 at 11:00 AM
Python for JS Devs
Importing Modules

#PythonForJSDevs #javascript #js #python #tekkengreg
June 13, 2025 at 6:00 PM
Just reused this and forgot how neat it is:

switch (true) {
case score > 90:
// ...
}

Great way to clean up messy if/else blocks.
Looks odd, but super readable once you get used to it 😎

#JavaScript #DevTips
June 13, 2025 at 9:18 AM
Python for JS Devs
Try / Catch / Finally

#PythonForJSDevs #javascript #js #python #tekkengreg
June 12, 2025 at 6:15 PM
Saw this in some code today:

if (user && user.address && user.address.city) { // ... }

Had a little 2015 flashback 😅

You can just write:
user?.address?.city

So much cleaner.
Use it.

code today:

if (user && user.address && user.address.city) { // ... }

Had a little 2015 flashback 😅

You can just write:
user?.address?.city

So much cleaner.
Use it.

#JavaScript #TypeScript #DevLife
June 12, 2025 at 1:10 PM
Python for JS Devs
Type Annotations

#PythonForJSDevs #javascript #js #python #tekkengreg
June 11, 2025 at 10:30 AM
Just found out you can do this in JS:

const last = arr.at(-1);

Way cleaner than arr[arr.length - 1] 😮‍💨
Also works for arr.at(-2) etc.

Not new, but somehow I missed it.
Sharing in case you did too 🤷‍♂️

d out you can do this in JS:

const last = arr.at(-1);

Way cleaner than arr[arr.length - 1] 😮‍💨
Also works for arr.at(-2) etc.

Not new, but somehow I missed it.
Sharing in case you did too 🤷‍♂️

d out you can do this in JS:

const last = arr.at(-1);

Way cleaner than arr[arr.length - 1] 😮‍💨
Also works for arr.at(-2) etc.

Not new, but somehow I missed it.
Sharing in case you did too 🤷‍♂️

#JavaScript #TypeScript #DevLife
June 11, 2025 at 7:25 AM
Python for JS Devs
Virtual Environments & Dependency Management
#PythonForJSDevs #javascript #js #python #tekkengreg
June 10, 2025 at 7:03 AM
Python for JS Devs
Classes Made Simple

#PythonForJSDevs #javascript #js #python #tekkengreg
June 9, 2025 at 6:37 AM
Python for JS Devs
None is the new null

#PythonForJSDevs #javascript #js #python #tekkengreg
June 6, 2025 at 6:01 AM
Python for JS Devs
List vs Array: Comprehensions

#PythonForJSDevs #javascript #js #python #tekkengreg
June 5, 2025 at 8:11 AM
Python for JS Devs
List vs Array

#PythonForJSDevs #javascript #js #python #tekkengreg
June 4, 2025 at 8:24 AM
Python for JS Devs
Truthy / Falsy

#PythonForJSDevs #javascript #js #python #tekkengreg
June 3, 2025 at 8:37 AM
Python for JS Devs
Objects vs Dicts

#PythonForJSDevs #javascript #js #python #tekkengreg
June 2, 2025 at 8:57 AM
May 30, 2025 at 8:46 AM
Python for JS Devs
Objects vs Dicts

#PythonForJSDevs #javascript #js #python #tekkengreg
May 29, 2025 at 8:41 AM
May 28, 2025 at 7:37 AM
May 27, 2025 at 8:33 AM
May 26, 2025 at 8:00 AM
Oups j'en ai trop dit 🙊 🙊

#deepseek #censure #Chine
January 29, 2025 at 7:58 AM
January 28, 2025 at 9:48 AM