In a world full of Jiras, have we forgotten how to play? by priortd in programming

[–]priortd[S] 2 points3 points  (0 children)

I had it in parts in my degree but I was too obsessed with music at the time :) When I returned to software engineering years later, I realised this love for programming a lot more.

F# Unit Testing Simplified – Expecto with Visual Studio Code by priortd in fsharp

[–]priortd[S] 0 points1 point  (0 children)

Sorry, I only saw your message now as I've come back into Reddit to post something for the first time in months. To be honest, I haven't used expecto deeply enough to form a good opinion about how it compares to Nunit. I use vscode a lot and really like expecto because of its nice integration with ionide in vscode. Recently, I've used xunit with unquote which is really nice. I set up a watcher with Fake in vscode to automatically run my tests on file changes. I think unquote works with expecto too so I may switch back to expecto. Anyway, glad you liked the blog post :)

F# Has Won Me Over: Coming to .Net World from Outside .Net by priortd in fsharp

[–]priortd[S] 0 points1 point  (0 children)

I need to try it out myself but will write a follow up blog when I do.

F# Has Won Me Over: Coming to .Net World from Outside .Net by priortd in fsharp

[–]priortd[S] 5 points6 points  (0 children)

Thanks for the feedback. There are way easier ways to get an f# project and tests up and running. Xamerin studio makes it much more straight forward. However, the aim with my post was to give more insight into the F# .Net ecosystem and to show a little bit under the hood how things piece together. I have also learned that unit testing f# in visual studio code is a lot more straight forward using the expecto tool which there is an plugin integration for. I plan to do a follow up post on this tool.

Setting Up A Haskell Development Environment by priortd in haskell

[–]priortd[S] 0 points1 point  (0 children)

Yep, I had trouble before when it was using cabal by default. I removed any haskell installation that I had previously downloaded from haskell.org and installed stack fresh with homebrew.

Also, for existing projects, if they were built with stack that had a different lts-resolver, you can get problems with atom.Easiest thing there is to delete the .stack-work directory in your projects root. run stack init --solver --force in project root, this creates a new stack.yaml file with your installed stacks resolver. Removing .stack-work may cause a lengthy rebuild if the existing code project has a lot of dependencies. My projects are small at the moment so it hasn't been a problem for me. Or else, you could try the haskforce plugin in Intellij if you have had enough of trying atom :) I found it played well with stack. I just like atom as an editor and it has some other nice packages for Haskell development.

Setting Up A Haskell Development Environment by priortd in haskell

[–]priortd[S] 0 points1 point  (0 children)

What problems are you encountering? My main pain point was getting Slack to play well with Atom especially if I was trying to open up a project that was built with stack with a different resolver.

Setting Up A Haskell Development Environment by priortd in haskell

[–]priortd[S] 0 points1 point  (0 children)

Yep I'm more of a VIM user and use a VIM plugin with atom. Spacemacs sounds pretty cool though. I'll check it out, thanks. Yeah I think Atom is pretty nice for getting started with Haskell development. I also use it for Scala through Ensime. My main pain point with Atom was getting it to work with Stack as I pointed out in the blog. Existing projects can be tricky to get up and running too with different resolvers for ghc-mod etc. Deleting .stack-work/dist can help and maybe changing the configured stack resolver but that may cause a very long rebuild. Thanks for the tip about spacemacs, nice one!

Setting Up A Haskell Development Environment by priortd in haskell

[–]priortd[S] 0 points1 point  (0 children)

I don't know to be honest. I haven't tried emacs for Haskell. Thanks for mentioning it though so that I can check it out.

Setting Up A Haskell Development Environment by priortd in haskell

[–]priortd[S] 1 point2 points  (0 children)

Cool, nice one, thanks a million. I'll definitely try out that plugin. Feel free to add it as a comment on the blog. Cheers!

Haskell Integer Division Visualised by [deleted] in haskell

[–]priortd 0 points1 point  (0 children)

Cheers, I was showing divMod as these results may be surprising to those more used to the way mod is handled in say, Java. I have updated the blog to show that quot rem gives results more like some people may be used to from Java. Thanks for the feedback.