Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

fix: Use of undefined variables #2

Open
wants to merge 4 commits into
base: source
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion _drafts/2017-a-pragmatic-haskell.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
extends: default.liquid

title: A Productive Haskell
subtitle: ""
date: 26 Aug 2017 00:00:00 +0000
humandate: 26th of August 2017
path: 2017/productive-haskell
social_img: null
comments: null
translations: null
css: null
---

Back in University I worked on a project, which bridged the gap between Java and Haskell.
It was a tool for teaching students the basics of computational geometry.
That might sound frightening in the beginning, but it really was not.
Expand Down Expand Up @@ -103,4 +110,4 @@ It follows a pragmatic approach.

Rust is a big language and it gets bigger every day.
It takes a long time to master. Depending on your background, it might be years.
Compare that to Go, where you can be productive after a few days.
Compare that to Go, where you can be productive after a few days.
7 changes: 7 additions & 0 deletions _drafts/2017-cat.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
Zero-Copy Unix cat Command for Linux and macOS using splice and copyfile

In a previous post, I analyzed the performance of one of the most simple Unix commands: `yes`.
Expand Down
7 changes: 7 additions & 0 deletions _drafts/2017-programmer-folklore.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
All too often we use terminology without knowing the origin.
I find it fascinating to read about the etymology of computer terms. Here are some of my
highlights.
Expand Down
9 changes: 8 additions & 1 deletion _drafts/2017-rust-hackathon.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
# A Hackathon with Rust

At trivago's recent Hackathon I wanted to try something completely new.
Expand Down Expand Up @@ -121,4 +128,4 @@ Especially during protoyping this can be a pain.

Using the MongoDB driver was an interesting experience. Before I only used it with dynamically typed languages.
Sometimes it felt like I had to work around the type system to store data as pure JSON.
I know that this could be done more elegantly with serde, or maybe by using the json!() macro that was provided, but given the tight timeframe, I tried to "hack" it.
I know that this could be done more elegantly with serde, or maybe by using the json!() macro that was provided, but given the tight timeframe, I tried to "hack" it.
7 changes: 7 additions & 0 deletions _drafts/2017-rust-vs-technical-debt.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
The tunnels below New York are 600 inch in diamater.
That's because the ..
That's because the ..
Expand Down
7 changes: 6 additions & 1 deletion _drafts/2017-taohpa-ripgrep.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
extends: default.liquid

title: The Architecture of High-Performance Applications - ripgrep
subtitle: ""
date: 10 Oct 2017 00:00:00 +0000
humandate: 10th of October 2017
path: 2017/what-makes-rust-fast
social_img: null
comments: null
translations: null
css: null
---

tl;dr: Rust is a safe systems-programming language. But besides its guaranteed safety, it also rivals C/C++ in speed for some datasets.
Let me show you the tricks that Rust make Rust fast, which are possible but very hard to pull off in other languages.
I will talk about agressive compile-time optimizations, zero-cost abstractions, fearless concurrency, and more.
Concrete examples come from tools like ripgrep, serde, tokio and diesel.
Concrete examples come from tools like ripgrep, serde, tokio and diesel.
4 changes: 4 additions & 0 deletions _drafts/2017-unsafe-code-is-unsafe.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
extends: default.liquid

title: Unsafe Code is Unsafe
subtitle: ""
date: 31 Aug 2017 00:00:00 +0000
humandate: 31st of August 2017
path: 2017/unsafe-code-is-unsafe
social_img: 2017_unsafe_code.png
comments: null
translations: null
css: null
---

bla bla
9 changes: 8 additions & 1 deletion _drafts/2017-why-the-hate.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
# Why the hate?

You're not a worse programmer for using PHP.
Expand All @@ -19,4 +26,4 @@ As long as you feel productive and happy, don't listen to nay-sayers.
> Of view
> Tangled up in blue

- Bob Dylan
- Bob Dylan
7 changes: 7 additions & 0 deletions _drafts/flat_map-is-scary.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
```rust
fn main() {
let meta = vec!["bla=blub,x=y", "foo=bar"];
Expand Down
9 changes: 8 additions & 1 deletion _drafts/perf.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
subtitle: ""
humandate: null
social_img: null
comments: null
translations: null
css: null
---
Add image for chunk scatter
http://blog.cowchimp.com/chunk-scatter-http-chunked-response-analysis-tool/

Expand All @@ -9,4 +16,4 @@ https://developers.google.com/speed/pagespeed/insights/

WorldPing

Cloudflare settings
Cloudflare settings
15 changes: 8 additions & 7 deletions _layouts/footer.liquid
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<footer>
<ul class="links">
{% if title != "" %}
{% if is_post %}
<li class="post-navigation">
{% if previous.path != "/" %}
<a href="/{{ previous.path }}"><code>&larr; {{ previous.title }}</code></a>
{% if previous %}
<a href="/{{previous.path}}"><code>&larr; Previous post</code></a>
{%- endif %}
{% if next.path != "/" %}
<a href="/{{ next.path }}"><code>{{ next.title }} &rarr;</code></a>
<a href="/"><code>&#8962; Home</code></a>
{% if next %}
<a href="/{{next.path}}"><code>Next post &rarr;</code></a>
{%- endif %}
</li>
{%- endif %}
Expand All @@ -16,7 +17,7 @@
What follows is an ultra clunky way to iterate over a list of social media links.
This would be much easier with an array slice function.
{%- endcomment %}
{%- if comments %}
{%- if comments != nil %}
<li>💬 Comments available on
{%- for comment in comments %}
{%- if forloop.length == forloop.index %}
Expand All @@ -34,7 +35,7 @@
{%- endfor %}
</li>
{%- endif %}
{%- if translations %}
{%- if translations != nil %}
<li>📖 Translated into
{%- for translation in translations %}
{%- if forloop.length == forloop.index %}
Expand Down
6 changes: 6 additions & 0 deletions about/index.liquid
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
extends: default.liquid
title: Hi!
subtitle: ""
humandate: null
route: about
static: true
social_img: null
comments: null
translations: null
css: null
---

<p>
Expand Down
5 changes: 5 additions & 0 deletions blog/2009-running-legacy-code.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
extends: default.liquid

title: Running Legacy Code
subtitle: ""
date: 08 Nov 2009 00:00:00 +0000
humandate: 8th of November 2009
path: 2009/running-legacy-code
social_img: null
comments: null
translations: null
css: null
---

This short article deals with a serious problem in software development: bit rot.
Expand Down
4 changes: 4 additions & 0 deletions blog/2010-overkill-java-as-a-first-programming-language.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
extends: default.liquid

title: "Overkill: Java as a First Programming Language"
subtitle: ""
date: 12 Feb 2010 00:00:00 +0000
humandate: 12th of February 2010
path: 2010/overkill-java-as-a-first-programming-language
comments:
- <a href="https://news.ycombinator.com/item?id=13926407">Hacker News</a>
social_img: null
translations: null
css: null
---

I recently talked to a student in my neighborhood about his first programming
Expand Down
7 changes: 6 additions & 1 deletion blog/2010-sort-cpp.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
extends: default.liquid

title: Howto Sort a Vector or a List in C++ using STL
subtitle: ""
date: 27 Jan 2010 00:00:00 +0000
humandate: 27th of January 2010
path: 2010/howto-sort-a-vector-or-a-list-in-c-using-stl
social_img: null
comments: null
translations: null
css: null
---

A little code snippet that people need very often.
Expand Down Expand Up @@ -121,4 +126,4 @@ To run it, execute the resulting binary.
```
Vector: 12 5 1
List: 12 5 1
```
```
4 changes: 4 additions & 0 deletions blog/2010-why-i-love-text-files.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
extends: default.liquid

title: Why I Love Text Files
subtitle: ""
date: 10 Jan 2010 00:00:00 +0000
humandate: 10th of January 2010
path: 2010/why-i-love-text-files
comments:
- <a href="https://news.ycombinator.com/item?id=1801401">Hacker News</a>
social_img: null
translations: null
css: null
---

Text files are the single most important way we can communicate with computers. It's no coincidence that they are also the most important way to communicate with other human beings. What we can achieve with text files is invaluable: Write it once and refer to it whenever you want to get the message across in the future. Write a program (it's just text), save it and let the machine execute it whenever you like. Write another text file which contains the rules for the execution of your program and the computer runs your program exactly as you specified (`cron` files do that on Unix).
Expand Down
5 changes: 5 additions & 0 deletions blog/2011-are-you-a-programmer.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
extends: default.liquid

title: Are you a Programmer?
subtitle: ""
date: 20 Oct 2011 00:00:00 +0000
humandate: 20th of October 2011
path: 2011/are-you-a-programmer
social_img: null
comments: null
translations: null
css: null
---

My geography teacher once told the story of her first lecture at University.
Expand Down
5 changes: 5 additions & 0 deletions blog/2011-on-hard-work.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
extends: default.liquid

title: On Hard Work
subtitle: ""
date: 13 Oct 2011 00:00:00 +0000
humandate: 13th of October 2011
path: 2011/on-hard-work
social_img: null
comments: null
translations: null
css: null
---

Great people get shaped by their achievements
Expand Down
5 changes: 5 additions & 0 deletions blog/2011-tools.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
extends: default.liquid

title: Tools
subtitle: ""
date: 30 Oct 2011 00:00:00 +0000
humandate: 30th of October 2011
path: 2011/tools
social_img: null
comments: null
translations: null
css: null
---

As long as I can think, Computer Science has been infected by religious flamewars.
Expand Down
6 changes: 5 additions & 1 deletion blog/2017-digitial-clocks.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
extends: default.liquid

title: Modern Day Annoyances - Digital Clocks
subtitle: ""
date: 7 Nov 2017 00:00:00 +0000
humandate: 7th of November 2017
path: 2017/digital-clocks
social_img: 2017_digital_clocks.png
comments: null
translations: null
css: null
---

This morning I woke up to the beeping noise of our oven's alarm clock.
Expand Down Expand Up @@ -88,4 +92,4 @@ Now I can understand why [it took Steve Jobs two weeks to decide on a washing ma
> We spent some time in our family talking about what's the trade-off we want to make.
> We spent about two weeks talking about this. Every night at the dinner table

He chose a Miele Washing machine in the end - without a digital clock, I assume.
He chose a Miele Washing machine in the end - without a digital clock, I assume.
5 changes: 4 additions & 1 deletion blog/2017-go-vs-rust.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extends: default.liquid

title: Go vs Rust? Choose Go.
subtitle: ""
date: 15 Sep 2017 00:00:00 +0000
humandate: 15th of September 2017
path: 2017/go-vs-rust
Expand All @@ -9,6 +10,8 @@ excerpt: "Rust or Go, which one should I choose? This is a question I get qui
comments:
- <a href="https://news.ycombinator.com/item?id=15266066">Hacker News</a>
- <a href="https://www.reddit.com/r/golang/comments/70iwcd/go_vs_rust_choose_go/">Reddit</a>
translations: null
css: null
---

<figure>
Expand Down Expand Up @@ -56,4 +59,4 @@ Rust is already a powerful language and it gets stronger every day.
It feels much more like a "pragmatic Haskell" to me than a "safer C".

99% of the time, Go is "good enough" and that 1% where it isn't, you'll know.
And then take a look at Rust, because the two languages complement each other pretty well.
And then take a look at Rust, because the two languages complement each other pretty well.
4 changes: 4 additions & 0 deletions blog/2017-hacktoberfest.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
extends: default.liquid

title: Learn Some Rust During Hacktoberfest
subtitle: ""
date: 15 Oct 2017 00:00:00 +0000
humandate: 15th of October 2017
path: 2017/hacktoberfest
excerpt: "October is the perfect time to contribute to Open Source &mdash; at least according to Github and DigitalOcean. Because that's when they organize Hacktoberfest, a global event where you get a free shirt and lots of street cred for creating pull requests.
Let me show you, how *everybody* can contribute code to [Rust](https://www.rust-lang.org/), a safe systems programming language."
social_img: 2017_hacktoberfest.png
comments: null
translations: null
css: null
---

<figure>
Expand Down
Loading