Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hitchdev
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
hitchdev
3mo ago
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 framework where y
2.
▲
by
hitchdev
2y ago
>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 to exist. >
3.
▲
by
hitchdev
2y ago
>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: https://hit
4.
▲
by
hitchdev
2y ago
It is. I run a very similar script on termux, triggered via termux widget on my home screen.
5.
▲
by
hitchdev
2y ago
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.
6.
▲
by
hitchdev
2y ago
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.
7.
▲
by
hitchdev
2y ago
>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 li
8.
▲
by
hitchdev
2y ago
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. That's exactly w
9.
▲
by
hitchdev
2y ago
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 very least resemb
10.
▲
by
hitchdev
2y ago
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 good design but i
11.
▲
by
hitchdev
2y ago
>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 think people should
12.
▲
by
hitchdev
2y ago
Thats interesting. You had almost exactly the same idea as me: https://hitchdev.com/hitchstory
13.
▲
by
hitchdev
3y ago
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 does that. Even
14.
▲
by
hitchdev
3y ago
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 whittled down execu
15.
▲
by
hitchdev
3y ago
MongoDB is still around.
16.
▲
by
hitchdev
3y ago
>The whole point of abstraction is to make those decisions once and isolate the complexity The point Sandi Metz is making is that it's often only obvious when you can do this in hindsight. Lots of things can look abstractions wort
17.
▲
by
hitchdev
3y ago
Why not attach debugging tools to the tests?
18.
▲
by
hitchdev
3y ago
This is neat. >For example give a marketing agency authentication to claim the domain on social media but nowhere else. How does it prevent them from claiming it elsewhere?
19.
▲
by
hitchdev
3y ago
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)"
20.
▲
by
hitchdev
3y ago
cProfile and locust are two commonly used profiling and load testing tools.
21.
▲
by
hitchdev
3y ago
* Ruthlessly prioritize by pain - a lot of technical debt is "icky" but doesn't cause much pain. Some causes a lot of very serious pain. The latter is what you need to focus on. The former you need to accept you might never g
22.
▲
by
hitchdev
3y ago
I sometimes wonder if Selenium wouldn't have been able to beat back Playwright more if it had reserved the rights to run SaaS services on top and used some of the proceeds to fund more development. It's a fantastic tool but I thin
23.
▲
by
hitchdev
3y ago
I believed this would apply to me too but it ended up slower than 4g. Modems also appear to range from £250-£900 on amazon.
24.
▲
by
hitchdev
3y ago
This is probably better done via a different app. I sometimes use croc to do one time file sending.
25.
▲
by
hitchdev
3y ago
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
26.
▲
by
hitchdev
3y ago
That's exactly what I tried to do with this framework: https://github.com/hitchdev/examples Rather than trying to force your testers and stakeholders to adapt to the DSL, the templated story->documentation gene
27.
▲
by
hitchdev
3y ago
I think this is due to Cucumber's syntax and culture, not because the idea itself is a fantasy. The syntax simply doesn't allow for complex representations of specifications and doesn't have anything resembling inheritance (e
28.
▲
by
hitchdev
4y ago
Python has a decent one. For people who like orgmode, python and jinja2, I built a command line templater using it: https://hitchdev.com/orji/ I use to to generate nicely formatted latex letters, resume, markdown for u