Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 6y ago · link · parent

It is clickbaity. There was no "typo" (Pepsi said it was a "system error") and there was nothing that cost them $32B. The only true parts of the headline is "Pepsi" and "caused deadly riots", which I agree with you, is outrageous and should never have happened. But we don't have to lie about the content of a story in order to make this outrageous, it's already outrageous enough with the facts.

comment 6y ago · link · parent

Interesting story, but the clickbait headline is not needed here. Story ends with:

> At the end of everything, Pepsi’s total combined losses, between physical, legal, and brand equity costs, would top $20M. Their market share would plummet and take years to rebound.

The "$32 billion" seems to come from the amount of bottles who would win the prize, but Pepsi didn't actually pay out the promised amount, so it didn't cost them $32 billion in the end.

comment 6y ago · link · parent

What? Really? If you're being placed in front of a different OS than what you use you loose basic troubleshooting capabilities?

Look, I'm not using Windows nor OSX very often, when people ask me for help, I mostly start out as helpless as them. But programmers (or generally computer literate, or whatever you wanna call it) seem to have way better searching skills, even for things they have no idea about.

So yeah, helping people with the windows/osx setup sucks, because I'm completely lost. But if you're a linux user, you're probably used to searching for knowledge in order to gain it. This also works for others OSes.

I'd understand if you don't want to help them out of principle, but please don't call yourself incompetent when so many people have it so much "worse". Mention "DNS" or "proxy" and they'll think you're speaking yiddish.

comment 6y ago · link · parent

... "I'd love to help you, but I don't use Windows so might not be able to. But let's take a look, since you're my friend and all and I want you to be happy"?

comment 6y ago · link · parent

> The object placement is too perfect

Does not seem too perfect to me. I frequently came across the tiny trees placed in the water near the shore and also on the rock formations, something I have yet to have seen in the real world.

comment 6y ago · link · parent

From the README:

> Isn't this just a reimplementation of strace -fe trace=creat,open,openat,unlink,unlinkat ./program?

> Yes. Though it aims to be simpler and more user friendly.

comment 6y ago · link · parent

Now I don't know pmoriarty's situation at all and don't want to assume anything either, but, if someone has a "pretty old, slow laptop on which I've been running Gentoo for a long time" without upgrading, there is surely a reason for that. Suggesting that "hundred bucks" is something you can spend just to get faster build times might work for a well paid developer in the 1st world but many developers are not well paid so cannot afford the luxury of upgrading their machine willy nilly like that.

While upgrading for money works for some, less bloated software would work for everyone + no need to spend money to get acceptable build times + even if you have a super computer, you compilation times gets a lot faster. So aiming for less bloated software feels like a more noble goal than trying to convince people to upgrade their hardware.

comment 6y ago · link · parent

The problem with your argument here is that you're assuming that the person you're replying to is using ES6 and/or JSX when they outright said they prefer just using "plain old JavaScript" which is neither of those things, so you're bypassing their argument fully.

Their point seem to be that no matter what language you prefer to be compiled to JS, in ends up being JS anyway so you might as well write JS directly, because of the reasons provided in the last post. I don't agree with them (ClojureScript is the language of choice for me), but you're not arguing with good faith here.

comment 6y ago · link · parent

> they’re going to use them to justify their stupid decisions

I'm sorry, but isn't this the whole point of using mental models for your decisions? What's stupid is all up to you, but if I reasoned together some decision based on some model that I think works for me, it's hardy stupid for me.

I always saw the point of these mental models is to use them to justify my "stupid" decisions, and have some structured way of reaching that decision instead of just "because I wanted to".

Disclaimer: I don't really follow any mental models myself, except the model my organic brain comes up with on the fly, so don't let me tell you how others use these mental modals.

8320.

“Money doesn't interest me” – Creator of Blender talks about its future(youtube.com ↗)

1 points · by capableweb · 6y ago · discuss

comment 6y ago · link · parent

Seems it's using Esprit (https://github.com/mfikes/esprit) which is using Espruino (https://www.espruino.com/) who in their reference documentation for the API (https://www.espruino.com/Reference) lists methods for both Bluetooth and I2C.

(The submitted project is with ClojureScript that compiles to JavaScript, not Clojure, to be extra specific in case someone misses the difference)

comment 6y ago · link · parent

First off, such a small mistake that I don't think most people mind, so no point in making a comment about it.

Secondly, HN automatically does that with titles. If you put NASA when you submit, HN will correct it to Nasa. Then you can change it back to NASA if you edit the title.

Thirdly, The Oxford Dictionary of Abbreviations lists NASA as "NASA (or Nasa)" so seems correct at least somewhere in the world, but probably not in the US.

https://books.google.es/books?id=bWwKWnp9vaoC&lpg=PA32&ots=C...

comment 6y ago · link · parent

I'm unsure of why you say "almost" everything when the UI code is simply calling the python API to do it's function. You could do anything and _more_ in the python API, as it's what the UI uses but you can use all the parameters via the code while the UI doesn't expose everything.

Unless something changed recently regarding this.

Also, regarding executing the code from outside, you can run blender headlessly, running the code with it when running blender via terminal. So you could use it as a windowless client if you so wish.

comment 6y ago · link · parent

My point still stands. If the one setting up the fuzzer is thinking about the condition that A) you're using a valid email that B) already existing in the system and C) cannot be used to authenticate with another system, you can easily check the code for this directly. The fuzzer won't add anything over a simple integration/E2E test here.

comment 6y ago · link · parent

In general I agree with you that it's good to run fuzzers against any endpoints, public or internal (as you never know if someone can wrangle data to go from public -> internal somehow), but in this particular case, you'd only find a issue if the fuzzer somehow randomly used the ID of another user that was already created, and verified that it couldn't access it.

In that case, you'd catch it way before even implementing the fuzzer.

So in this case, I don't think a fuzzer would have helped. Some E2E tests written by humans should have caught this though.

comment 6y ago · link · parent

> stable, version-controllable, and intuitive to use

Neither of those features are inherently impossible to do with GUIs. Alternatively, you can have a GUI editing your text based configuration.

Although, doesn't look as cool so, here we are.

comment 6y ago · link · parent

It's the same as when games move their launch dates because other hyped games have a similar launch date, so there is less space for them to actually get any attention. Most recent example would be Factorio moving their launch date as it got to close to Cyberpunk 2077 (https://factorio.com/blog/post/fff-349), a game people have been waiting forever for.

Google wants to make sure when they do their announcements, people have "time and space" in their mind and in the media to actually talk about it, as big releases like this is usually mainly a PR effort.

comment 6y ago · link · parent

For some. For others, it bring them lots of joy. I'm a huge flight nerd and VR has made my experience flying simulators waaaay better. Beat Saber also got me to move a lot more, while listening to my favorite music and it's fun.

But in general I think you're right, most VR stuff is gimmicky. But for us niche nerds, it's a cool addition to our stuff.

comment 6y ago · link · parent

> I'm curious: Why would you use Blender for this? I consider it a 3-D modeling tool, not a video editor.

Because it has a nice video editor in it, that's useful for lots of things.

Might be hard to get into if you never used Blender before. But if you've done 3D modelling in Blender, you'll be pleasantly surprised that your intuition of how to move, scale and generally edit stuff works the same in the video editor as in the rest of Blender.

comment 6y ago · link · parent

You could do that in basically any video editor that supports multiple layers and masks. Blender is an open source (3D) editor where you can do this with.

Most likely they are using one of/combination of: After Effects, Premiere Pro, DaVinci Resolve, iMovie and/or Final Cut Pro as those are the more standard tools in the industry.

comment 6y ago · link · parent

In general, we have higher-level programming languages so we can do just this, hide the complexity under indirection. It's basically the purpose of the languages we tend to use today, otherwise we would all be still using assembly.

Your job as a programmer is being able to walk this ladder of indirection up and down until you find what you seek and fix/add/remove whatever.

You'll always be dealing with way more than 20 levels of indirection when programming, even with a "hello world" program. If adding two more levels of indirection makes your mental model break down, you might consider upgrading your environment/workflow a bit to support this.

Regarding naming I agree with you. Good names are really, really, really hard to come up with. Entire books have been written on how to name things. Doesn't excuse us from trying though, the only way we can get better is by doing.

8332.

VCVRack – open-source Virtual Eurorack DAW(vcvrack.com ↗)

20 points · by capableweb · 6y ago · discuss

comment 6y ago · link · parent

I guess my point would be that with a REPL driven development in Clojure, there is no moving, as the code is already where it should be, you just executed it from there directly.

And you don't need to extract anything into functions, lisp-syntax kind of already gives you all the separation you need, so you can just execute code in place if you need it to.

comment 6y ago · link · parent

Two completely different things. A npm package is a module of code. A function is... A function. Having a lot of small functions is helpful as it builds up a vocabulary in the codebase, so instead of having to understand every single line each time you come across it, you can extract the meaning into a name.

What the npm ecosystem is doing is a completely different thing.

comment 6y ago · link · parent

Reading the blogpost again, I don't see him suggesting that you should replace unit tests with "REPL-driven design", he is merely suggesting replacing the TDD workflow with a RDD workflow, which you can still end up with unit tests, it's just that you don't write them first.

comment 6y ago · link · parent

Quickcheck, clojure.spec and similar efforts are getting damn close to it, and using clojure.spec raised my confidence in my code a lot, more than unit testing ever did. Since generative/property based testing is gaining more ground, we'll get better tools as well.

Not to say there is not still a place for manually written unit tests.

comment 6y ago · link · parent

That's interesting, didn't know that! Thanks for sharing. I don't think there is anything that is more "true" than something else, it's just varying degree of personal productivity and in the end we all work very differently, so one size does not fit all. I'm glad you're sharing your thoughts with me and seems to be similar to the REPL environment I'm running myself.

comment 6y ago · link · parent

Thanks :)

My point being, if you wanted to execute the following code: https://github.com/cjsaylor/chessbot/blob/11e1059aa77fed84d2...

You probably wouldn't be able to, without restructuring how you're handling your state that is being used there. A REPL driven made program usually is made that the runtime carries the state and exposes it, so you could just select that part and run it, and see the output of it.

I'm guessing delve is more like a traditional debugger that steps through each line, rather than an REPL, correct?

comment 6y ago · link · parent

I was part of a project that when I just joined it, RESTful APIs together with fat frontend clients was becoming the hot-new-thing. The application was originally returning text/html (templates) to be injected in various part of the frontend, at request-time.

To migrate to our flashy new Angular V1 application, we added a application/json content-type that instead of returning the template, returned the data that the template used. So we could endpoint-by-endpoint migrate to the SPA we were building.

Was simply a matter of making the data required for the views a bit more advertised internally, so the controllers could instead not render the views when the content-type is json.

comment 6y ago · link · parent

I concur. Use REPL driven development to arrive at a solution, but use unit tests (or similar) to make sure there are no regressions in the future and that it continues actually being a solution.
1
277278279
307