Hi, my name is Joël Franusic and I’m happy to announce that I am, once again, a developer advocate at Okta, focusing on the Python and Go communities.
(Why do I say “once again”? Because six years ago, I started my Okta career as a developer advocate but over the course of time I worked in a series of other roles including: “Software Engineer”, “Technical Marketing Manager”, and “Product Marketing Manager”)
This blog post has two parts:
- An introduction to myself and my personal mission statement
- An example of how to run Python from inside of a web browser - which is an example of how I’m putting my personal mission statement into action
The best way that I can think of to introduce myself is by sharing my “personal mission statement”. Before I do that, though, I want to give some background on why I have one in the first place.
It’s common for corporations to have a “mission statement” — a short statement on what they view as their goals.
People often mock corporate mission statements, and for good reason. Mission statements are frequently long, vague, and uninspiring. But not always! Sometimes a company will create a mission statement that is truly great: short, inspiring and so lofty it almost seems unachievable.
For example. Microsoft’s statement once was: “A computer on every desk and in every home.” This mission statement probably seemed unachievable when it was first announced by Bill Gates in 1980. Forty years later, it’s clear that this mission statement wasn’t grand enough!
One day, as I was reflecting on mission statements that sound impossible, I started brainstorming joke statements to share with a friend. In the process, I stumbled across a statement that I couldn’t stop thinking about:
“Make all software, from all time, instantly available for use by any programmer” — this is now what I consider my personal mission statement to be.
My personal mission statement:
There are a lot of ways to interpret this mission statement-which I like. I want this mission statement to be flexible and able to grow and change over time. That said, let me break down how I’m thinking about it right now:
Let’s start with the first part of the mission statement: “Make all software, from all time”. My thinking here is that, given enough time, software can be refined to the point that it’s nearly perfect, or at least its inadequacies are well understood. When software reaches this level of perfection, it doesn’t really make sense to re-write it. So, why should we have to? It should be easy to use code from any programming language in any other programming language. Most programming languages have limited support for this type of functionality, though it usually involves bindings into code written in C. Why should it end there? I want to be able to use, Haskell code from Python, Java from Lua, or Fortran from Go, and so on.
Now, for the next part of the mission statement: “instantly available”. I believe that a programmer’s code should go into production as soon as they lift their finger off the keyboard. They shouldn’t have to wait for a compile to finish, for tests to pass, or for an interpreter to reload their code. All of those things, especially testing, are important, but they should happen automatically and finish within milliseconds.
Now for the last part of the mission statement: “for use by any programmer”. My opinion is that any programmer should be able to leverage code written by another programmer, no matter what the skill level or programming language either programmer has. This distinction is important to me because nearly everything I’ve described above is already possible, but only for very experienced programmers. As William Gibson famously said, “The future is already here — it’s just not very evenly distributed.”
That all sounds great, but what are you going to do about it?
Even if you agree that the things I want to do are worthwhile, it’s still fair to ask what that means in concrete terms.
One of things that I’m passionate about is making software development more “instantly available”. There are many problems that need solving in this area. For example, much of software development today involves unnecessary waiting. As programmers, we spend a lot of time waiting for software to install, tests to pass, a deploy to finish-the list goes on and on.
It doesn’t have to be this way, though. We can and should make better tools for ourselves and each other.
Running Python in a Web Browser
This is a simple game where the goal is to write a Python function (
answer()) that takes
three numbers of a sequence as input (we label these
returns the next number in that sequence.
For example, let’s imagine that the
answer(a, b, c) function is given part of this
integer sequence as input:
In this case,
answer() would be called with the first three numbers of the sequence, like so:
answer(9, 9, 9). In this case, the correct answer would be
9 and the code
to “solve” this sequence might look something like this:
def answer(a, b, c): return 9
To win this game, you have to write a function that will be able to give the correct answer for all of the sequences that show up on the checklist below. The checklist will update as you solve for each sequence. Update the Python code below to start playing!
Edit the code above to play. No need to press a “save” button or anything. Your code will run once you’ve stopped typing for a bit.
“That’s interesting, I guess. Why should I care?”
I wanted to make something that:
- Involves writing some mildly-complex code, something just a little bit more complicated than “hello world”.
- Runs as soon as you stop typing.
- Teaches the player something new.
- Shows that it’s fairly easy, and fun, to run Python directly from a browser.
If you want to see how all of this works, just use the “View Source” functionality of your browser. The entire game is written in Python and I plan on writing an in-depth explanation of the code behind this game in a subsequent post.
That’s all for now
In closing, I hope you found my “personal mission statement” to be as thought provoking as I do and I hope that you had as much fun playing my little game as I did making it.
I’d love to hear from you in the comments below, or on Twitter.