Better HN
topnewbestaskshowjobs
Log inSign up

cachehit

6,998 karma · joined Dec 14, 2008 (17y ago) · 1,808 submissions

(Account pending deletion)
Submissions

comment 5y ago · link · parent

>As a Venezuelan, it's not being used.

https://news.ycombinator.com/item?id=27232730

comment 5y ago · link · parent

So far, I am feeling positive about Copilot. I've used it for about a week and it has been useful at times. Like the author, I've mostly found it useful in situations where I am doing something repetitive. I definitely need to look over suggestions carefully though.

I don't think it will go much further than that and I don't know what that would even look like anyway, unless I could actually start discussing architectural decisions with it like I do with a human pair programmer. I guess you could say that this is what the comments are for, so who knows.

comment 5y ago · link · parent

Why can you not run PG locally?

comment 5y ago · link · parent

Installing spyware on store computers isn't something you "just double check" about. To me that implies that he did not make it clear to the employee what he intended to do. In addition to which, I doubt some random store worker would have the authority to allow this.

comment 5y ago · link · parent

If you look strictly at the # of seconds spared it might not seem important. But those seconds are often spent in an uncomfortable position which makes them worth more. Or it might be when you are out running and don't want to lose the groove. Or you might be teaching your child how to do it, and you want to simplest solution possible.

comment 5y ago · link · parent

Why would you want Docker to be able to bind any folder? Or even edit "anything" in your IDE? Don't you have a /projects folder somewhere?

..and, office?! Do you keep spreadsheets in system folders?

comment 5y ago · link · parent

Excellent! I installed a similar plugin for facebook that disables the news feed and it worked wonders. I can still access my messages and invitations which is what keeps me locked in, but facebook itself is now a boring site that I never use for procrastination.

I wish I had a solution for this here site. I've tried noprocrast several times but it doesn't really work for me, I always end up disabling it.

668.

Can an AI Design Our Tax Policy?(youtube.com ↗)

1 points · by kristiandupont · 5y ago · discuss

comment 5y ago · link · parent

It seems that by "expected", you mean "expected, by anyone who read the spec" which I don't think is a fair use of that word. Obviously, most JS developers have not and will not read the spec.

I am very happy with JS and TS and I think the coercion rules are easily worked around with linter rules and policies, but they are definitely weird and I think the language would be better if it simply threw exceptions instead. But then, such an issue shoud not be surprising for a language that was designed in 10 days.

comment 5y ago · link · parent

I like to say that mutable state is to software as moving parts are to hardware. If you can avoid them, great! But a number of systems/designs simply require them.

[link redacted]

comment 5y ago · link · parent

As someone who switches between three platforms, I like that Electron apps are consistent and in sync. Back in the day when I was using Skype, I could never get used to either.

I don't know what Slack or Teams would look like with native UI components, but I am pretty sure I would consider it inferior to what we have at the moment. The possibly improved performance and memory footprint would be nice but not enough for me to care about.

672.

Here Comes the Law(world.hey.com ↗)

6 points · by kristiandupont · 5y ago · 1 comment

comment 5y ago · link · parent

Not quite in the 90's but a bit later I was sure that when Moore's Law would stop we would see the trend move to cores. I wrote an article[1] about this change and how we should all prepare for it :-D

If I could tell my young self that as of 2021 we are not talking about kilo- or mega-cores but that my new M1 which I am very excited about is a mere 8, I would have been severely disappointed.

[1] https://www.gamasutra.com/view/news/104365/Feature_The_Trans...

comment 5y ago · link · parent

That's neat, I wasn't aware of it!

The difference, I suppose, is that by inspecting the schema, you can make assertions that take the whole architecture into account, rather than just the specific piece of SQL of one migration. I don't personally run the tool in CI, I run it before generating types, which is when I am writing a new migration.

comment 5y ago · link · parent

I am making a competitor to this and I am really happy that the approach seems to be gaining traction. Having the database as the source of truth and migrating it with SQL feels very right for me.

It does mean that architectural decisions start in the database as well, which I am trying to govern with "schema linting" ([link redacted]). If you are using Postgres, I would love help with building this.

comment 5y ago · link · parent

Knex has some built-in support for it, but I've made a wrapper that does it quite well. So I can write db.select('member', { displayName: 'John' }) -- and because I specify the table name in the first parameter, I get type checking on the second.

comment 5y ago · link · parent

I generate Typescript types directly from a Postgres database. That works great with Knex and a bit of custom code I've written on top.

comment 5y ago · link · parent

I've made a library that generates Typescript types from a PG database and I see a variation of this problem: since the "reflection" capabilities on views don't tell me about references in their source tables, I lose the ability to see where a foreign key points to. I normally use this to create nominal ID types, but in views I can just create strings or numbers.

I am trying to work around this but so far my only solution is to parse the SQL of the view definition and extract the information from there. I have it somewhat working but it's a bit complex for my liking..

comment 5y ago · link · parent

I don't think I would say that. Such an AI wouldn't need to pass a Turing test or be able to reason in any other situation than traffic. And for traffic, it will have a highly specialized sensory system which is going to be (or already is) vastly better than our eyes and ears.

comment 5y ago · link · parent

>You can get skid training courses where a slippery road is 'simulated' on a wet plate

This is mandatory in Denmark. Most fun part of getting the license!

comment 5y ago · link · parent

I perform an "optimized" version of this: I ask myself: "where's the tension?". Often, I realize quickly that I am flexing somewhere, and I just need to let go.

[link redacted]

comment 5y ago · link · parent

>so is any other developer

No, they are not. That was what the whole Hey debacle was about. Netflix and Spotify have special privileges there.

comment 5y ago · link · parent

>If you don't like Apple, boycott them. Easy

If your customers demand an iOS app, boycotting them is not easy. It's expensive either way.

comment 5y ago · link · parent

Onivim looks great! Does it/will it support remote development like VSCode? I do all my development on a virtual machine. I love everything about VSCode except for the vim plugin.

comment 5y ago · link · parent

I find that pair programming with the candidate on their laptop, using their preferred tools works well.

It takes time and in many ways it requires more energy from me than if I were to just sit and observe. However, it gives a better feel for how the person goes about solving problems from the abstract, architectural stuff to the nitty gritty. I love it when pairing with a fellow vim-user as I will inevitably learn some new trick.

comment 5y ago · link · parent

Yes, latency. I joined some of the same people later in a spawned-off company that created a similar concept called The Nelly Nut Show (https://www.imdb.com/title/tt0346350/). We had serious issues selling to the US because there was a required delay of 7 seconds on live shows so that any cursing could be bleeped out. Silly Americans :-D

comment 5y ago · link · parent

It was Danish indeed :-)

comment 5y ago · link · parent

Friends of mine created a popular video game that was run on live TV around the world ("Hugo the TV Troll").

The first version was made for the Amiga. They didn't want the networks to know this because it would not have been accepted as a tv-quality signal, so they got a big flight case on wheels, put the Amiga in there, put a lock and break-out panel on the back, saying that this was a corporate secrecy measure. Networks bought it :-)

comment 5y ago · link · parent

Agreed. When it was canceled I was furious but a part of me was convinced that it meant that they would add the nice features to the other client. I was wrong.
1
222324
61