9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 8y ago · link · parent
For example, Ruby on Rails uses Active Record, Page Controller, Template View patterns. If you look at an ORM, for example Hibernate or Doctrine, they use even more patterns described by Fowler.
But of course they are mostly used in frameworks. If you are writing a CRUD app, just take a web framework and make everything as simple as possible.
comment 8y ago · link · parent
Also I disagree about DB and normalization: in most cases the best choice will be SQL DBMS and normalized data. Please let me explain why:
- normalization saves you from duplicating data; MongoDB will make you do the opposite. Updating the data will be more difficult and you will spend more time writing the code.
- fixed schema will make it easier to understand DB structure for new developers and helps you to detect errors; with MongoDB all invalid data will go straight into the storage and you will spend additional time fixing them later.
- foreign keys and transactions save you from saving inconsistent data into the database; MongoDB won't help you with this.
Designing a database properly doesn't require much thinking, it is a natural thing and you are not losing time.
But I understand what the author is talking about. Recently I was using two of Google's products, Doubleclick for Publishers and Google Analitics. Their UI is super slow, at least on my hardware. One Chromium tab with DFP page consumes over 700 Mb of memory. When I decided to inspect it, I found that on DFP page they used Dart "apps" compiled to JS; each of them was not less than 2.4 Mb. Even the "changelog" app which was just displaying information about recent changes (yes, they did it as a separate app).
In Analytics UI, they decided to use Material Design with large number of animations, it is very slow and UI elements are too big for 1280px wide display. It looks more like your legacy enterprise app written 10 years ago in Java and IIS, rather than a Google product.
They could just use something simple, like Symfony Framework and jQuery and avoid most of those problems. I think the reason why they didn't is because Google employs smart people and gives them a boring job; to entertain themselves they tried to play with something new, like Dart or make Android-like UI but didn't have enough time to do it properly.
comment 8y ago · link · parent
Or (my assuption) it might be for devices that cannot work without browser and network connection.
[1] https://developers.google.com/web/updates/2016/03/access-usb...
comment 8y ago · link · parent
comment 8y ago · link · parent
The creators of the app (FindFace) that indexes face data do not have any respect for privacy and boast how good their app is.
I think browsers should issue a warning before uploading photo to internet. Maybe then less people will want to publish their photo online.
[1] https://www.theguardian.com/world/2016/apr/14/russian-photog...
[2] https://birdinflight.com/ru/vdohnovenie/fotoproect/06042016-...
comment 8y ago · link · parent
comment 8y ago · link · parent
Also using a real browser brings a lot of problems: high resource consumption, hangs, it is unclear when the page has finished loading etc. You have to supervise all browser processes. And if you use promises, there is high chance that you will miss error messages because promises hide them by default.
comment 8y ago · link · parent
If you are talking about open source, it is not a problem: anyone can upgrade dependencies and make a pull request. Without version pinning, the project will always be in a "broken" state.
For example, recently I tried to run Firefox 3.5 on linux and it crashed with modern versions of gobject libraries although they are supposed to be backwards-compatible. I wish Debian package manager allowed to install an old version of a library specially for this application.
comment 8y ago · link · parent
[1] https://www.theguardian.com/technology/2014/dec/21/russian-f...