Better HN
topnewbestaskshowjobs
Log inSign up

codecurve

1,560 karma · joined Jan 18, 2012 (14y ago) · 220 submissions

[ my public key: https://keybase.io/danprince; my proof: https://keybase.io/danprince/sigs/8AYDk4-RDKmDfqhI3Zvr4m2aPQy1DeZ86fGOs6WbGLU ]
Submissions

comment 10y ago · link · parent

Ah, lodash and lodash/fp are slightly different packages. https://github.com/lodash/lodash/wiki/FP-Guide

comment 10y ago · link · parent

Yeah, so do lodash/fp and a handful of other solid libraries.

The difference is that this sticks as close as possible to Clojure's API _for data_, rather than trying to be a functional programming utility belt.

comment 10y ago · link · parent

tl;dr I wanted Clojure's simplicity with Lodash's flexibility, something easier to integrate into existing projects than ImmutableJS or Mori.

Function bind syntax will be controversial, so I've also included a compatibility interface, so you can use Zaphod from Babel-free JavaScript (https://zaphod.surge.sh/compat/)

64.

Zaphod: Clojure's API for JavaScript's Data Structures(zaphod.surge.sh ↗)

68 points · by codecurve · 10y ago · 11 comments

comment 10y ago · link · parent

https://galliumos.org/ has done a lot for this space. They're doing a great job at normalizing a *buntu distro across the various chromebook hardware.

comment 10y ago · link · parent

Try kwm[0]. It's not perfect, but as someone who's just switched in the opposite direction, it's the closest thing I've found to i3.

[0]: https://github.com/koekeishiya/kwm

comment 10y ago · link · parent

I recently switched to using a Mac (for work) after 5-6 years only using Linux. Again and again the most painful aspect of the Apple ecosystem is that Apple have already decided what is going to be best for me.

By default, it's impossible to use workspaces without frequent switches to the trackpad, which wouldn't be so bad, but without installing third party software it's not really possible to create shortcuts or start remapping keys either. Even once you've installed and started Kwm, Karabiner and Seil, the botched keyboard layout renders the Alt key useless for wm shortcuts. There's not even a keyboard shortcut that makes a window fullscreen without removing it from its workspace!

So much of the system lives in this unconfigurable space. As a Linux user, if my window manager isn't working for me, then I just install another one and start again with a fresh _and customizable_ blank slate.

Ironically the things that don't frustrate me about the chance from Linux to Mac are the things the author identified in the article. My editor works just the same in both OSes and Homebrew could be a lot worse.

And I get it, the OSX experience is a system that is averaged out to be comfortable and intuitive for everyone from musicians to graphic designers to programmers and business people. As a result, the user experience punishes power users the most.

If you primarily identify as a programmer and use a Mac on a day-to-day basis, go pick up a cheap Chromebook, throw a linux distro on it, and see how it feels. If it's not quite right, tweak it. If you get it working, great - you've just saved yourself ~$1000 and a vendor lock-in. If not, all you've lost is $150 and a few hours of your life.

68.

Upgrading to macOS Sierra will break your SSH keys(medium.freecodecamp.com ↗)

1 points · by codecurve · 10y ago · discuss

69.

US accuses Russia of cyber attacks(bbc.co.uk ↗)

16 points · by codecurve · 10y ago · 1 comment

70.

Ask HN: How to work remotely for US company?

2 points · by codecurve · 10y ago · 1 comment

71.

WireWorld Simulator in ClojureScript(github.com ↗)

2 points · by codecurve · 10y ago · discuss

comment 10y ago · link · parent

I just finished an EU funded CompSci Masters degree in Wales, the poorest country in the UK and it's devastatingly sad to think that once the EU research funding stops, those opportunities will be gone forever for future students coming through the department.

There aren't enough large tech companies in the area for there to be any sponsored degrees available, which probably means that when the funding finishes, the research will start to dry up and the interesting researchers will leave with it. Take away the research and what's left is a department of third-rate lecturers. That's not an inspiring way to learn.

Will the NHS get some of the £350m? Maybe, maybe not. It's likely to be up for discussion. Will the post-Brexit government allot research funding for CS departments in North Wales? Not a chance.

73.

ClojureScript WireWorld Simulator(danprince.github.io ↗)

1 points · by codecurve · 10y ago · discuss

74.

Understanding ASTs by Building Your Own Babel Plugin(sitepoint.com ↗)

1 points · by codecurve · 10y ago · discuss

75.

3 Alternatives to React(sitepoint.com ↗)

1 points · by codecurve · 10y ago · discuss

76.

Hacking Rollercoast Tycoon with Genetic Algorithms(kev.inburke.com ↗)

1 points · by codecurve · 10y ago · discuss

comment 10y ago · link · parent

Just to add to this, pick up an Amazon Kindle. There's almost no-where you can't read when your entire library fits in a pocket or a rucksack. I've been travelling for most of this year and my kindle comes second to only my laptop on the list of essentials.

comment 10y ago · link · parent

Read. And I don't just mean books (although they are a great place to start). Read technical blogs, read documentation, read other people's code. Seek out challenging reads that seem overly ambitious and use them to find out what your unknown-unknowns are, then use that knowledge to steer your learning.

79.

Functional JavaScript Data Structures with Mori(sitepoint.com ↗)

1 points · by codecurve · 10y ago · discuss

comment 10y ago · link · parent

Any chance of some clarification around the limits of the free tier?

> 20 FREE deploys per month

So I can only run the `now` command 20 times each month? What are you using to track how many times I've run it already? IP? NPM username? Package name?

>1MB size limit per file

Is this at deployment time or is this also enforced at runtime? If I deploy a 900kb sqlite file, then add 200kb of records to it at runtime, what's going to happen?

> Perfect for open-source demos, classrooms, tutorials & testing.

Are 20 deploys per month really enough to use in a teaching context? I'd love to use this tool in the web tech module I teach at my university, but I think most students would burn through 20 deploys in a week, let alone a month. Is there any chance this limit could be re-thought for teaching purposes?

I wouldn't mind if some of the other restrictions were changed, but free tiers that halt development til the start of next month don't sound great for learning to me.

comment 10y ago · link · parent

Just for reference—you can achieve this if you run your site behind CloudFlare. I run my own blog this way.

comment 10y ago · link · parent

It's interesting to see games for the HTC Vive tackling this problem by forcing players to be static, or move around the environment with a sort of point-and-click style teleport.

From what I've seen, players pick it up fairly naturally and it doesn't seem to impede gameplay. The major drawback would be that games need to be designed specifically with this in mind.

comment 10y ago · link · parent

I found a model of the Acer C720 with 4GB RAM and it's been my only computer for the last 5 months. The 32GB SSD is not great, but xubuntu + all my dev environment still leaves 40% free. Browsing is fine, never had performance problems when editing either. It runs Clojure on the JVM without issues, but I've never tried/needed to run a full blown IDE. That said, it happily runs Minecraft on medium settings.

There are still a few hiccups with hibernation. Using a tiling WM meant I needed to remap all of the chrome keys to get stuff like brightness and volume working.

I got it refurbished for £120 (~$170) before I set off backpacking in Asia and it's been the perfect laptop. Lightweight and decent battery life.

I do a lot of vector drawing and the trackpad fidelity isn't great, but that's hardly something you can ask for on such a cheap little machine.

84.

You Might Not Need .bind(this) in React(sitepoint.com ↗)

1 points · by codecurve · 10y ago · discuss

comment 10y ago · link · parent

So use Bower/NPM then. Or use npmcdn.com.

https://npmcdn.com/grd@1.2.0/dist/grd.css

comment 10y ago · link · parent

I've been backpacking around Asia working with an Acer C720 Chromebook. 2GB RAM, 32GB SSD, 11.6" display. It took a few days to get used to the smaller screen and keyboard, but since then it's been fantastic. Cost about £120 refurbished from eBay.

Battery lasts for 5-6 hours. The laptop itself has survived intense use travelling through India, Sri Lanka, Thailand and Cambodia, including having the corner of the screen melted by accident in the Himalayas.

Haven't found anything lightweight that works better than Lubuntu out of the box (trialed Xubuntu, Ubuntu, Debian, ElementaryOS and some Arch flavours). Getting a dual boot up and running was easy.

My work is mainly fullstack, so I sit mostly between a terminal and a browser. An effective configuration with a tiling window manager is a must with this size of screen and being a TMUX/Vim user helps cut down the number of workspaces I need.

Couldn't recommend it more for travelling programmers!

87.

Fantasy Land: Algebraic JavaScript Specification(github.com ↗)

1 points · by codecurve · 10y ago · discuss

12345
8