Live data from Hacker News

Ask HN: What do you code when learning a new language/framework?

news.ycombinator.com

111–120 of 171 posts

Re: Ask HN: What do you code when learning a new language/framework?

#116
I guess that depends on what I am learning it for, I am set to learn Elixir next, and that is because I want to use Phoenix, which means I will be building a website project in it.

I'm pretty old so I've been lots of different kinds of devs, last 7 years generally full-stack - heavy frontend focus.

Re: Ask HN: What do you code when learning a new language/framework?

#117
Me: Normally backend/data-processing stuff, senior level.

My "hello world" project is almost always Conway's Game of Life, and I try pretty hard to follow the idioms of the language when I do it.

I like Conway's Game of Life because it's easy enough to not be too frustrating, but challenging enough to where you actually have to think about the problem a bit, at least if you're planning on following language idioms. Usually I just "render" to the command line, though occasionally I will get ambitious and figure out SDL or OpenGL bindings.

Admittedly most of my projects involve servers in some way, so after I've done the Game of Life, I usually start playing with the networking libraries like ZeroMQ and the libraries to call command-line programs, and I make a distributed video processor using ffmpeg.

Re: Ask HN: What do you code when learning a new language/framework?

#119
my classic is an mbox filter. Read a mailbox, determine who sent it and when, and rewrite an output mailbox with different filter conditions applied (e.g., only mails from nigerian princes, only mails younger than a month). determines for me how file I/O, error handling, indices / data structures pointing to messages work, sorting, etc.

Re: Ask HN: What do you code when learning a new language/framework?

#120
I always write the same app in any new language I learn. For me, it's a web scraper that parses a forum and saves posts/comments/attachments into a db, but the exact project is unimportant. After the first few languages, I don't have much to discover about the app itself, so I can focus on how the language allows me to express my app.
Post reply on HN