Better HN
topnewbestaskshowjobs
Log inSign up

gitgud

5,433 karma · joined Aug 23, 2017 (9y ago) · 2,457 submissions

Complex solutions create complex bugs...

https://github.com/benwinding

https://benwinding.com

[ my public key: https://keybase.io/benwinding; my proof: https://keybase.io/benwinding/sigs/bVV_JyagfOPTVOiqOf50YZB4rhM0EIDgUvumlGAA6mY ]

Submissions

comment 3y ago · link · parent

What other ways could you rank by popularity then?

182.

Ask HN: Why can't I search my favourited posts on HN?

1 points · by gitgud · 3y ago · discuss

comment 3y ago · link · parent

I can't tell if this is sarcasm or not, you have the word "pen" in your name!

Anyway, not sure if it's "guaranteed" to be worse than using a computer. Yes, you'll definitely get less help with pen and paper. But you'll probably end up understanding the problem better, without relying on GPT completion of code etc...

comment 3y ago · link · parent

Very cool, I like the idea, reminds me of css modules in react, but easier. Or svelte/vue css.

Its weird to compare this to tailwind and say it’s a simpler abstraction though. This requires JS on the client, whereas tailwind does not. This modifies the css styles you write at runtime, tailwind does not.

> Tailwind verbosity goes up with more child elements

True, but in component-driven design this does not happen in source code at least. The tailwind classes are only defined in each component, not the usages.

> No chance of deprecations. 16 lines is infinitely maintainable.

Ridiculous claim, sorry. Those 16 lines aren’t trivial, aren’t tested, aren’t formatted (would be more like 30-40 lines I would think)

Anyway, I’m impressed with the idea and concept behind it. Good work on implementing it!

comment 3y ago · link · parent

“use illegal substances” is a victimless crime sometimes, other times it creates victims out of friends, family and the general public…

comment 3y ago · link · parent

This is cool! So I can spin up a server, then instantly get a domain and then an SSL cert, nice!

comment 3y ago · link · parent

This is very impressive! I like how the 3D model has a “view cube” to show the orientation, and that it updates in real-time as parameters are changed

They call these types of programs [1] “configurators” and they’re pretty fun to play with, great for clients to see what they want, especially with workshop drawings as output!

It also reminds me a little bit of [2] Matthias Wandel‘s “wooden gear generator”, which I think has been somewhat profitable.

Maybe it would be good to highlight the parts of the model that are changing with the parameters. I know it shows the dimension that’s changing, but it would be even clearer to highlight the model itself I think

[1] https://en.m.wikipedia.org/wiki/Configurator

[2] https://woodgears.ca/gear_cutting/template.html

comment 3y ago · link · parent

> I'd love feedback on anything, such as how to improve the UI/UX of the mobile view of the map page.

Looks great, the UI is snappy and impressively fast.

One thing I would suggest is defaulting to the “Mean annual depth” background, as I’m viewing a rainfall specific website and would expect to see that.

You could also update the URL with the map state, like [1] Windy does on their site (and google maps)

[1] https://www.windy.com/-Rain-accumulation-rainAccu?rainAccu,n...

comment 3y ago · link · parent

Reminds me of a feeling I had when solving a jigsaw puzzle:

Everything must fit together to reveal the big picture!…

In reality things almost never fit together to reveal some big picture… so trying to make them fit like puzzle pieces often leads to false conclusions

comment 3y ago · link · parent

> It's kinda hostile to any users who might want to fire up a debugger for learning or solving a problem with your site

It’s intentional, as commercial sites don’t want you to know how it actually works, as you could steal it.

Business cannot exist without secrecy…

comment 3y ago · link · parent

Agreed, all the best parts of express js (request/response, middleware, node) made easy and simple

comment 3y ago · link · parent

It only makes sense for things that run in the cloud, as they need to pay for that compute. Similar to costs “per request” in other cloud services like AWS.

Although if Adobe did charge “per use” for locally run tools like brushes and filters… I’d hope they’d at least they’d make the billing completely “usage based” with no minimum monthly cost.

But this is insane and evil, I’ll stick with Gimp and Inkscape

comment 3y ago · link · parent

> What makes JS frameworks so quick to change? … What's the urge to reinvent rather than evolve?

There’s a really low barrier to entry for creating and sharing JS packages. Basically, you can just create a free account on npm and run “npm publish” to make a library available globally for free. Updates are just as easy, and using packages is even easier.

It’s this super low-friction of JS development that drives the ecosystem to constantly iterate. And it even allows solo developers - like ^ this one - to publish and share a new framework.

I haven’t tried to publish packages for Java, Go, Python etc… but I would be very surprised if it’s as easy and unrestricted as npm…

comment 3y ago · link · parent

> Months of battery life with gps is impossible.

Apple air tags last for 12 months apparently

https://www.tile.com/en-au/blog/airtag-battery-life#

comment 3y ago · link · parent

Reminds me of https://gail.com/

comment 3y ago · link · parent

It's a little bit ironic that the package is called "onprem" but the second line imports an external model from huggingface...

    from onprem import LLM
    url = 'https://huggingface.co/TheBloke/CodeUp-Llama.....'
    llm = LLM(url, n_gpu_layers=43) # see below for GPU information
Anyway looks like a great little project, nice work!

comment 3y ago · link · parent

The zip file is decompressed on the server, whereas that HTML/JS will be executed on the client

comment 3y ago · link · parent

Isn’t this what Wikipedia is in essence? Ideas, concepts linked together, with supporting evidence

comment 3y ago · link · parent

> I hope this boilerplate will be as helpful to you as it is for me. Would love your feedback pls

It’s a commercial product, so you won’t get much feedback as not many HN readers will need/buy this.

Have you considered open-sourcing it?

comment 3y ago · link · parent

> Declarative means you define the state you want

“FROM ubuntu:latest” is pretty declarative then…

comment 3y ago · link · parent

It’s not the only way to prevent misuse for example: captcha’s, rate-limiting etc…

I bet they implemented the login anticipating misuse… and like all other startups, there’s only a tiny chance the product would be misused, but a large chance that many people won’t use it due to the login wall.

comment 3y ago · link · parent

I think coding is a balance of 2 problems

The first is the business problem, most important.

The second is the problem of maintaining and iterating on the solution to 1…

Without solving the first problem, the business dies and you don’t even need to care about the second problem… however the second problem can also kill the business if not solved eventually…

comment 3y ago · link · parent

I kind of agree, reminds me of a good quote from somewhere…

> make it work, then make it pretty, then make it performant

Solve the problem first, then improve the solution

comment 3y ago · link · parent

> Everyone? I wasn’t sure. I doubt a fresh-outta-CSS-bootcamp person would either.

You could say the same about any api not being immediately obvious.

> And using shorthands for singular properties feels like reinvented CSS

It’s quite a nice way to describe css in my experience. The shorthand classes actually teaches you css too. As they’re basically a 1-1 mapping, but you can write them much faster than manually writing the styles

It also scales well, as you don’t get crazy css class hierarchy’s that are hard to modify.

> you can’t even refactor mb-5 { margin-bottom: 6α }. If you can’t use it to refactor, what’s its point?

Not impossible, I mean you can easily edit the tailwind.config to be different for mb-5. Or search all relevant instances of mb-5 and replace them with mb-6 for example.

I think it’s best for component-driven development, where you want to encapsulate styles with components and not have them dependent on the context that their in. It does make the HTML more verbose, but development much easier and faster

comment 3y ago · link · parent

Well I guess it’s already been 5 years since I’ve used tailwind and everyone still agrees that:

    mb-5 = margin-bottom: 5x (something)
There’s a use for utility css, it’s becoming standardised in a way, and I predict it will continue to be used and understood in another 5 years

comment 3y ago · link · parent

What’s the original blog source for this? Should probably add a link to the source at the top of every article, otherwise it looks like original content (to an outsider like me)

comment 3y ago · link · parent

Pretty sure adding a JS interpreter in your webpage is impossible to do without security concerns...

But maybe using an <iframe> would make it a little more secure...

comment 3y ago · link · parent

> …when a problem arises with some of the complexity you’ve added. Is your first instinct to add even more stuff to fix it, or is it to remove and live with the loss?

This is a double edged sword. Removing is generally dangerous and can cause things to break, while adding is generally safer… which might explain growing complexity in most software systems

I suppose engineers need to be brave and ruthless to remove code and fight growing complexity…

comment 3y ago · link · parent

Very cool! Vision systems can be so daunting to play around with, but this seems very approachable!

There's several segmentation models listed there, do you plan to support "Segment Anything" at some point? I remember reading it was a pretty good model... but I'm not an expert

comment 3y ago · link · parent

> ”Community comes together to co-create value for everybody, which in itself is some sort of tangible currency.”

In this case the community is volunteering time/resources to the project. In my experience it takes a lot of management to pull this off, with PR reviews, discussions, design road maps… etc

> ”But a very high number of FOSS libraries/packages DO NOT have a community. How do you believe such projects must be sustained?”

Without a community to volunteer effort, the creators need to donate.

Either they have a commercial product that funds the FOSS project. Or more commonly, a highly paid software engineer gives back to the community as philanthropy

1
678
82