Better HN
topnewbestaskshowjobs
Log inSign up

theCodeStig

143 karma · joined May 18, 2015 (11y ago) · 149 submissions

Submissions

comment 3y ago · link · parent

Org-babel can do a lot of this, no?

comment 3y ago · link · parent

Are there any plans for an iPadOS client?

comment 3y ago · link · parent

IKEA furniture, is essentially temporary and disposable. Consider the environmental impact.

comment 3y ago · link · parent

Scala's type inference is not very good, especially in comparison with Haskell

comment 3y ago · link · parent

The Java ecosystem is hardly a benefit

comment 3y ago · link · parent

They aren't diametrically opposed, though OO methods obscure function composition (point-free style).

comment 3y ago · link · parent

Over 9 years of Scala here. Scala definitely has quite a few warts.

comment 3y ago · link · parent

This echos my set up, and it's quite stable, particularly if the overlay is pinned.

comment 3y ago · link · parent

I use Nix on macOS to install emacs. No special ports.

comment 3y ago · link · parent

There was gambe.ro, which was an Italian site like Lobste.rs. Unfortunately it’s down now.

comment 4y ago · link · parent

Assuming rust or other systems language.

Linked lists are optimal for head access; not random access. For random access, yes a vector would be better.

comment 4y ago · link · parent

Haskell has to have an escape hatch in order to work, though fortunately it is hidden away.

Every program has effects. A program that does not have any effects (IO) would not be useful, as you can't get anything into or out of it. In FP we manage those effects, in order to help ensure correctness, with the additional benefit that good effect management makes the program easier to comprehend (nee reason about).

Contrast a procedural program with effects littered throughout the codebase, with a program wherein effects are pushed to the edges. In the latter, you and your team know exactly where all of the effects occur. Everything else is pure code: easier to test, easier to comprehend, easier to compose.

Category theory is not required for good effect management. It just so happens that monads like IO fit the problem space nicely; although the same could be achieved with a lazily evaluated definition of computation (i.e. a function).

comment 4y ago · link · parent

Exactly my point above, about Java.

comment 4y ago · link · parent

> Not a pure function at all. And not really a function either. Just a mapping.

A function is a mapping of an input to an output.

comment 4y ago · link · parent

In contrast, I find juniors to be the easiest to teach. Those with more experience, are stuck in their ways, often stubbornly.

comment 4y ago · link · parent

Unfortunately, a lot of Java programmers write imperative code in Java. Although I have seen "good" Java programmers write "good clean code", it's the exception, rather than the norm. Most of the good Java programmers that I know have moved on to better languages and platforms.

comment 4y ago · link · parent

Does it simulate “magic smoke”?

comment 4y ago · link · parent

The academic analogue would be: Programming in Haskell, by Graham Hutton http://www.cs.nott.ac.uk/~pszgmh/pih.html

comment 4y ago · link · parent

Cats effect can do the same

comment 4y ago · link · parent

What aspect of lambda calculus is not declarative?

comment 4y ago · link · parent

Laziness, and purely functional go a long way toward declarative.

comment 4y ago · link · parent

Not all lisps are declarative, but a lisp certainly can be declarative.

comment 4y ago · link · parent

Ok then, would you consider markup languages declarative, XML... XSLT?

comment 4y ago · link · parent

To avoid duplication of input/output tags; it would be nice to have a bridge that coincides with existing documentation comment tools. For example Scaladoc has @param, and @return.

comment 4y ago · link · parent

It’s like the inverse of org-babel

comment 4y ago · link · parent

I think auto-switch to USB makes a lot more sense. That’s also how the Apple keyboards, and trackpads work.

comment 4y ago · link · parent

This sounds eerily familiar. Let me guess, there were sprint planning sessions that went on for hours. More time was allocated to planning the work, than for the actual work.

Replacing one dogma (waterfall) with another (dogmatic agile), is not agile.

comment 4y ago · link · parent

This is great! Have you considered to make this into a package?

comment 4y ago · link · parent

I hear you but... I myself, would not be trying to ride the best line, and hit every apex on a descent that I'm not intimately familiar with. I'd take it slow, and exercise caution until I am intimately familiar with the entire route.

comment 4y ago · link · parent

What is TESU?
12345