HN user

jonathanpoulter

163 karma
Posts5
Comments56
View on HN

Ease of testing is the most obvious benefit.

A "pure" function is one whose result is simply based on its inputs, no dependency on external state/IO etc. Same inputs, same outputs guaranteed.

These types of functions, are really easy to reason about and unit test. State is often messy.

I completely agree with this sentiment.

Writing good Haskell always seemed harder to me than something like Python. The amount I'd have to think before beginning to type was a lot, but it always seemed worth it, as there was always potential always for a beautiful solution to any problem.

As a result, before I write code in any production language I give a little more thought to what I'm about to write, which I think ends up with a better result.

Heck, even if Haskell just gave a developer an appreciation for basic functional programming, that would be something that will benefit them for years in my view.

This seems like such a significant problem for the language and has been around since the beginning of time. Considering the amount of value that Python adds to companies and individuals around the world, is there a reason that institutions or someone with the means hasn't funded a project to "solve" the GIL problem?

Thanks for your advice, I'm currently starting down the path of writing (what I hope will become) a book. I'm at your piece of advice I). I'm working on a framework which links LaTeX and Python notebooks in a dynamic compilation setup [1], so reading your first point of advice makes me think I might have started on the wrong path.

Did your setup ultimately prove useful in writing your book? Or did you give up part way through and that helped you get to the task of actually writing?

[1] https://github.com/poulter7/ipynb-tex

I am constantly approached with adhoc requests, often unrelated to the application I work on, probably more of these than actual ticket items.

I've started to number these myself in my own ticket system where I keep scripts, screenshots and logs etc. but I'm using OneNote, because it's so unrestrictive.

ipynb-tex is a simple style sheet which allows extracts tagged cells out of a Jupyter notebook and includes them in a TeX document. Every time you recompile the LaTeX document you'll get the latest notebook output, so your documents are always in sync.

I'm also on an L1B visa, to my knowledge there's no such flexibility, to the point that you'd have to move back to your country or have a new company file a brand new H1B application if you wanted to move, I don't know how frequently this is done. An L1B visa is actually very restrictive as I understand it, any insight Peter had would certainly be interesting.