Friday, February 5, 2016

3 More Joins You Should Be Familiar With

There are many ways to JOIN data from two database tables and filter the information you require. Craig Buckler wrote a popular piece on understanding JOINs; namely INNER, LEFT, RIGHT, and FULL OUTER. This article is an extension of that one.

Let’s recap these real quick. Picture two tables, one for customers and one for books to establish a book loan database.

customers table

id firstname lastname book_id
1 Joe Blow 1
2 Jane Doe 2
3 Harry Crow 2
4 Jeffrey Snow 0

books table

id Title
1 Star Wars
2 Jurassic Park
3 Little Women
4 Tom Sawyer

The books table has one row for every book.

The customers table has one row for each customer who can only have one book on loan at a time. If they have no book on loan, the book_id would be 0 or an empty string.

This is a very simple example to make the JOINs as clear as possible to understand!

A LEFT JOIN here would be in the case you want to ask a question such as “show me all customers including any books on loan.

Left Join Venn Diagram

You can see in the image that ALL data in the left circle, or table, is included in the result set. Only data that overlaps from the books table is included from the right table. This means that with a LEFT JOIN, some data in the right table may be excluded.

A RIGHT JOIN would be like asking “show me all the books in my library, along with any customers that have borrowed them.

Continue reading %3 More Joins You Should Be Familiar With%


by Zack Wallace via SitePoint

Using C and C++ Code in an Android App with the NDK

In this tutorial, I will introduce another development option to consider for your next Android project that’s perfect for teams with legacy code or existing knowledge in C and C++. The Android Native Development Kit (NDK) is included in Google’s official toolset and we will look at when the NDK can be useful and how to implement it in an Android app.

Continue reading %Using C and C++ Code in an Android App with the NDK%


by Rico Zuñiga via SitePoint

How to Grow Your App Team

This week's JavaScript news, issue 269

This week's JavaScript news
Read this e-mail on the Web
JavaScript Weekly
Issue 269 — February 5, 2016
A thorough guide to creating a JavaScript package written in ES6 that’s usable regardless of whether you’re using CommonJS, AMD or plain browser global modules.
Jim Cowart

Fast, uses 3D rendering and CSS3, and lets you coordinate and animate hundreds of DOM elements together. Looks very promising.
David Valdman

Learn up-to-date Angular 2 concepts and understand how to use JavaScript controls in your AngularJS application. Gain firsthand experience by following Wijmo’s progress as they migrate their Angular 1 directives to Angular 2 components. Download and run Wijmo’s Angular 2 Explorer.
Grape City   Sponsored
Grape City

A two part tutorial covering how to create a sliding tile puzzle using HTML, CSS, and JavaScript, and then an ‘artificial intelligence’ to solve it.
Smashing Magazine

A solid, practical look at a feature still a little way off in JavaScript’s future.
Nicolas Bevacqua

Use proxies to trap or intercept all of the operations on a target object and modify how the target operates. Addy Osmani presents an introduction here.
Addy Osmani

Love Medium.com’s simple editor? This bills itself as a clone and uses the contenteditable API to implement a rich text solution.
yabwe

Jobs

In brief

Curated by Peter Cooper and published by Cooper Press.

Stop getting JavaScript Weekly : Change email address : Read this issue on the Web

© Cooper Press Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via JavaScript Weekly

Get Your Project Management Professional Certification

Get your Project Management Professional certification with help from this prep training

Project management is growing more in-demand and more lucrative every day. And a Project Management Professional certification is a must if you're looking to break into the industry. Jumpstart your career with the LearnSmart PMP training at SitePoint Shop—it's now just $49.99, a huge savings of 96% off the regular price of $1,495.

You'll get access to 76+ courses and 35 hours of training that count toward your contact-hour requirement for the PMP exam and certification. Take courses in developing a project schedule, controlling costs, estimating resources, identifying project risks, best practices, and more. You'll have access to the material for a year, so you can work at your own pace to get exam-ready and have plenty of time to revisit the material if you need to brush up on a particular concept.

Start preparing for your new career. Get the LearnSmart PMP training at SitePoint Shop for $49.99.

Continue reading %Get Your Project Management Professional Certification%


by SitePoint Offers via SitePoint

Flying Piñata

opl-small

Beautifully designed One Pager promoting a new startup that delivers piñatas via drones. Make sure you watch the video too - hilarious and really well made. Excellent work as usual by Bakken & Bæck.

by Rob Hope via One Page Love

My name is

opl-small

Unique arty One Pager for 'My name is' design studio. Quite a fun feature if you don't interact with the site for a while a screensaver starts to pile on "hello" layers.

by Rob Hope via One Page Love