HNHacker News
TopNewBestAskShowJobs

matthiaswh

1,004 karma · joined December 8, 2010

mwhager 87 at gmail
submissionscomments
matthiaswh··on Prologue: A web framework written in Nim
Not to harp too much on your nitpick of the syntax, but I'm curious why `#[]` rates as more attractive to you than `{..}`? To me they are equally utilitarian, and I can't figure out why one would be strongly preferable.

That said, I do find the placement of Nim pragmas to be cumbersome, resulting in really long lines or awkward line breaks. I wish we could place the pragma declaration on the line before procedures.

  proc callme(formatstr: cstring) {.exportc: "callMe", varargs.}
matthiaswh··on Ray Tracing in Nim
The table is out of date. Nim is post 1.0[1] now and stable, and has few breaking changes.

[1] https://nim-lang.org/blog/2019/09/23/version-100-released.ht...

matthiaswh··on Prologue: Full-Stack Web Framework Written in Nim
Nim has a growing number of libraries that handle many of the features provided here. This is one of the first major attempts at a large, comprehensive web framework in Nim. It's not a signal of any sort of shift in the Nim ecosystem. Nor does the existence of one does not prevent or defer the existence of the other.
matthiaswh··on Prologue: Full-Stack Web Framework Written in Nim
I don't know if this is a good example. While React tries to bill itself as a library, and there are arguments to be made for it being a library, there are equally compelling arguments as to why it is a framework.

If anything, this example does more to prove the distinction is semantic and trivial than anything.

matthiaswh··on Prologue: Full-Stack Web Framework Written in Nim
The `echo` statement is indeed, a function. The tutorial is taking advantage of Nim's optional parenthesis when calling the function.

  echo "Can you hear me?"
is the same as

  echo("Can you hear me?")
Nim also has somewhat unique rules about casing and underscores for variables and names. `readLine` is the same as `read_line` is the same as `rEadLInE`. However, the first letter must be the same (there are reasons for this), so `Readline` is not the same as all of those. The idea is that you can choose your preference and not have to think about what anyone else chooses. If a library uses pascalCase and your prefer snake_case then you can use snake_case.

This is a big point of contention for many people, but in practice, in my experience, it is never an issue.

matthiaswh··on Show HN: Tinder, but for Movies
Nicely done! I made something similar a few years back for quickly rating movies you've seen and marking ones you haven't seen but want to. I never did much with it, but it's still fun to play with every once in awhile even being years out of date. Yours looks much nicer though :)
matthiaswh··on Nim 1.2
My guess is the GP misunderstood and was speaking about the Prolog programming language, not the web framework mentioned.

To address your question, the only complete back end web framework for Nim that has significant traction (that I know of) is Jester. Karax for the front side. The Prologue framework looks interesting though.

matthiaswh··on Creating an open-source solution to the headaches of headless browsers
It's more a matter of being messy rather than complicated. You're trying to track users who often visit your site multiple times before purchasing, coming from different sources, on different devices, and somehow tie that attribution to the purchase. None of the data inputs are consistent nor tied together. Analytics tells you differently than your ad platform, your payment processor tells you yet another thing, and your email marketing tool, and your CRM. (And if you want the serious tools for data monitoring and reporting have moved to focusing on enterprises...) You have to somehow factor in refunds, free trials, prorated billing, early cancellations. You have multiple ad campaigns running ad variations. Don't forget a/b testing.

Finally you see some data point that hints something might be working, but you know you have to account for all the other factors involved. Did I make any website edits that day? Did the ad network change their algorithm slightly? Was there a holiday affecting traffic? When did I insert that new ad again? Wait, I know I changed my ad bid at some point... Did I get an influx of traffic from another source? Was it just a fluke?

If you want good, real data, it's messy. And far from a solved problem.

matthiaswh··on Kakoune – A Modal Text Editor
I agree. It's such an illogical and unreadable construct to me. Even after working with a typed language for awhile my instinct is to declare the type before the variable name.

I've been envisioning a future programming environment that automatically aids in code readability by hiding unnecessary information when you're not using it. Manual code folding was sort of a first step, but this environment would take it further by hiding things like types until you need them. So something like

  proc eval(c: Criterion, token: Token): bool =
    let tokenCrit = (token.identifier, token.token)
    return tokenCrit == c
Might look like

  proc eval(c, token) =
    let tokenCrit = (token.identifier, token.token)
    return tokenCrit == c
Or even

  proc eval(c, token) =
    ...
    return tokenCrit == c
It would have to be smart enough to expand the hidden blocks when you need them and in an unobtrusive way. It's also possible that the type declarations wouldn't actually expand in this editor, but would be set by some sort of popup selector (similar to how autocomplete works, but you'd select the variable type).

This is just a rough idea and I'm not sure how well it works in reality. But when code starts looking like `proc add*[T](root: var BinaryTree[T], n: var seq[BinaryTree[T]]) =` it starts to lose its at-a-glance readability.

matthiaswh··on How the N.Y. Public Library Fills Its Shelves
Public libraries in the United States are free.

They are generally supported by local taxes, sometimes with added support from benefactors, fundraising events, or some optional paid services.

matthiaswh··on Show HN: Hacker News 2018, Year in Review
To be fair, people have been decrying this very same thing since the time I registered 8 years ago.
matthiaswh··on WordPress 5.0: A Gutenberg FAQ
Quite the contrary. "Just ship" is a great approach for individuals or startups. WordPress is a behemoth that powers a significant portion of the web, including numerous enterprise corporations, and is the lifeblood of thousands of freelancers and agencies. They should hold themselves to a much higher standard.

When WordPress ships a bug, or a security vulnerability, or drastically and negatively alters the user experience the repercussions are vast and long-lasting.

I can't imagine how many man-hours and how many millions (billions?) of dollars it costs every time this happens.

matthiaswh··on The new word processor wars: A fresh crop of productivity apps
I'm curious what open source options will crop up in this space. So far I haven't seen anything promising that compares to the Notion or the Air Table approach.
matthiaswh··on Ask HN: Freelancer? Seeking freelancer? (December 2018)
SEEKING WORK | Upstate New York, USA | Remote

Technologies: Python, Django, JavaScript, Vue.js, WordPress, InfusionSoft, Pen & Paper

Résumé/CV: https://matthiashager.com/

Email: mwhager87 at gmail

Pros:

- long history of online marketing AND web development gives me a unique perspective

- incredibly quick learner and am constantly pushing myself to expand and improve

- 6+ years experience working remotely

- 5+ years freelancing shows I'm self-motivated, a great communicator, and other cliché résumé words

- I now know how to type é (without copy-pasting!)

Cons:

- our cats like to cry at me when I'm on calls

- I've been told I can be sarcastic, but I simply don't see it

- I'm unfortunately not musically inclined, so if you ask new employees to sing a song on their first team call, I'm noping out of there so fast (yes, this is apparently a real thing)

matthiaswh··on Ask HN: Who wants to be hired? (December 2018)
Location: Upstate New York, USA

Remote: Yes

Willing to relocate: No

Technologies: Python, Django, JavaScript, Vue.js, WordPress, InfusionSoft, Pen & Paper

Résumé/CV: https://matthiashager.com/

Email: mwhager87 at gmail

Pros:

- long history of online marketing AND web development gives me a unique perspective

- incredibly quick learner and am constantly pushing myself to expand and improve

- 6+ years experience working remotely

- 5+ years freelancing shows I'm self-motivated, a great communicator, and other cliché résumé words

- I now know how to type é (without copy-pasting!)

Cons:

- our cats like to cry at me when I'm on calls

- I've been told I can be sarcastic, but I simply don't see it

- I'm unfortunately not musically inclined, so if you ask new employees to sing a song on their first team call, I'm noping out of there so fast (yes, this is apparently a real thing)

matthiaswh··on Show HN: Technical note app that builds a knowledge base
You'll probably like CintaNotes (Windows only) or Zim Wiki.

Biggest downside to both is the lack of mobile apps. But Zim uses plain text files and Cinta can sync with Simplenote. I mention Cinta mostly because it has some of the better search capabilities I have seen in a note app.

matthiaswh··on Tailwind: style your site without writing any CSS
It's easy to understand why it gets people "riled up." For 20+ years the entire industry has been pounding the table about why inline styles are so bad. Thousands of articles have been written espousing this idea, and likely hundreds of thousands of hours have been spent devising better alternatives in the form of CSS frameworks.

Whether Tailwind is functionally and pragmatically better than inline styles isn't even important. It looks like inline styles, so the first reaction of almost any experienced designer/developer that looks at it is to make that association and squirm in discomfort at its mere appearance.

matthiaswh··on Flickr free accounts will soon be limited to 1,000 photos or videos
I haven't used any of these yet to say if they meet your criteria or if they are worth using, but here are a handful of potential options that I snagged from my bookmark list.

- https://photoprism.org/

- http://koken.me/

- https://lychee.electerious.com/

- https://github.com/thumbsup/thumbsup (believe this one is actually a static site generator)

- https://chevereto.com/

- https://piwigo.org/

matthiaswh··on Ask HN: Who wants to be hired? (November 2018)
Location: Upstate New York

Remote: Yes

Willing to relocate: No

Technologies: Python, Django, JavaScript, Vue.js, WordPress, InfusionSoft, Pen & Paper

Résumé/CV: https://matthiashager.com/

Email: mwhager87 at gmail

Pros:

- long history of online marketing AND web development gives me a unique perspective

- incredibly quick learner and am constantly pushing myself to expand and improve

- 6+ years experience working remotely

- 5+ years freelancing shows I'm self-motivated, a great communicator, and other cliché résumé words

- I now know how to type é (without copy-pasting!)

Cons:

- our cats like to cry at me when I'm on calls

- I've been told I can be sarcastic, but I simply don't see it

- I'm unfortunately not musically inclined, so if you ask new employees to sing a song on their first team call, I'm noping out of there so fast (yes, this is apparently a real thing)

Edit: formatting

matthiaswh··on Publii – open source static CMS for everyone
I tried this out when it was first released but made a note to come back when the source was published. So I'll be looking forward to digging into it again. Publii solves the biggest downside of static site generators, that they're not really friendly for most end users. I am still a little leery of how it will handle a collaborative work environment (with a Dropbox or similar backend), but that isn't different than any other static site generator. I also previously made a note that the templating system was messy, so I'm curious if that has improved!
matthiaswh··on LibreOffice is now available for Haiku
What makes Haiku better for personal computing, from the end-user perspective? Or to put it in another perspective, who is the eventual target user for Haiku? I'd like to find an excuse to test it out even knowing it's in alpha stages, but this seems to be missing from the FAQs. The only noteworthy statement is that it is fast, efficient, and easy to use. I'm not sure if those are sticking points for most users.
matthiaswh··on Test-Driven Web Development with Python – The Book
Yes, from what I recall, any time the author talks about functional tests he is using Selenium.
matthiaswh··on Test-Driven Web Development with Python – The Book
Test Driven Web Development with Python teaches you Django while also teaching you TDD. As long as you're comfortable with Python it should pose no problem for you. Many of the principles will be the same with Flask as they are with Django. It might even be a great learning experience if you take each chapter and build out the equivalent application in Flask as well as Django.

It's a very good book and easy to consume, and also available for free online. However, I have not read Python Testing with PyTest so I cannot compare them or answer which is better for you.

matthiaswh··on Is the Age-Old Quest for a Baldness Cure Reaching Its End?
I thought that I had wavy hair

Until I shaved. Instead,

I find that I have straight hair

And a very wavy head.

- Shel Silverstein

http://shelsilverstein.yolasite.com/wavy-hair.php

matthiaswh··on Show HN: Write every day, measure your progress, achieve your writing goals
Hey, this is strikingly similar to a tool I built a number of years ago, and used personally for some time. All the way down to the color scheme and the heatmap style calendar. Great job on shipping - something I never did!

My only real immediate feedback is that your initial editor gets drowned out in the monochrome color scheme among everything else on the page. I had to go hunting for it. Otherwise the "just start, then create an account" is a great workflow that I've used successfully in other places. However, most users don't understand in-browser saving versus saving on your server. I would recommend making a stronger push toward signing up for an account in order to save.

In my app I had a feature built to "ramp up" your writing. This was great because I didn't have to immediately start out writing say, 500 words a day - I could start small with 50. Once I hit that the counter goes up and the next day I have to write 60, then 70, and son on. It doesn't have to be linear, but being able to start small and increase my progress each day was much less intimidating.

matthiaswh··on Known: Social publishing
I can't figure out what this is or what it does for me.

On your homepage you call it a "social learning platform." The title tag calls it "social publishing for groups and individuals." Further down you say, "you might call it a publishing platform." And Github calls it both a "social publishing platform" and a "social group platform."

Aside from a vague WYSIWYG box in a wireframe, the only thing that seems to tells me what it actually could be used for is the Unified Comments block. That sounds interesting but it isn't clear how it fits into the learning/groups/publishing focus.

matthiaswh··on Show HN: A New Concept for Programming Tutorials
You're absolutely right! As someone who does marketing for a living I'm completely unsatisfied with the "pitch." But I had to get over the mental block of publishing this and go live with something that isn't yet perfect.

Appreciate the feedback. My next step is to publish a couple small tutorials so there are more live examples of the concept.

matthiaswh··on Show HN: A New Concept for Programming Tutorials
There is not a repo yet. The demo is running a lightweight vue.js app for the front end. In the MVP spirit, I simply hard coded the tutorial steps and code revisions in the JavaScript. Reading and processing repository diffs has held me back from creating this for such a long time, but I wanted to throw something out there and this was the easiest route to publishing a concept demo.

I'd be happy to publish the front end on GitHub, but without the ability to read from a repository it isn't functional for anything beyond a demo.

matthiaswh··on Ask HN: What are some books where the reader learns by building one project?
Coincidentally I'm about halfway through writing a long Vue.js tutorial series where I build one project in this manner. Would love to hear more ideas about what people look for with this type of book.
matthiaswh··on Ask HN: Who wants to be hired? (October 2016)
That's a really great point! I would edit, but now your comment has etched that answer permanently in the annals of history :) But I'll remember that in the future.
← PreviousPage 3 of 6Next →