home.social

Search

8 results for “bbelderbos”

  1. I wouldn't recommend rewriting all your apps in .

    Python is excellent for most of the software I build.

    But what if profiling shows that one part of your application is too slow?

    Optimize the Python code first. If that's not enough, consider moving just that part to Rust and exposing it to Python using PyO3.

    Keep Python where it's productive, use Rust where the numbers justify it.

    Knowing when to use Rust is just as important as knowing how to use it.

  2. That's what we teach in our Scripter to Rust program: build a Rust library, integrate it with Python, benchmark it and reason about the trade-offs.

    We're kicking off another cohort on Monday -> scriptertorust.com/cohort/

  3. How's this for a paradox?

    AI makes generating content extremely cheap.

    But that potentially makes trusted, verified, attributable and well-organized knowledge more valuable. 📈

    I don't think and carefully curated resources are going away. If anything, they'll stand out even more in a flood of synthetic content. 💡

    I don't have a crystal ball 🔮 of course, but I'll be betting on depth over volume.

    How do you see the future of deeper in the age of ?

  4. Rust code that compiles isn't necessarily well-designed Rust code.

    Here's a real example from a week 4 PR review in our Scripter to Rust cohort.

    A student building a JSON parser added this helper method:

    pub fn as_array(&self) -> Option<&Vec<JsonValue>>

    It compiled and tests passed.

    But Jim pointed out something worth improving:

    "This is returning a reference to a Vec instead of a slice…

  5. callers don't need access to Vec-specific methods, which is another way of saying you leak implementation details about your API."

    The suggested change:

    pub fn as_array(&self) -> Option<&[JsonValue]>

    A small but important change.

    Callers can still read and iterate over the elements, without depending on how they're stored internally.

    And if we change the underlying implementation later, we may not need to change the public API.

  6. The same principle applies to function parameters: prefer &[T] over &Vec<T> when you only need a sequence of elements.

    These are the kinds of discussions we have during our weekly calls and code reviews on GitHub.

    It's not just about making code compile. It's about understanding the design decisions behind it. 

    And this goes beyond just Rust, it sharpens you as an engineer.

  7. As one previous student, Ben L., put it, iterating with Jim on his code helped make it "succinct, clear, idiomatic Rust code."

    And Jim P., another student, said the code reviews helped him understand "not just how to make my code work, but why one approach might be better than another."

    That's the value of having experienced engineers review your work and challenge your decisions. 

    Our next Scripter to Rust cohort starts next Monday, November the 30th. 🦀

  8. If you'd like to develop that understanding through a real project and weekly reviews and sessions, we'd love to have you join us.

    More info: scriptertorust.com/cohort/

Share on Mastodon

Enter the server where you have an account.