Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
j4mie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
j4mie
2y ago
Previous discussion: https://news.ycombinator.com/item?id=31849787 Repeating my comment from that thread: from diagrams import Diagram from diagrams.aws.compute import EC2 with Diagram("Simple Diagram"):
32.
▲
by
j4mie
3y ago
Glad someone got the reference!
33.
▲
by
j4mie
3y ago
I wrote a library a little while ago which is intended to be the simplest possible expression of this idea: https://github.com/j4mie/hotmetal/ The core implementation is only 85 lines of Python, and has no imports
34.
▲
Another reason to stop using gas
(protonsforbreakfast.wordpress.com)
7 points
by
j4mie
3y ago
|
15 comments
35.
▲
Microdot: The impossibly small web framework for Python and MicroPython
(github.com)
5 points
by
j4mie
4y ago
|
0 comments
36.
▲
by
j4mie
4y ago
I've been heavily inspired by this styleguide over the years, but I still think it's a bit too complex. A few random thoughts: - I think "services" is too much of a loaded term. I prefer "actions", and I al
37.
▲
by
j4mie
4y ago
https://github.com/dabapps/django-db-queue (I am the author) EDIT: oh hi, Andy :)
38.
▲
by
j4mie
4y ago
> This makes me think you've never dealt with untyped Python code in a large production repo. I run an agency and we maintain dozens of large, mature production projects (up to ~100k lines of code each). I do understand the argument
39.
▲
by
j4mie
4y ago
The more I think about it, the more I think that the controversy around static type annotations in Python boils down to this: Improved readability This is very subjective, and is particularly sensitive in a language like Python which
40.
▲
Django 4.1
(djangoproject.com)
289 points
by
j4mie
4y ago
|
125 comments
41.
▲
by
j4mie
4y ago
Black Midi is also the name of a rather excellent band: https://bmblackmidi.com/
42.
▲
Show HN: Django-Readers
(django-readers.org)
3 points
by
j4mie
4y ago
|
0 comments
43.
▲
Color.js
(colorjs.io)
2 points
by
j4mie
4y ago
|
0 comments
44.
▲
by
j4mie
4y ago
from diagrams import Diagram from diagrams.aws.compute import EC2 with Diagram("Simple Diagram"): EC2("web") This has a very odd API. It's using (abusing?) context managers and contextvars to do w
45.
▲
How to Find and Stop Running Queries on PostgreSQL
(adamj.eu)
125 points
by
j4mie
4y ago
|
15 comments
46.
▲
by
j4mie
4y ago
See also https://hyperview.org/
47.
▲
The PyOxy Python Runner
(gregoryszorc.com)
2 points
by
j4mie
4y ago
|
0 comments
48.
▲
MVC frameworks aren't dinosaurs but sharks
(david-dahan.com)
318 points
by
j4mie
4y ago
|
248 comments
49.
▲
by
j4mie
4y ago
You still haven't defined "large scale" or "better". And you haven't backed up your argument with any evidence.
50.
▲
by
j4mie
4y ago
What's your definition of "large codebases" here? My experience is that on Python codebases large (~100k lines) and small, type annotations are generally a net negative, particularly with a "rotating roster of many devel
51.
▲
How to Make Django Raise an Error for Missing Template Variables
(adamj.eu)
3 points
by
j4mie
5y ago
|
0 comments
52.
▲
Ernest Shackleton’s ship Endurance found off coast of Antarctica
(theguardian.com)
44 points
by
j4mie
5y ago
|
1 comments
53.
▲
by
j4mie
5y ago
Just to note: django-zen-queries doesn’t encourage you to execute querysets as soon as you define them, but rather just before you pass them to a template or serializer. This is a pattern we’ve found really useful. (I’m the author of django
54.
▲
by
j4mie
5y ago
Python is the most popular language on the planet because it’s a dynamic language, not in spite of it. If the type checker makes dynamic features difficult, ditch the type checker, not the dynamic features. I can’t wait for this pendulum
55.
▲
How a hypermedia approach can address usability concerns with multi-page apps
(htmx.org)
220 points
by
j4mie
5y ago
|
128 comments
56.
▲
by
j4mie
5y ago
My (perhap controversial) take is that static typing in Python is also a form of premature optimisation. Code should be written without static types first, and static types should only be added when absolutely necessary. 99% of the time, it
57.
▲
Your computer is leaking: a defence of dynamic types
(github.com)
1 points
by
j4mie
5y ago
|
0 comments
58.
▲
Radical Simplicity in Technology
(radicalsimpli.city)
25 points
by
j4mie
5y ago
|
4 comments
59.
▲
by
j4mie
5y ago
If you’re delegating your load balancing to something else further up the stack and would prefer a simpler WSGI server than Gunicorn, Waitress is worth a look: https://github.com/pylons/waitress
60.
▲
by
j4mie
5y ago
Not to be confused with https://bedrockdb.com/
More ›