I had a similar issue. The blind spot was unit tests. I think the issue is just that it's incredibly hard to sell an abstract idea and incredibly hard to convince people to abandon ingrained habit. I created a testing…
>You can embed DSLs in CUE CUE lets you embed functions too it looks like it's almost a programming language itself. The closer a configuration language gets to a programming language the less of a reason I see for it…
>The issue here is that schema validation is expressed in Python. The author contradicts himself when he argues, on the one hand, that Python shouldn't be used for configuration because it's too powerful:…
It is. I run a very similar script on termux, triggered via termux widget on my home screen.
I run single script that does a commit, pull and merge without pulling open the editor. It takes a couple of seconds and works fine.
I wrote a command line tool called "orji" coz of this (still in alpha). I wanted to use orgzly or a text editor and just be able to write templates (in jinja2) or bash scripts to push data in or out of my notes.
>you sort of can't make standalone ELisp apps (or at least nobody does). Otherwise you'd just have an `org2html` and `org2pdf` application at the command line. Because I don't like emacs and I wanted to lean on command…
I dont think it is about discipline. Discipline is required if you're duplicating tedious work, not for creativity. At its core, a good test will take an example and do something with it to demonstrate an outcome.…
It's not purely about skill, code quality also improves as a function of discipline, a willingness to take risks and outside pressure. fwiw I dont think Ive ever seen clean code that didnt make use of something at the…
The best way to conceptualize hexagonal is as a kind of crutch to accomodate the inability of unit tests to effectively fake stuff like the db and their tendency to tightly couple to everything. It's not intrinsically…
>And stuff like mocks etc take far longer to write than a 5 line fix If you test from the outside in and build up a library of functional and realistic fakes then over time then this gets quicker and easier. Ideally I…
Thats interesting. You had almost exactly the same idea as me: https://hitchdev.com/hitchstory
Literate programming shouldnt necessarily apply to application code for large systems but I almost always want more literate tests that clearly explain not just what should happen under all kinds of scenarios but why it…
They're attacking the problem from two directions - bottom up and top down. I view the type system as a way to whittle down the state space to the bare minimum while the tests validate that that the behavior of that…
[dead]
They are useful if you program in a somewhat object oriented way. They are deeply unhelpful if they're all either "method(self) -> dict" or "method(input: pd.DataFrame)"
Here's an example of it in action to run integration tests: https://github.com/hitchdev/hitchstory/tree/master/examples In e.g. the website example, the parent podman container does everything from running the…
I had a similar issue. The blind spot was unit tests. I think the issue is just that it's incredibly hard to sell an abstract idea and incredibly hard to convince people to abandon ingrained habit. I created a testing…
>You can embed DSLs in CUE CUE lets you embed functions too it looks like it's almost a programming language itself. The closer a configuration language gets to a programming language the less of a reason I see for it…
>The issue here is that schema validation is expressed in Python. The author contradicts himself when he argues, on the one hand, that Python shouldn't be used for configuration because it's too powerful:…
It is. I run a very similar script on termux, triggered via termux widget on my home screen.
I run single script that does a commit, pull and merge without pulling open the editor. It takes a couple of seconds and works fine.
I wrote a command line tool called "orji" coz of this (still in alpha). I wanted to use orgzly or a text editor and just be able to write templates (in jinja2) or bash scripts to push data in or out of my notes.
>you sort of can't make standalone ELisp apps (or at least nobody does). Otherwise you'd just have an `org2html` and `org2pdf` application at the command line. Because I don't like emacs and I wanted to lean on command…
I dont think it is about discipline. Discipline is required if you're duplicating tedious work, not for creativity. At its core, a good test will take an example and do something with it to demonstrate an outcome.…
It's not purely about skill, code quality also improves as a function of discipline, a willingness to take risks and outside pressure. fwiw I dont think Ive ever seen clean code that didnt make use of something at the…
The best way to conceptualize hexagonal is as a kind of crutch to accomodate the inability of unit tests to effectively fake stuff like the db and their tendency to tightly couple to everything. It's not intrinsically…
>And stuff like mocks etc take far longer to write than a 5 line fix If you test from the outside in and build up a library of functional and realistic fakes then over time then this gets quicker and easier. Ideally I…
Thats interesting. You had almost exactly the same idea as me: https://hitchdev.com/hitchstory
Literate programming shouldnt necessarily apply to application code for large systems but I almost always want more literate tests that clearly explain not just what should happen under all kinds of scenarios but why it…
They're attacking the problem from two directions - bottom up and top down. I view the type system as a way to whittle down the state space to the bare minimum while the tests validate that that the behavior of that…
[dead]
[dead]
[dead]
[dead]
They are useful if you program in a somewhat object oriented way. They are deeply unhelpful if they're all either "method(self) -> dict" or "method(input: pd.DataFrame)"
[dead]
[dead]
[dead]
[dead]
[dead]
Here's an example of it in action to run integration tests: https://github.com/hitchdev/hitchstory/tree/master/examples In e.g. the website example, the parent podman container does everything from running the…