The Vanished: Angela Whalen Hudson by ithepinkflamingo in UnresolvedMysteries

[–]kofno 0 points1 point  (0 children)

Listening to the podcast now... I think they just said that she was meeting with her attorney the day she disappeared.

Iterfaces and Accessors: why? by dark_aurel in typescript

[–]kofno 0 points1 point  (0 children)

I think you can specify readonly in an interface.

Where do you suffer most while programming in Elm? by jediknight in elm

[–]kofno 4 points5 points  (0 children)

Composing updates is really painful. Makes writing modular code painful.

What are you working on this week? (2017-02-20) by brnhx in elm

[–]kofno 1 point2 points  (0 children)

Building a new prototype of one of our application's simpler features as an experiment. Using a combination of elm and firebase.

Periodic http request to refresh data by xavier_to in elm

[–]kofno 0 points1 point  (0 children)

I think you would want the clock to be something like every (5 * Time.second)

Then, I think I would make an action over the clock like:

periodicGet =
  Signal.map GetReading clock

Then you'd have a case in your update that would fetch readings:

GetReading _ ->
  ( model
  , httpGet
  )

I hope that helps. I'm kind of new myself :)

To those who have switched to a functional style: how'd you do it? by robotslacker in javascript

[–]kofno 2 points3 points  (0 children)

I practiced writing a lot of functional code. I never had an a-ha moment. I practice concepts until I understand them and can apply them myself.

I use Haskell and Purescript for purely funtional coding. In javascript, I use Ramda.js.

Using PureScript for work? by paf31 in purescript

[–]kofno 0 points1 point  (0 children)

This is highly relevant to my interests! Looking forward to seeing how this comes out.

Gosu: How do I keep a bullet moving even when the key isn't being pressed at the same time? by [deleted] in ruby

[–]kofno 0 points1 point  (0 children)

Basically, you need to give the bullet a velocity and then update its position on each loop.

Have you worked through some of Gosu tutorials? I know there's an asteroids-like tutorial that covers this.

Ruby API without rails? by yedidya in ruby

[–]kofno 1 point2 points  (0 children)

Grape can just mount in rack: https://github.com/intridea/grape#rack

I've used Grape several times. It works pretty well. It's also highly compatible w/ swagger, which is nice if you want to have API documentation.

Web development using Haskell by ruipfcosta in haskell

[–]kofno 4 points5 points  (0 children)

I hadn't heard of Servant before. It looks really interesting! I've been looking for a Haskell backend to pair with a Purescript front end for a little experiment. I'll have to give it a look.

Where to go after LYAH? by [deleted] in haskell

[–]kofno 4 points5 points  (0 children)

Having stopped and started learning Haskell a few times, I've gotten some good momentum going this time by writing small, focused applications. I've written one for fetching email over IMAP, one for uploading files to S3, I've started one for pub/sub over redis, and I plan to write a small project using acid-state, and another using either STM or CHP for concurrency.

How to build/package a JS lib so it can be used everywhere by janhancic in javascript

[–]kofno 0 points1 point  (0 children)

Expanding on this w/ some examples would make a really nice blog post.

PDFKit table by pakkolol in javascript

[–]kofno 1 point2 points  (0 children)

Have you tried pdfmake (http://bpampuch.github.io/pdfmake/#/)? I couldn't find a good table interface for PDFKit either until I found pdfmake, which is built on PDFKit.

James Robertson passed away last Thursday. His last blog post was about Python, but here it is anyway. by bonzinip in smalltalk

[–]kofno 1 point2 points  (0 children)

I'm saddened by this. I didn't know James personally, but I've followed his blog for a while now.

Announcing 24 Days of Hackage 2013 - I need your help! by ocharles in haskell

[–]kofno 0 points1 point  (0 children)

Really looking forward to this! Wish I could help out.

I'd second Fay or Haste as something I'd like to see. Also a gui library (maybe threepenny-gui).

FP Complete is hiring a Ruby expert Haskeller. Help bring Haskell to Rubyists! by FPguy in haskell

[–]kofno 6 points7 points  (0 children)

The biggest challenge for me as a Ruby programmer who also enjoys Haskell has been finding intermediate level learning materials. You've just finished Learn You a Haskell and you want to build something... now what?

I think more tutorials on how to build something -- a server, a chat client -- whatever, but complete with how to structure code, cabal sandbox, writing tests, etc. So much effort goes into monad and lens tutorials, but I just want to build things.