HackerTrans
TopNewTrendsCommentsPastAskShowJobs

durable_queue

no profile record

Submissions

Demolition Britain – where new-build schools are too dangerous for pupils

newstatesman.com
2 points·by durable_queue·3 lata temu·1 comments

comments

durable_queue
·2 lata temu·discuss
null can be avoided with a good linter
durable_queue
·2 lata temu·discuss
Always an option, but I dislike changing global settings on the system. It makes it harder to hop between projects and it's slower when onboarding.
durable_queue
·2 lata temu·discuss
A problem I've had trying to do this for local dev is that the DNS name of the Keycloak server is "keycloak" inside of the Docker network, but "localhost" from the the outside. The user's browser will be redirected to localhost (since it's outside of the Docker network) but then there is a mismatch between hosts (it expects "keycloak" not "localhost") when it comes to an API server verifying the token.

Anyone figured this out?
durable_queue
·3 lata temu·discuss
https://archive.ph/E4mgv
durable_queue
·3 lata temu·discuss
> Weird scoping rules? This will rarely if-ever impact you in the real world.

It can be a problem if you have nested loops. Things would have been less error-prone if Python introduced a let keyword.

> The list comprehensions in Python are incredible, in fact people over-use them all the time in really gnarly ways. Like [x for x in [y for y in [z... and the consistency with the same system supporting all datastructures (sets, dictionaries, tuples, etc) is very intuitive.

They have been completely surpassed by those in other languages. For example, you can't do this in Python list-comprehensions:

    xs = [
      if some_flag:
        yield 1
      
      for y in ys:
        yield y * 2
    ]
> Monkey patching is a liability? This is like saying a car is a liability because I am free to drive it off a cliff. You're technically correct, but you are the one in the drivers seat. The ecosystem does not do or encourage this behavior, with the exception of things like gevent where it is required.

Only if you are a solo developer. Unfortunately the Python ecosystem is built around things that compose poorly like annotations and exceptions.

> Mutability by default is common in virtually every language. You can't say it is good or bad, it's just a fact of life. There is a cost to immutable datastructures unless the language is designed from the get-go to utilize them efficiently.

It's a mistake, even though it is common. The cost is low in true FP langauges, because they can be optimized away.

> Lack of support for functional programming? Functions are first class in Python. You can pass them around all over the place, as args, put them in datastructures, etc. When you combine this with comprehensions and generators it is very powerful and lets you do lazy evaluation of complex transformations. There are lots of built-in tools in the stdlib to do functional programming. This is just straight up false.

Python lacks do-notation. It doesn't give you tail-call optimization. Function calls are slow. Immutability is very much opt-in. Lambdas can only be one line. If you do lots of FP in Python, you're in for a bad time.

> Deployment story remains extremely painful - again false, I do not know why people say stuff like this. Create a virtualenv (built into the standard library), and pip install your requirements. If you are using conda and all the other noise you are going to have problems.

In other language stacks it's pretty trivial to cross-compile from e.g. MacOS to Linux and things just work. In Python this basically requires Docker. Note that Pip install doesn't give reproducible builds. There's nothing like Go static binaries out-of-the-box, either.

> Slow execution of pure python code - this is the ONLY area where you are perhaps correct... but compared to what? For a lot of use cases, the speed of Python is not a problem. When it becomes a problem, you off-load that responsibility to something else. There is also something to be said for writing software quickly, which is a perk of Python for sure.

Python is about 100x slower than mainstream GC languages such as Java and C#. Having to drop into native code is not always possible and it's extra work besides.
durable_queue
·3 lata temu·discuss
MindGeek should buy Tumblr and allow adult content again.

Tumblr's success was that it was an adult space that wasn't strictly pornography. It was a "cool sex" to PornHub's "hot sex".
durable_queue
·3 lata temu·discuss
The generated JS is only somewhat readable, but you're not supposed to be reading the F#.
durable_queue
·3 lata temu·discuss
I love the presentation, however this is optimizations on data transfer. I was hoping for something CRDT-specific.
durable_queue
·3 lata temu·discuss
[flagged]