Better HN
topnewbestaskshowjobs
Log inSign up

giaour

3,849 karma · joined Sep 12, 2013 (13y ago) · 1,555 submissions

Submissions

comment 11y ago · link · parent

Any reason you want to do this in WP and not using a javascript solution like Google Analytics?

Backend page view tracking is not compatible with most forms of response caching.

comment 11y ago · link · parent

I'd be surprised if that's not Amazon's next move with Mayday.

comment 11y ago · link · parent

Assuming your friend already knows javascript, Backbone would be a solid choice. You can add it to an existing codebase as a model layer and then if you really truly need a framework you can tack marionette or chaplin on top of it.

If your friend's a total beginner, though, then it's better to just learn vanilla js for now.

comment 11y ago · link · parent

Would it be possible to write the data you run reports on to both Mongo and something that can handle queries a bit better? If you need to display something like pageviews or widgets sold you can write to Mongo and then also write the minimal amount of data you need for the report to something like InfluxDB.

comment 11y ago · link · parent

Unfortunately, Mongoose cannot query Postgres instead of Mongo. It's a wrapper around the native Node Mongo driver and does not incorporate a database abstraction layer.

comment 11y ago · link · parent

There are ways to get around the latency you're seeing without (or while) moving away from Mongo. If you rewrite your queries as mapreduce operations, then you can run them at a scheduled interval to update a reports table with the previous interval's data. This is called incremental mapreduce and Mongo has a great guide on how to get started: http://docs.mongodb.org/manual/tutorial/perform-incremental-...

You won't get real time data any more, but switching to batch processing will speed up your users' experience.

The cynic in me, however, wants to just tell you that you've outgrown Mongo and should move on. It happens; not every database is designed to support every need, and Mongo happens to be a spectacularly shitty fit for the kind of OLAP scenario you're describing.

If you absolutely must have real-time analytics crunched on the fly, I recommend that you look at data stores that are a better fit for your application. InfluxDB is great for time series data. Aerospike is getting a lot of press in the AdTech industry. And old standbys like MySQL or Postgres can handle queries over a million records without breaking a sweat.

comment 11y ago · link · parent

PhD students almost always get a full tuition scholarship and a stipend around ~$25K.

If PhD students had to pay their own way, there probably wouldn't be any.

comment 12y ago · link · parent

Not much. The presentation I saw positioned Go as an alternative to C++, not Java.

comment 12y ago · link · parent

You can fake it if you really want them: http://clipperhouse.github.io/gen/

comment 12y ago · link · parent

You're correct; these aren't APKs. I saw the lead dev present the project at a meetup and it appears that they're targeting games and apps developed using the Android NDK rather than standard Android Java apps.

comment 12y ago · link · parent

That's the use case of everyone running MongoDB, so Redis Cluster should be able to find a significant user base.

comment 12y ago · link · parent

Find a new one or get used to the idea of only working on legacy projects. There are still people out there making a living as COBOL programmers, but they don't get to work on greenfield code.

comment 12y ago · link · parent

It's not perfect if you're worried about people voting more than once. We tried doing an office poll about something people held strong opinions about -- what video game to bring in for an office tournament -- and within twenty minutes, coworkers had rewritten ballot stuffing scripts in bash, PHP, and Python.

Not to mention that you can submit multiple votes by opening the page in an incognito window in Chrome.

comment 12y ago · link · parent

1. Sometimes, you have to work on someone else's code and deal with the decisions they made years ago. In fact, it's how developers spend the vast majority of their time.

2. See above.

Postgres in my experience has proven far more scalable than Mongo, and the price of "flexibility" is unreliability.

1545.

MongoDB and the Dangers of Schema Rot(jeskew.github.io ↗)

2 points · by giaour · 12y ago · 2 comments

comment 12y ago · link · parent

Since the newer versions of Access use SQL Server Express as a backend, I would expect them to be significantly more reliable and performant than MongoDB.

comment 12y ago · link · parent

http://decodify.blogspot.com/2012/09/the-reason-ill-never-us...

comment 12y ago · link · parent

Best of luck with your business, but I believe you've been misled about that "only needing one database server" bit. MongoDB makes replication easy (though not necessarily reliable), but its structure all but ensures that you will need to take advantage of that replication far earlier than you would have had you gone with a traditional database.

For example, my employer's production stack requires three Mongo servers. Stack Overflow, which has a much greater volume of data and gets far more traffic, uses MSSQL and consequently only needs one server.

1549.

Ask HN: Does anybody actually use MongoDB anymore?

43 points · by giaour · 12y ago · 34 comments

comment 12y ago · link · parent

New York, NY - Business Insider

Business Insider is looking for a highly-skilled PHP developer to work closely with our world-class engineering team to conceive, design, build, and deliver the next-generation of online news/media.

We face exciting challenges every day due to the demands of our growing audience and the 24/7 news cycle. Your work will be used by millions of people—40+ million every month around the globe.

Our product team pushes the boundary on feature development, resulting in a varied and interesting assortment of tech challenges to solve.

The Business Insider engineering team also handles DevOps tasks of our scalable server infrastructure, and other cutting edge technologies such as MongoDB, AWS, and NodeJS.

Business Insider is a dynamic company reaching the new generation of business leaders. We are a well-funded (including by Jeff Bezos) startup at the forefront of digital media. You'll be joining a close team that works hard and has fun.

We're looking for strong PHP developers who have experience working with MVC systems and appreciate the agile methodology and continuous integration.

Position requirements include:

    Skilled back-end programmer who can write lean object-oriented PHP 5 code
    Strong front-end JavaScript and CSS knowledge a plus
    Broad understanding of web architecture and how it applies to scalability
    Enjoys building user-focused interfaces, using Ajax when appropriate
    Collaborating with product managers, editorial, and business partners to understand software requirements
    Participating in architectural decisions
    Troubleshooting and solving complex problems
    Solid understanding of version control principles, preferably using Git
    Strong communication skills
Our ideal candidate has experience with:

    Agile software development, prototyping and code reviews
    Major PHP frameworks 
    Major cloud providers
    Systems administration of Linux servers
    NoSQL document-based DB stores such as MongoDB
    Two years of work experience is ideal. 
Based in New York — you will need to be able to work out of our office on Fifth Avenue.

Apply online: http://www.jobscore.com/jobs2/businessinsider/php-developer/...

comment 12y ago · link · parent

Every time I found something I liked about Laravel, it turned out to be a Symfony component. Every time I found something I hated, there was a Symfony component that did it better.

The best example has to be the templating languages used. Blade is a weird port of ASP.NET MVC's Razor syntax and I've never understood why anyone would use it over Twig (or even just raw PHP).

comment 12y ago · link · parent

At first, I thought the empty list was the point of the site.

comment 13y ago · link · parent

I was thinking that the recipe for PHP would be: 1. Drink entire bottle of tequila 2. Vomit into a dirty glass 3. Drop glass
1
4849505152