How to write good code? We have code reviews, automatic quality approaches, but reviews take a lot of time and effort and automatic approaches can result in many false positives. What to do? What about measuring a developers cognitive load? From previous research, we know that cognitive load can be estimated using biometric sensors. Sebastian […]
I am going to stop saying I taught myself programming when I was 10 and maybe you should too
This post is about the strange idea in the programming/computer science community to brag about have taught yourself programming at a young age. It is a long post! The tl;dr is the title 🙂 The craziness of the self taught 10 year old Before I will explain why this strange myth can be harmful and […]
Performance versus elegant code, a never ending trade off [Desiderius part #19]
Generating with constraints So, the next step, actually generating things. As I wrote last week, my strategy first was to generate entirely random hands. But! I realized that if we do that, we make some assumptions about our partner, because they will have an average hand. I then wanted to generate a random hand for […]
Code for a fitness function for bidding systems [Desiderius part #18]
Last week I wrote about my strategy for creating the fitness function data, and now, I have really written the code! So, here goes. We create a deck of cards and select 13 random ones. //make a list with (all) 52 cards let theWholeDeck = cartesian allCardSuits allRanks //get one random hand and the rest of […]
A fitness function for bidding systems [Desiderius part #17]
Last week I explained why a DSL and genetic programming are such an awesome combination. So, we can almost start to mutate our ACOL code. But, there is one thing we need: a fitness function, a function that tells us we are going the right way. When mutating a string, we used the Levenshtein distance […]