News for hackers. Stuff that matters.

sunesimonsen

Re:Property-Based Testing for the People on Monday January 06, 2025 @12:41PM (#42612858)
I think property based testing becomes a lot easier when you can just use normal asserts like this: https://github.com/unexpectedjs/unchecked
Re:Preact Signals on Wednesday September 07, 2022 @06:23AM (#32748781)
Really interesting to see Preact adopt this kind of model.

I have been working on a similar programming model for a while, where this kind of state management is the only approach:

https://github.com/sunesimonsen/dependable-view https://github.com/sunesimonsen/dependable-state

The library has other kinds of agendas like being able to run without a build step, being really small and allow multiple versions in the page.

Examples: https://github.com/sunesimonsen/dependable-example-hackernew... https://github.com/sunesimonsen/dependable-example-todomvc

You are actually right - I should update the readme with unpkg information:

import { css, classes } from "https://unpkg.com/[email protected]/dist/bundle.esm.min.js";

An alternative that is much easier to adopt, is to use unexpected-check http://unexpected.js.org/unexpected-check/
Re:Learn Emacs Lisp in 15 minutes on Sunday July 28, 2013 @02:06PM (#6117464)
It actually works similar enough that I switch between Vim and Evil daily without getting annoyed. I usually use Vim from the terminal. The follow things you asked about are all working:

  Macros
  Repeat
  :'<,'>s/foo/bar/gi
  :%s/foo\(bar\)/bar\1/
It is very actively developed and quite stable. There are of cause Vim features that are not implemented yet, but the core seams to be very well covered.
Re:Sublime Package Control – a Sublime Text 2 Package Manager on Wednesday August 31, 2011 @12:47PM (#2946356)
Does Textmate users never learn? - "Yay let's use another proprietary editor as our most important tool" :-/