Expositus

Category: programming

MVC website redirecting to logout page immediately after logging in

Over the past couple days I have been converting the authentication and authorization method on an existing MVC website to use Auth0, an OpenID provider. During the process of converting the website’s login and logout routines I ran into an issue where no matter what the website would redirect to...

A thought on Self Documenting Code

At risk of sounding like I don’t know what I am talking about, I’m writing this post to document something that most programmers have probably known for a long time, even though I only just discovered it. Often when programming we may write something like this: // Checks if user...

Don't Worry, Just Code

Use this chart to decide your first programming language. Hey, come back! I was just making a point. Hello? For those of you who stayed, charts like this are just about the worst way to choose a programming language. My Saga If you don’t want to read the long personal...

Using REST Inside Programs

Rich Hickey proposed an interesting idea in his keynote at RailsConf 2012. The idea, if I understand correctly, is that if serialization is good between servers as a way to separate concerns, then why don’t we do it between different sections of code on the same server? Using REST between...

Pseudo-Element Kung-Fu

I recently found that the content property can contain cooler stuff than just strings. For instance, you can show the href of a link in a cool popup with absolutely no JS: content: attr(href); See the Pen Pure CSS link hover popup by flyingfisch (@flyingfisch) on CodePen. This allows us...