---
title: "Sébastien Portebois (@sportebois) | Hashnode"
description: "Software architect at Ubisoft. Read the latest articles by Sébastien Portebois on Hashnode."
url: "https://hashnode.com/@sportebois"
---

@sportebois

# Sébastien Portebois

@sportebois · Montreal, QC, Canada · Joined April 2015

Software architect at Ubisoft

## Comments

[Good one 👏 Although I enjoyed Will Larson’s book, I found Tanya Reilly’s The Staff Engineer's Path: A Guide For Individual Contributors Navigating Growth and Change (https://www.goodreads.com/book/show/61058107-the-staff-engineer-s-path) was much more actionable (even to reflect/recalibrate at this level) I’m sure you’ll love this read](https://hashnode.com/posts/the-path-to-staff-engineer/6388fe6a4cd1e7e4110845b3/comment/638ce53d64b7288d8d8e5fa6)

Comment · Article · Dec 4, 2022 · [The path to staff engineer](https://hashnode.com/posts/the-path-to-staff-engineer/6388fe6a4cd1e7e4110845b3)

[Did you try timing it against the built-in cache functions Python provides? eg https://docs.python.org/3/library/functools.html It’s indeed a good way to introduce how to create custom decorators, but for this caching purpose, I’d believe the built-in implementation will be faster.](https://hashnode.com/posts/cache-your-code/5fe703346a146422083cd0e7/comment/5fe7cd976a146422083cdaff)

Comment · Article · Dec 26, 2020 · [Speed up your python code by caching](https://hashnode.com/posts/cache-your-code/5fe703346a146422083cd0e7)

[Thanks for writing this. This is such an important topic! And this is often not as easy as it seems because there are many grey areas filled with complexity and ambiguity, leading to hard dilemmas. If people like reading this, then they will love this brilliant talk from Bryan Cantrill: Andreessen's Corollary: Ethical Dilemmas in Software Engineering https://www.youtube.com/watch?v=0wtvQZijPzg I share with quite often and I believe any software engineer should watch it at least once, at least to raise awareness. Thanks again 🙏](https://hashnode.com/posts/ethics-of-software-engineering/5f98df4191c85e2865f5ff85/comment/5f99473b0cfd3a2ef8fe6ac2)

Comment · Article · Oct 28, 2020 · [Ethics of Software Engineering](https://hashnode.com/posts/ethics-of-software-engineering/5f98df4191c85e2865f5ff85)

[I forgot about this, thanks for sharing 🙏 It’s also worth noting that Beacon API isn’þ restricted by CORS policies as much as regular XHRs requests. The specs: https://www.w3.org/TR/beacon/ And some interesting story about CORS, Beacon, Chrome (and Firefox) : https://medium.com/@longtermsec/chrome-just-hardened-the-navigator-beacon-api-against-cross-site-request-forgery-csrf-690239ccccf](https://hashnode.com/posts/how-to-log-user-activities-using-the-beacon-web-api/5f9672d1fbdce372c9a5827f/comment/5f96aa95f9885b0b801805d3)

Comment · Article · Oct 26, 2020 · [How to log user activities using the Beacon Web API?](https://hashnode.com/posts/how-to-log-user-activities-using-the-beacon-web-api/5f9672d1fbdce372c9a5827f)

[Great job with the train analogy 🙌They always say story-telling is a great way to convey a message, I guess here the analogy+story telling is the magic that makes this so easy to read 👏 One key difference between real train and git branches too is that Git let you jump off your current branch to go to another one, with no time and no risk (don’t try that with real trains! 😅) When I think back to the days where we moved from SVN to Git, I think the most difficult but liberating key idea was to realize that Git is decentralized by design. What that means is that anything you do is local first. Even when you experiment with things, you cannot screw up the remote origin (until you explicitly ask to push). So there’s no reason to fear with experiment. Another key idea which was liberating was that branches and tag are super lightweight, there are only references (back in SVN, a branch was a complete copy of the file, so it came with size and latency costs). The consequence is that we should embrace branches and tag: creating a tag to experiment with a feature, some refactoring, or anything, let you easily rollback to your original state. What I mean is that once we get that Git let you do things locally without breaking the shared remote origin, and makes it easy to have parallel versions to easily create experiments, it becomes liberating, and Git becomes more than a version control tool, it becomes a workflow assistant. I don’t know if what I write makes sense, but it really changed and empowered the workflows that are possible compared to what we had a few years ago.](https://hashnode.com/posts/the-most-basic-and-essential-git-commands-walkthrough/5f9368cafbdce372c9a5696d/comment/5f94455540346172a86c1ad6)

Comment · Article · Oct 24, 2020 · [The most basic and essential GIT commands walkthrough](https://hashnode.com/posts/the-most-basic-and-essential-git-commands-walkthrough/5f9368cafbdce372c9a5696d)

[Hi Nice short introduction, thanks for sharing this 🙏. If you don’t mind, there’s one important detail though: it’s the part about HTTP being a stateless protocol. It used to be very true, with a new TCP connection established for each request (HTTP 1.0) But that was very inefficient, so HTTP 1.1 changed that to keep and re-use the TCP connection by default. But the HTTP semantics were still stateless (the underlying stack kept a state for performance reasons, but this was not visible to HTTP requests contents) And now with HTTP 2 (no already used everywhere), this connection and state start to become more visible (i.e. server push with multiple responses is possible because the client and server remain connected after the initial response). Long story short, it was purely stateless, but it became more subtle than that ;) It’s much better explained in the great A Brief History of HTTP (I could not explain these parts better than they do). And for many (too much?) technical details, Ilya Grigorik’s Introduction to HTTP/2 is a gold mine. You’ll find there this note: HTTP/2 breaks away from the strict request-response semantics and enables one-to-many and server-initiated push workflows that open up a world of new interaction possibilities both within and outside the browser. Thanks again for the introduction.](https://hashnode.com/posts/http-the-intro/5f84e3b094b1323900e0dc2c/comment/5f85960ce83ccb407537a5db)

Comment · Article · Oct 13, 2020 · [HTTP: The Intro](https://hashnode.com/posts/http-the-intro/5f84e3b094b1323900e0dc2c)

[I’m late on this one, but since this question comes quite frequently in our teams too: rule of thumbs: use f-strings if you’re sure all your users will support it (i.e. if you create a package, then the lowest version you support might be a criteria here) But if you can, f-strings are shorter, easier to read, and faster at runtime. There’s no good reason to not use them whenever you can. (re the speed, I don’t have the links here, but google will give you benchmarks about it) The only time I switch back to the .format() stuff is when them we need to build templates dynamically.](https://hashnode.com/forums/thread/string-formatting-vs-format-vs-string-literal/comment/5f6f4399ade1fb598d43a07a)

Comment · Thread · Sep 26, 2020 · [String formatting: % vs. .format vs. string literal](https://hashnode.com/forums/thread/string-formatting-vs-format-vs-string-literal)

[👏 Other useful tools: https://regex101.com/ After many years of using tools (I love regexes!), I settled down on this one (rather than others) for a few reasons: easy support of whitespace (when you have to deal with more than just spaces) support various languages. Not all regexes are exactly the same code generation. Ease the process to escape things built-in tests support! http://www.regexplained.co.uk/ which builds a railroad diagram of the regex pattern you give it. Makes it easy to review/read/understand a new pattern.... as they grow they can become hard to read easily, this helps a lot!](https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5/comment/5f6f414860599c596c472f2e)

Comment · Article · Sep 26, 2020 · [REGEX - It's a Piece of Cake!](https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5)

[If you like to learn more about it, Jean Yang hosted a live chat with Jeff Bezanson (co creator of Julia) a few days ago: https://www.twitch.tv/videos/710412046](https://hashnode.com/posts/my-first-impression-of-julia/5f3cdb902324e0296c44f884/comment/5f3eca2bf15f914451ce5989)

Comment · Article · Aug 20, 2020 · [My First Impression of Julia](https://hashnode.com/posts/my-first-impression-of-julia/5f3cdb902324e0296c44f884)

[As you wrote, there’s regularly some debate. That’s why it’s also useful to have an authoritative source of truth to confirm what a server should do if we want to make it follow the standards. And that’s where RFC 7231 (section 4.3.4) comes in to confirm what you wrote: If the target resource does not have a current representation and the PUT successfully creates one, then the origin server MUST inform the user agent by sending a 201 (Created) response. If the target resource does have a current representation and that representation is successfully modified in accordance with the state of the enclosed representation, then the origin server MUST send either a 200 (OK) or a 204 (No Content) response to indicate successful completion of the request. src: https://tools.ietf.org/html/rfc7231#section-4.3.4 Every time such discussion starts in a design doc review or code review, following RFC is very helpful. We need very strong reason and special edge cases to pick non standard behaviors.](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf/comment/5f12efb9a02890430440956b)

Comment · Article · Jul 18, 2020 · [HTTP PUT - Response Codes Explained](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf)
