Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 9y ago · link · parent

Even worse, in some countries disassembling proprietary software to analyse its behaviour can be prohibited (at least they write this in EULA).

And modern OS have no protection against backdoors: desktop OS allow apps to do whatever they want, mobile OS like Android have privileges separation but don't allow user to control Internet traffic: you cannot run iptables or ban an app from accessing the network.

comment 9y ago · link · parent

Yes, they try to make their users store the data in the "cloud". Maybe they do it in hope to get profit but maybe NSA wants to keep the data from people around the world on servers in US.

Google should allow users to use their own "cloud".

comment 9y ago · link · parent

There is also a possibility to stumble upon a bug accidently.

comment 9y ago · link · parent

I don't see the problem here. If the payment is not good enough then don't search for bugs and do domething else.

comment 9y ago · link · parent

C has the same problem because it relies on includes and does not have modules.

comment 9y ago · link · parent

Yes, because it uses less resources than newer OSes. Windows 7 for me has no advantages over Windows XP but works slower. The only good thing in Windows 7 is search field integrated into main menu.

I guess I will have to upgrade either to Windows 7 or to Debian (if it won't work too slow) because many applications including browsers don't work on XP anymore.

comment 9y ago · link · parent

I think Skype was the first app that would allow to talk for free across the globe even on poor (modem) connections.

comment 9y ago · link · parent

Skype has become horrible long ago when original team sold it. I remember Skype when its binary was several megabytes and there was no Facebook inside.

And now it became slow (at least on Windows XP) and buggy - for example I have no notifications sound anymore and it is unable to accept incoming calls. Judging by interface lagginess they have put at least several modern Javascript frameworks inside. And maybe something to work with immutable values judging by memory consumption.

Every proprietary messenger ends up like Skype sooner or later.

comment 9y ago · link · parent

Then it would be difficult to add a reference to a specific items somewhere else (or one would even have to duplicate the data). The benefits and disadvantages of normalization vs denormalization are long known and this (denormalization) is possible with classic SQL DBMS too.

comment 9y ago · link · parent

Publishers want revenue, not fast sites. I think that is the root of the problem.

Instead of AMP a better solution could be to add buttons to browser to disable JS/CSS/Web Fonts (the most useless innovation)/Cookies and let the user decide what they want to see.

comment 9y ago · link · parent

And what about tracking item status and location? Another list?

comment 9y ago · link · parent

Maybe it can be used as an advanced cache with persistense and secondary indexes?

comment 9y ago · link · parent

Imagine that every of your items in a warehouse has a unique barcode to track it. In this case you have to keep a record in a database for every item.

And with current amounts of RAM on servers there would be no problems even if you have tens of millions of items.

comment 9y ago · link · parent

> I find that SQL-style transactions just cause lots of issues with performance and locking contention while enabling developers to skimp on thinking deeply about how to appropriately design their data flow

"Designing data flow" would mean having to spend more time and money for the same task?

comment 9y ago · link · parent

The example in the book is very simple - it can be implemented in SQL database with 2 tables (products and carts). When you have more entities and relations it would become too complex to keep all of them consistent in a denormalized scheme in MongoDB. You will have to write cron jobs that would cleanup broken references and still get errors.

So I wanted to say that denormalization and lack of foreign keys in MongoDB is much worse that lack of transactions.

comment 9y ago · link · parent

They should not try to emulate SQL databases, there are other ways to manage inventory without transactions.

One way is to add a field to an item that show its status: whether it is in a warehouse, in someone's cart, ordered or sold. Then adding an item to a cart means updating those fields. There probably is a way to do several similar updates atomically.

Another way is to use append-only collection, that keeps a list of events, like "Item X added to cart Y", "Item X sent to delivery".

But I guess when there are more entities and relations this would become too complex to manage. While SQL databases have no problems with hundreds of tables and thousands of columns.

comment 9y ago · link · parent

It would be good if anyone could review the source code of any program they are using.

comment 9y ago · link · parent

Then better option would be to delete history.

comment 9y ago · link · parent

If Uber did their best to help the investigation then they could look up information not only by license plate, but also look at customer's account, look what rides were taken at that location and time.

comment 9y ago · link · parent

This doesn't explain why the driver didn't return any calls. And in this case Uber could give data about that passenger to the police.

comment 9y ago · link · parent

So in the end Uber got away with obstructing justice and the driver got away with theft. It is surprising that police cannot find the thief even knowing his identity.

comment 9y ago · link · parent

Why then are they posted?

comment 9y ago · link · parent

You cannot be violent online but you can spread lie and propaganda and some people could believe it. Governments have a long history of doing it.

comment 9y ago · link · parent

Better analogy would be "What technology would you choose for building a bridge". You should compare software engineer to construction engineer or architect and not to a cook.

comment 9y ago · link · parent

I agree, question about choosing between Java and Ruby is a good question for senior software developer position. Choosing between technologies, platforms, frameworks is important and responsible part of the job.

comment 9y ago · link · parent

The article was fun to read but the job of an engineer cannot be compared to a job of a translator.

And regarding "full-package" translators I think that web developers should be able to write both frontend and backend part of an application. It is not that difficult to learn. Programming is not something you can learn once and then repeat the same actions for the rest of your life.

comment 9y ago · link · parent

The problem is not in a language but in poor choice of naming scheme that made it easy to pick the wrong function.

comment 9y ago · link · parent

The hacker is free to do whatever he wants to but the developers have no restrictions too. So they decided to rollback his transactions.

comment 9y ago · link · parent

It is humans' fault that they cannot choose good name for function, not languages'.
1
168169170
185