Sol Cameron (@SolJCam) profile picture
Brooklyn, NY
Joined November 2014
Photo by Sol Cameron (@SolJCam)
Sol Cameron retweeted
🐍 Python Program Structure Quiz ❓ — Test your understanding of Python program structure. #python realpython.com/quizzes/pytho…
1
8
2,031
Sol Cameron retweeted
Does anyone actually understand Regex?
225
223
37
2,395
91,366
Building a CRUD App with FastAPI and MongoDB testdriven.io/blog/fastapi-m… Objectives: 1⃣Develop a RESTful API with Python and FastAPI 2⃣Interact with MongoDB asynchronously 3⃣Deploy a FastAPI app to Heroku #FastAPI #MongoDB
6
47
1,570
Python clean test tip: For the most part, the tests you write should cover: - all happy paths - edge/corner/boundary cases - negative test cases - security and illegal issues. 👇
12
73
3,429
You can create graphs with #Python and bokeh (and lots of other packages) Here's a sine wave plot example:
1
3
23
2,530
Need to download a file over FTP with #Python? Check out the Python's `ftplib`
1
20
1,581
You can use SequenceMatcher (difflib module) to analyze similarity between strings. 🐍 😍 #python
1
4
21
1,210
Django tip: Use the 'naturalday' filter from the 'django.contrib.humanize' library to display 'today', 'tomorrow', or 'yesterday' instead of corresponding dates. All the other dates are formatted according to the 'DATE_FORMAT' setting. Example 👇
3
13
779
Ever wondered how to capture the Zen of Python from standard output to a string? The standard lib has you covered: codecs + contextlib + + io:
2
4
408
Grateful for @charliermarsh / @astral_sh's amazing #python dev tooling work 🙏 So I was happy to interview Charlie on our @pybites podcast and ask him about uv, ruff, SW design, balancing growth / open source, and more ... 💡 Tune in here: youtube.com/watch?v=byynvdS_…
1
6
15
3,170
Python's sorted() returns a new sorted copy, the original list does not change. Calling sort() on a list on the other hand changes the list values "in place" (returning None). A simple example that shows the difference:
1
2
23
1,397
Basic caching or memoization is easy to achieve in #Python using the cache decorator from the functools module:
1
4
43
3,155
In coding, recursion is a technique where a function calls itself. But this isn't the whole story - and here, Palistha breaks down recursion into little pieces for you. You'll see some famous examples of recursion and learn how to implement it in code. freecodecamp.org/news/what-i…
1
24
184
13,190
Sol Cameron retweeted
Pydantic downloads associated with Python 3.8 are still well about our 5% threshold for dropping a Python version 😡 Go upgrade! Python 3.8 is EOF and I want to use 3.9+ features. Also, to the hero(s) trying to install pydantic with python 2.7 and 3.4, I salute you 🫡
4
9
1
105
8,558
As a developer, you should know core system design concepts. This helps show potential employers that you can turn design requirements into production-ready code. This course covers app architecture, API design, caching, networking, databases, and more. freecodecamp.org/news/learn-…
7
235
6
1,373
51,090