News for hackers. Stuff that matters.

nightnight

Re:Convert a physical chessboard into a digital one on Monday November 25, 2019 @02:10AM (#21626066)
The chess pieces don't have to be recognized via a neural network. You just need to track the delta of fields with chess pieces between moves and then you know which piece moved to which field.

So, just an optical recognition of empty field vs used field is required. This works since the starting position of chess pieces is always the same.

This way old inductive chess computer from Mephisto worked (the high-end models had inductive fields).

Redux gave me superpowers.
Funny. Today's web devs are not your daddy's webmasters.
Re:AI-generated fake content could unleash a virtual arms race on Tuesday November 12, 2019 @02:17AM (#21512157)
All tech demos without strong use cases yet. Machine-generated content, spinning content, etc. are black hat tactics employed for decades in order to game Google. Works (just look at what crap ranks high) but the foundation for new huge industries? No.
Re:Is Anyone Going to Get Rich Off of Email Newsletters? on Saturday November 02, 2019 @03:45AM (#21426398)
The problem with newsletters from a product perspective: They are not addictive.
OT: or just use puppeteer, not really hard, for free and you can rule the world
Great subject: I bet that 95% of successful people are one hit wonders. I mean, they got once lucky and can live of the capital of their one hit wonder but can't repeat this a second time.

Hence, don't respect/admire such people too much, they are the same avg frustrated chump from time to time like you are. With as many worries.

Re:Ask HN: What to do after the workday? on Friday November 01, 2019 @12:33PM (#21420667)
> I mostly enjoy my day at work. There are people to talk to and somewhat interesting projects to work on.

Stockholm syndrome.

Dear tsanummy, help us to find the irony in my post or better the message in your post. So, what's your point? I'd love to know what you are talking about.

Just to give another example: Imagine all countries in the world had the same language and people could move freely: You had massive and full competition between all nations/cities/economies for the best people and competition is good. Nobody is locked-in because of odd languages or would you dare to move to Beijing tomorrow?

Or imagine you had the same with languages and a nation forced people to only use Cobol and ignore newer developments. You get it? English is btw also a language which is easily extendable, something like creating verbs out of nouns is not that straight-forward in other languages. It keeps English alive.

This clearly demonstrates once again that Google is miles ahead of the competition in AI. I mean, they just have the best data.

If you want to have an every day example of Google's AI skills: Switch you phone's keyboard to GBoard, especially all iOS users, and you will face a night and day difference to any other keyboard esepcially the stock one. When using multiple languages at the same time the leap to other keyboards gets even bigger.

GBoard is my phone's killer app and if Google dropped it for iOS I'd left the same day to Android.

Re:React Concurrent Mode on Friday October 25, 2019 @04:46AM (#21353040)
> Skeleton state

There is a name for this? Didn't know.

> I do recommend you to play with it more in a tiny project.

Ok, will do.

Re:React Concurrent Mode on Friday October 25, 2019 @04:44AM (#21353028)
> performance costs

They are overstated. You are not building Photoshop in the browser 99% of the time. Dev productivity should have a higher prio => everything in JS and nobody needs some FE VM with bytecode (wtf, I mean when we already talk about Ember, Ember interfaces are not really the fastest one despite having their own small VM).

This is what I don't get, sticking to the past and requiring stuff which doesn't make sense.

OT: Languages are the biggest lock-in + market barrier for others an economy has (best example is China). Great that English has got even bigger as a lingua france since the Internet started. I think every try to spread local languages is just wasted time. I am rather afraid that more tech leadership comes from China (I am looking at all the Chinese Githup repo READMEs).
Re:React Concurrent Mode on Friday October 25, 2019 @12:54AM (#21352013)
> a downside about React is the fact that your template is also JavaScript

Everytime I read this (and it still seems to happens in 2019) I just don't get it--I don't get why people want to stick to the past. It's the best thing which could happen, everything is JS, FE development finally got bearable, no, enjoyable! It freed us from all the subpar patterns before.

Re:Lawmakers ask US intelligence chief to investigate TikTok on Friday October 25, 2019 @12:43AM (#21351962)
OT: The other day in one of Europe's biggest consumer electronics retail chain (MediaMarkt):

Why does Huawei has 3x more showroom space than all other smartphones manufacturers together, right in front of the entrance and this in every MediaMarkt? No other brand has such a setup.

The US is the only country trying to interfere and seeing potential and bigger threats.

Re:React Concurrent Mode on Friday October 25, 2019 @12:05AM (#21351772)
From your second link:

> if we switch from one page to another, and none of the code or data for the next screen has loaded yet, it might be frustrating to immediately see a blank page with a loading indicator.

IDK what's the best or most accepted UX. But my gut feeling says an instant transition to the new page with light grey pulsating placeholders rectangles for the still to load contents gives the highest user satisfaction. This feels super responsive and is learned by the users for years (and it's perfectly do-able just with Suspense).

So, I wonder if the solution of clicking, seeing no change but a small loading sign or spinner next to button till the page really is transitioning is actually that more responsive/satisfying? I really don't think so, it rather makes the app feel more sluggish, reminiscent of the old days with server-rendered pages and not feeling like a actual SPA.

This is of course debatable but are there any other significant/killer use cases React Concurrent makes possible? I don't want to sound snarky but I've the feeling Concurrent is a solution with a slick name searching for a problem. I hope I am wrong.

Edit: To the pro downvoter, just try to articulate your thoughts and contribute to a discussion than pure downvoting

Re:React Concurrent Mode on Thursday October 24, 2019 @11:36PM (#21351636)
@Dan, fyi, useTransition is already used as a hook name by the quite popular react-spring animation lib. I mean, I can migrate old code bases to import { useTransition as useSpringTransition } or I just import yours as { useTransition as useReactTransition }.

Not a big thing but also not really elegant. How would you deal with this?