Better HN
topnewbestaskshowjobs
Log inSign up

_query

1,262 karma · joined Mar 7, 2014 (12y ago) · 293 submissions

Founder, digitally induced GmbH

https://www.digitallyinduced.com/

marc a t digitallyinduced com

Submissions

comment 5y ago · link · parent

I'd pick elm for the frontend as it's kind of similiar to haskell syntax-wise but more optimized for the frontend context. Here's a great tutorial for this: https://driftercode.com/blog/ihp-with-elm/

comment 5y ago · link · parent

Haskell is pretty nice for building web applications.

Thanks to it's type system you can build much more stable web apps in less time. Usually later in the application life cycle you have a hard time refactoring stuff when working with e.g. JS or rails. Without tests you will definitly break stuff. With haskell you can confidently refactor your code without worrying about breaking stuff, the compiler will tell you.

The way data structure are declared in haskell is also very nice for domain modeling. You don't have as much boilerplate as e.g. when using PHP with doctrine.

The performance is also pretty good compared to python or rails.

comment 5y ago · link · parent

> programming languages are meant to ease the task of creating computer programs as opposed to writing assembly by hand

This! The haskell ecosystem is missing a certain kind of pragmatism. There's a lot of beautiful type abstractions, talking about monads, etc., but not enough builders doing actual application development. In my opinion it's not the language that is bad, but the ecosystem. Missing documentation, missing tooling and infrastructure, no focus on actually building applications.

We're trying to fix that with IHP, a new haskell framework with a focus on actual building applications. Imagine the productiveness of rails combined with the typesafety of haskell.

6 months after it's release it's already the second biggest haskell framework, and we just had a new record of weekly active users last week. To me this shows that by fixing the ecosystem haskell can reach a lot more than it's currently doing.

Check it out: https://ihp.digitallyinduced.com/ GitHub: https://github.com/digitallyinduced/ihp

154.

Working with Dates in IHP and Haskell(zacwood.me ↗)

2 points · by _query · 5y ago · discuss

155.

Haskell: The Good Parts(ihp.digitallyinduced.com ↗)

4 points · by _query · 5y ago · discuss

comment 5y ago · link · parent

Here's a "boring" haskell app: https://dill.network/ It's a vegan product scanner. You can find the story behind the project here: https://twitter.com/larsparsfromage/status/13211859357117358...

Here's a "boring" internal management system: https://twitter.com/fegundersen/status/1325534608079941633

Disclaimer: Founder of digitally induced, the company that helps make boring things with IHP+Haskell :)

comment 5y ago · link · parent

We build an amazing web framework called IHP with haskell, imagine the productiveness of rails combined with the typesafety of haskell: https://ihp.digitallyinduced.com/

IHP has around 230 monthly active projects at the moment, and it's growing fast. It was released 8 months ago and now is already the second biggest haskell web framework :)

I think haskell has been previously tragically underused because it was missing good documentation and pragmatic solutions that help you to get things done. Atleast in the web dev space this has changed this year. Watch our IHP demo video and you'll get it: https://www.youtube.com/watch?v=UbDtS_mUMpI

Disclaimer: Founder of digitally induced, the company that makes IHP.

158.

IHP Casts: Learn to build type-safe web apps with Haskell and IHP(ihpcasts.com ↗)

2 points · by _query · 5y ago · discuss

159.

Haskell and Elm: How to initialize data from IHP directly to Elm(driftercode.com ↗)

2 points · by _query · 5y ago · discuss

160.

Improving Haskell (GHC) Error Messages(ihp.digitallyinduced.com ↗)

2 points · by _query · 5y ago · discuss

161.

Haskell with Elm: How to Setup IHP with Elm(driftercode.com ↗)

5 points · by _query · 5y ago · discuss

162.

How to Setup IHP with Elm(driftercode.com ↗)

3 points · by _query · 5y ago · discuss

163.

IHP Casts: Learn to build type-safe web apps with Haskell and IHP(ihpcasts.com ↗)

3 points · by _query · 5y ago · discuss

comment 6y ago · link · parent

Thanks! We'll improve the documentation on the points you've mentioned :) Created https://github.com/digitallyinduced/ihp/issues/570 to keep track of it.

For custom URLs check this: https://ihp.digitallyinduced.com/Guide/routing.html#custom-r... For JSON check this: https://ihp.digitallyinduced.com/Guide/view.html#json

comment 6y ago · link · parent

Yes, this is very similiar. We used it extensively to build IHP Cloud [0] where we have a lot of async background processing. AutoRefresh allows the view to be updated automatically when e.g. the deployment status changes without us writing any app-specific JS code. It's takes only a single line of haskell code, so it's implemented in seconds and then really just works :)

Would we have to use AJAX polling for that or would need to write Websocket Code manually, we'd need to spend way more time on that.

[0]: https://ihpcloud.com/

comment 6y ago · link · parent

Someone from the haskell community summarized it like this [0]:

> You thought Yesod was Rails? Nope. Yesod is a highly modular library for developing web applications with a few opinions and some scaffolds. > IHP is Rails - all the components are glued together in a way that makes modularity difficult.

The main difference is that IHP is very opinionated and cares a lot about giving a great developer experience. Where Yesod gives you 5 options to do things, IHP has one way to do it. This especially applies to the infrastructure: IHP takes care of installing the compiler, libraries and also provides a built-in dev server that automatically reloads your code.

Our standardized setup allows for a super quick way to get started building real things.

Another important thing is documentation. IHP has best-in-class documentation[1] with lot's of code examples. Compare it yourself:

Yesod: https://www.yesodweb.com/page/quickstart IHP: https://ihp.digitallyinduced.com/Guide/installation.html

[0]: https://twitter.com/mattoflambda/status/1275469470559907840 [1]: https://twitter.com/smdiehl/status/1276049218654912514

comment 6y ago · link · parent

Thanks for your thoughts!

> why in the world are the controller paths capitalized

The idea behind that is that it makes mapping from url to action easier when trying to understand how things work.

E.g. `/Posts` maps to `PostsAction`. `/NewUser` maps to `NewUserAction`.

I think longterm urls don't matter that much anymore as many browsers just hide them completly (think Safari, many mobile browsers, etc.), so we optimize them for development purposes :)

(Disclaimer: Founder of digitally induced, the company behind IHP)

comment 6y ago · link · parent

Thanks for pointing out, added the disclaimer

comment 6y ago · link · parent

You need to check out IHP. It's a new truly batteries-included web framework for haskell. IHP allows you to get started in minutes. It takes care of all the infrastructure work so you can just build cool stuff and enjoy the type-safety.

https://ihp.digitallyinduced.com/

Disclaimer: Founder of digitally induced, the company that makes IHP :)

170.

Why the IHP Framework Is Using the Nix Package Manager(ihp.digitallyinduced.com ↗)

2 points · by _query · 6y ago · discuss

171.

2020 Haskell Is Ready for Prime Time(ihp.digitallyinduced.com ↗)

4 points · by _query · 6y ago · discuss

172.

IHP: Live Reloading Haskell Code, How It Works(ihp.digitallyinduced.com ↗)

2 points · by _query · 6y ago · discuss

comment 6y ago · link · parent

If you're interested in just the package manager Nix check out https://nix.dev/ It guides you to get a reproducible development environment up and running with nix. This way you can get all the goodies like `nix-shell -p nodejs` without switching your OS first :)

174.

Haskell: The Good Parts(ihp.digitallyinduced.com ↗)

4 points · by _query · 6y ago · discuss

comment 6y ago · link · parent

If you have good internet connection it's usually downloaded a lot faster. We have switched the nixpkgs version in that version, so a lot of tooling had to be redownloaded. E.g. in our getting started video we install it on a fresh empty macbook: https://www.youtube.com/watch?v=PLl9Sjq6Nzc&feature=youtu.be The full download there takes around 9 minutes on a slow home office internet connection (it's speed up in the video, but you can see the real-world time at the top right).

We mainly added the warning in that release because usually the update process is very smooth and takes only one minute, e.g. see this tweet: https://twitter.com/mittie/status/1322574176792825861

comment 6y ago · link · parent

We did a blog post a while ago sharing why we decided to use nix for all package management aspects of the framework. Take a look: https://ihp.digitallyinduced.com/blog/2020-07-22-why-ihp-is-...

comment 6y ago · link · parent

To build some real world web applications check out IHP: https://ihp.digitallyinduced.com/

It's a truly batteries-included way to get started with building real world haskell web apps in minutes.

178.

In 2020 Haskell Is Ready for Prime Time(ihp.digitallyinduced.com ↗)

5 points · by _query · 6y ago · discuss

179.

2020 Haskell Is Ready for Prime Time(ihp.digitallyinduced.com ↗)

6 points · by _query · 6y ago · 1 comment

180.

Haskell: The Good Parts(ihp.digitallyinduced.com ↗)

4 points · by _query · 6y ago · discuss

1
567
10