Christian Heilmann

You are currently browsing the Christian Heilmann blog archives for September, 2024.

Archive for September, 2024

Quick tip: using flatMap() to extract data from a huge set without any loop

Friday, September 6th, 2024

A capybara wearing a flat cap and holding a pint with the name Flat Cap crossed out and .flatMap() instead.

I just created a massive dataset of all the AI generated metadata of the videos of the WeAreDeveloper World Congress and I wanted to extract only the tags.

The dataset is a huge array with each item containing a description, generated title, an array of tags, the original and their title, like this:

{
  "description": "The talk begins with an introduction to Twilio…", 
  "generatedtitle: "Enhancing Developer Experience: Strategies and Importance",
  "tags": ["Twilio", "DeveloperExperience", "CognitiveJourney"],
  "title": "Diving into Developer Experience"
}

What I wanted was an alphabetical lost of all the tags in the whole dataset, and this is a one-liner if you use flatMap():

data.flatMap(d => d.tags);

You can sort them alphabetically with sort():

data.flatMap(d => d.tags).sort();

And you can de-dupe the data and only get unique tags when you use Set():

new Set(data.flatMap(d => d.tags).sort());

You can try this in this codepen.

No more “Expert, Intermediate, Beginner”: Classifying talks in Call for Papers/Conference agendas

Friday, September 6th, 2024

Old crack intro offering a level skipper for a game

I am currently working on creating the new Call for Papers for the next WeAreDevelopers World Congress and one of the feedback items we got was that levels like “Expert, Intermediate and Beginner” don’t make much sense. First of all, speakers do not choose the right level as they are worried that a beginner or expert talk will not attract enough audience. Secondly, attendees might feel peer pressure to not watch the “beginner” talk, as that might be more suited to be a workshop.

So I thought that instead of levels, I ask speakers for classifications:

  • Case Study – “How we use Kololores.js in company Blumentopferde and how it made us 30% more effective”
  • Deep Dive – “Looking under the hood of Kokolores.js and why it works so well”
  • Technology Introduction – “How Databaserandomising will change the way you think about structured databases”
  • Tool Explanation – “Taking the pain out of Kokolores.js with Pillepalle – a visual interface and API to get you started quicker”
  • Thought Piece – “Kokolores.js isn’t the answer – we need to approach this in a different way”
  • Expert Advice – “How we scaled Kokolores.js to 231242 users and what to look out for”
  • Level Up – “So you started using Kokolores.js – here is how to become more efficient with it”
  • Learnings – “How we got rid of Kokolores.js and what it meant for our users”
  • Creative – “Did you know you can use Kokolores.js to do Pillepalle?”

This should make it easier for audiences to pick a talk without having to value themselves. What do you think?

Eine Milliarde neuer Entwickler dank KI? Linkliste

Monday, September 2nd, 2024

Hier sind die Resourcen meines Artikels im AI Magazin zum selbst nachlesen:

Die meisten dieser Artikel waren Teil des Dev Digest Newsletters, den ich jede Woche an 150,000 subscriber schicke.