HNHacker News
TopNewBestAskShowJobs

ricny046

480 karma · joined December 8, 2011

submissionscomments
ricny046··on Lit: a library for building fast, lightweight web components
I love Lit! I have been using it to develop a in-app widget for product updates here: https://supanotice.com (the in app-widget opens up if you click on the bubble in the bottom right corner)

Really love the abstraction that makes web components easy to use.

ricny046··on Show HN: Supanotice – Branded newspage and in-app widget to show product updates
Hi and thanks for your feedback :-)

The newspage (https://updates.supanotice.com) will work without JavaScript but the in-app widget that you see in the lower right corner on my page require JavaScript. However, it is completely framework agnostic and is based on web components. It will require that you add a script-tag in head and a tag in the body and you're good to go.

A FAQ for the landing page is on it's way and I will be working on improving the landing page with screenshots and examples so you can get a better feel for it.

I didn't know it worked without JS myself :-) I guess it's a side effect you get when rendering on the server using Elixir / Phoenix

ricny046··on Ask HN: How do you use Obsidian at work?
* Your Role/Industry: I work as a software developer at a quite small european bank.

* Teamwork: We do not use Obsidian for teamwork but I would guess that we're around 10-20 people using Obsidian for note taking.

* Use cases: Primarily for note taking, meeting notes, presentations and technical documentation.

* Features: I use tasks, Excalidraw and the Iconize plugin. Also tinkering with the Canvas but does not use it for anything serious yet.

* Workflow: I just use the daily note feature to bring up a page where I write down tasks I need to finish that day. If I need to write something longer I will create a separate page for that and create a link in the daily note to that page.

ricny046··on Ask HN: You can only be fluent in 3 programming languages. Which ones?
Elixir, Java, JavaScript
ricny046··on Clojure and The UFC: Part 1
Cool. Where can I download the json data for UFC fighters?
ricny046··on Kung Fury (Kickstarter funded movie)
This movie will be number one on IMDB!
ricny046··on Ask HN: Who wants to be hired? (August 2014)
Location: Sweden (but can work for a business from everywhere)

Remote: Yes please.

Willing to relocate: No

Technologies: Rails, Ruby, Javascript, ReactJS, AngularJS, Java, JRuby

Blog & open source: http://rny.io

Email: ricn [at] rny.io

ricny046··on How Bad Can 1 GB Pages Be?
I thought that too! :-)
ricny046··on PostgreSQL indexing in Rails
The article covers only Rails 4.
ricny046··on Simple API with Nginx and PostgreSQL
It was a bad move not include protection against SQL injection to begin with. I was thinking about keeping it as simple as possible and just show a simplified example. But I think this was a bad thing to do so I have updated the example so it now uses postgres_escape.

And yes, this approach should only be used for very simple APIs. If you're building something bigger, use a framework.

ricny046··on Simple API with Nginx and PostgreSQL
Good point. I will update the examples in the blog post as soon as possible.
ricny046··on Simple API with Nginx and PostgreSQL
This example is not secured against SQL injections but you can do it easily. Look at the documentation here: https://github.com/FRiCKLE/ngx_postgres/
ricny046··on Ask HN: Has anyone read "How to create your own freaking programming language"?
Dude, it cost only $39.99. Just buy the freaking book.
ricny046··on Rails Is Not For Beginners
Yes, I understand what you mean and when I wrote this I knew that someone would comment on it :)

This is how I see it:

Pure JavaScript + JQuery = Very easy to get started but very hard to maintain when the code base grows if you don't know JavaScript very well.

CoffeeScript + JQuery + Backbone.js = Harder to get started but the code becomes easier to maintain when the codebase is big.

I know that JQuery is not about organizing code.

ricny046··on Rails Is Not For Beginners
I don't agree about JQuery. The learnability is good and it's really easy to get things done very fast. But when the code base grows it becomes really hard to maintain the code if you don't know JavaScript very well and know how to structure the code.

That's why many people have started to use CoffeeScript and/or Backbone.js to write more maintainable JavaScript. But the CoffeeScript/Backbone.js route is harder for beginners but in the long run it's a much better choice.