A Java Geek weekly 12

9 Python Built-In Decorators That Optimize Your Code Significantly
  • @lru_cache
  • @property
  • @property.setter
  • @contextmanager
  • @classmethod
  • @staticmethod
  • @cached_property
  • @total_ordering
The Anatomy of an API

While the report contains a lot of advertisement on the company’s product, it still contains interesting insight:

HTTP methods are underutilized, and engineers generally use the POST method to do the work of PUT, PATCH, and DELETE operations.

74% of all requests were made over HTTPS, while 26% used the HTTP protocol.

Most API requests are not made directly through end clients but from various server-side back-ends.

19 Sweet Python Syntax Sugar for Improving Your Coding Experience
  • Union Operators
  • Type Hints
  • F-Strings
  • TIL: Use An Ellipsis as a Placeholder for Unwritten Code
  • Decorators in Python
  • List Comprehension
  • Lambda Functions
  • Ternary Conditional Operators:
  • Use the "Enumerate" Method To Iterate
  • Context Manager
  • Fancy Slicing Tricks
  • Walrus Operator
  • Continuous Comparisons
  • Zip Function
  • TIL: Swapping Two Variables
  • TIL: Destructuring Assignments
  • TIL: Iterables Unpacking with Asterisks
The Open Source licensing war is over

A strong opinion, with some interesting points:

It’s time for the open source Rambos to stop fighting and agree that developers care more about software’s access and ease of use than the purity of its license.

Per Resource Events
Per Resource Events is a minimal protocol built on top of HTTP that
allows clients to receive notifications directly from any resource of
interest.  The Per Resource Events Protocol (PREP) is predicated on
the idea that the most intuitive source for notifications about
changes made to a resource is the resource itself.
Using AsciiDoc to write my two books

I, for one, am also a happy AsciiDoc and Asciidoctor user

8 Levels of Using List Comprehension in Python

Interesting that one level is to replace higher-order functions. Indeed, Python creator’s position is to remove them.

Braid-HTTP: Synchronization for HTTP

Braid is composed of four independent extensions to HTTP:

  1. VERSIONING of resource history
  2. UPDATES sent as patches
  3. SUBSCRIPTIONS to updates over time
  4. MERGE-TYPES that specify OT or CRDT behavior
Announcing async fn and return-position impl Trait in traits

A nice Christmas gift for Rust users!

Why Most #SoftwareEngineering #KPIs are Bullshit and What to Do About it in 2024

I definitely need to wrote my own thoughts on this subject.

Hypertext Transfer Protocol Field Name Registry

The exhaustive list of all registered HTTP Headers

Learning by doing: An HTTP API with Rust

When I started working on this post, I had another idea in mind: I wanted to compare the developer experience and performance of Spring Boot and GraalVM with Rust on a demo HTTP API application. Unfortunately, the M1 processor of my MacBook Pro had other ideas.

Hence, I change my initial plan. I’ll write about the developer experience of developing the above application in Rust, compared to what I’m used to with Spring Boot.

Nicolas Fränkel

Nicolas Fränkel

Developer Advocate with 15+ years experience consulting for many different customers, in a wide range of contexts (such as telecoms, banking, insurances, large retail and public sector). Usually working on Java/Java EE and Spring technologies, but with focused interests like Rich Internet Applications, Testing, CI/CD and DevOps. Also double as a trainer and triples as a book author.

Read More
A Java Geek weekly 12
Share this