Profile

Cover photo
Peter Mallett
Works at Mediacurrent
Lives in Orlando, FL
147 followers|92,691 views
AboutPostsPhotosYouTube+1's

Stream

Peter Mallett

Shared publicly  - 
 
 
FORTRAN was not the first language to make the mistake of using the equal sign to mean assignment, but it was popular and influential. There were later languages that did not repeat that mistake, including ALGOL and BCPL. Unfortunately, C followed FORTRAN's example, compounding the mistake by making == the equality operator. JavaScript compounds C's mistake by making == unreliable. The fix, adding a === operator, does not seem much like a fix.

There is a very good argument that programming languages should not have any sort of assignment operator at all, but the mainstream of our profession is still not ready to hear that argument. But if there is an assignment operator, common sense should demand that it not be confused with the equality operator. Sadly, common sense rarely prevails in the design popular programming languages. That is why JSLint prohibits use of assignment in expression position, comparison in statement position, and == in any position. Those prohibitions allow you to easily avoid a class of nasty bugs. JSLint's prohibitions do not prevent the crafting of good programs. They actually make it easier.

But reasoning about programming style is surprisingly difficult. For example, someone recently wrote this in the G+ JSLint community:

    I have definitely found cases were using assignment
    expressions create beautifully compact code that I
    think is much easier to read than the alternative.

The appeal to beauty gives this the appearance of a powerful argument. But beauty is at best subjective. Certainly in the arena of computer programs, there is not a standard of beauty, so that leads to the conclusion that all representations are acceptable because everything must be attractive to somebody.

But programs have a requirement that they be completely free of error. This requirement is imposed by the computers, because they give themselves license to do terrible things when our programs are not perfect. Perfection, not beauty, must be our goal. I too used to make emotional arguments about programming, and I too had no awareness of how vacant my arguments were.

JSLint has been my mentor on programming style. I did not write JSLint to force my sense of beauty on others. I wrote it to find defects in programs, specifically in my programs. JSLint taught me that if I care about the correctness of my programs, and that should always be our first concern, then I needed to correct my idea of what a good program looks like. We should seek to increase the visual distance between a good program and a bad one. We should not be creating beautiful pockets in which bugs can hide when there are better alternatives.
5 comments on original post
1

Peter Mallett

Shared publicly  - 
The computer giant says it has produced a prototype of transistors that are just 7 nanometers wide, half the width of the smallest ones currently used.
1

Peter Mallett

Shared publicly  - 
 
The great Christmas-tree-plague of 2014 hit my neighborhood pretty hard.
2
Andrew Riley's profile photo
 
It's like Florida tumbleweeds

Peter Mallett

Shared publicly  - 
 
Someone mostly fixed the most horrible parts of "Wrecking Ball" https://soundcloud.com/d-j-detweiler/miley-cyrus
D.J. Detweiler
Ciley Myrus - Brecking Wall (D.J Detweiler Remix) [FREE DL in description]
2

Peter Mallett

Shared publicly  - 
 
 
Don't interrupt programmers when they're working. They don't appreciate it.

http://heeris.id.au/2013/this-is-why-you-shouldnt-interrupt-a-programmer
8 comments on original post
2
1

Peter Mallett

Shared publicly  - 
 
This gif is mesmerizing. 
 
Jupiter and the Sun are the two largest objects in our Solar System, and as they orbit around one another, they create regions where their gravity roughly cancels out. These are the Lagrangian points, created whenever two objects orbit one another: places where gravity is such that another small object can follow along in the orbit without being pulled in or out. And since things aren't getting pulled out of there, they get stuck in there as well: and so we have two large clumps of asteroids (and miscellaneous smaller space debris) in Jupiter's orbit. These are called the Trojan Asteroids; the group ahead of Jupiter is known as the Greek Camp, and the group behind it the Trojan Camp, with the asteroids in each camp being named after famous people in that war. Together, these two camps have as many asteroids as the Asteroid Belt.

Other stable patterns are possible, too: another one is what's called a 3:2 resonance pattern, asteroids whose motion gets confined to a basically triangular shape by the combined pull of Jupiter and the Sun. This group (for Jupiter) is called the Hilda Family, and their route forms a triangle with its three points at the two Lagrange points and at the point on Jupiter's orbit directly opposite it from the Sun. 

None of these orbits are perfectly stable, because each of these asteroids is subject to pulling from everything in the Solar System; as a result, an asteroid can shift from the Lagrange points to the Hilda family, and from the Hilda family to the Asteroid Belt (not shown), especially if it runs into something and changes its course. 

The reason that Pluto was demoted from planet to dwarf planet is that we realized that these things are not only numerous, but some of them are quite big. Some things we formerly called asteroids are actually bigger than Pluto, so the naming started to seem a little silly. So our Solar System has, in decreasing order of size, four gas giant planets (Jupiter, Saturn, Neptune and Uranus); four rocky planets (Earth, Venus, Mars, and Mercury); five officially recognized dwarf planets (Eris, Pluto, Haumea, Makemake, and Ceres); and a tremendous number of asteroids. (We suspect that there are actually about 100 dwarf planets, but the job of classifying what's an asteroid and what's actually a planet is still in progress -- see the "dwarf planet" link below if you want to know the details)

Ceres orbits in the Asteroid Belt, about halfway between Mars and Jupiter, just inside the triangle of the Hilda Family; Pluto and Haumea are both in the distant Kuiper Belt, outside the orbit of Neptune but shepherded by its orbit in much the same way that the Hildas are shepherded by Jupiter; Makemake is what's called a "cubewano," living in the Kuiper Belt but unshepherded, orbiting independently; and Eris is part of the Scattered Disc, the even more distant objects whose orbits don't sit nicely in the plane of the Solar System at all, having been kicked out of that plane by (we believe) scattering off large bodies like Jupiter.

But mostly, I wanted to share this to show you how things orbit. This picture comes from the amazing archive at http://sajri.astronomy.cz/asteroidgroups/groups.htm, which has many other such pictures, and comes to me via +Max Rubenacker

More information about all of these things:
http://en.wikipedia.org/wiki/Lagrangian_point
http://en.wikipedia.org/wiki/Trojan_(astronomy)
http://en.wikipedia.org/wiki/Hilda_family
http://en.wikipedia.org/wiki/Dwarf_planet
http://en.wikipedia.org/wiki/Kuiper_belt
http://en.wikipedia.org/wiki/Scattered_disc

#ScienceEveryDay
125 comments on original post
1

Peter Mallett

Shared publicly  - 
 
Official instructions on game sharing from Sony.
Step-by-step how to lend games to your friends. http://www.playstation.com/ps4
1
Have him in circles
147 people
Michael Anello's profile photo
Damien McKenna's profile photo
Erik Baldwin's profile photo
Albert Volkman's profile photo
Jennifer Maxwell Partridge's profile photo
Brent Dunn's profile photo
Joseph Szymczak's profile photo
Ariyunae Korisauki's profile photo
Jeremy Hilton's profile photo

Communities

Peter Mallett

Shared publicly  - 
1

Peter Mallett

Shared publicly  - 
 
This is probably my favorite example of the "progress quest" style game I've seen to date http://adarkroom.doublespeakgames.com/
1

Peter Mallett

Shared publicly  - 
 
I might be misremembering, but didn't Cookie Crisp used to have a burglar as its mascot? Also, I really want to try "Koo-Kies!".
1
Peter Mallett's profile photoAndrew Riley's profile photoCathleen Ayala's profile photoAlbert Volkman's profile photo
5 comments
 
I believe Jarvis is with Tony Stark now.

Peter Mallett

Shared publicly  - 
 
 
Sounds like a good way to run a representative democracy.
View original post
1
Sharon MP's profile photo
 
The Government is corrupt, don't you know.

Peter Mallett

Shared publicly  - 
 
 
I've watched my grandnephew play this enough to know as well.
100 comments on original post
1
People
Have him in circles
147 people
Michael Anello's profile photo
Damien McKenna's profile photo
Erik Baldwin's profile photo
Albert Volkman's profile photo
Jennifer Maxwell Partridge's profile photo
Brent Dunn's profile photo
Joseph Szymczak's profile photo
Ariyunae Korisauki's profile photo
Jeremy Hilton's profile photo
Communities
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Orlando, FL
Previously
Pittsburgh, PA - Hermittage, AR - Chicago, IL - West Palm Beach, FL - Loxahatchee, FL - Wellington, FL - Raleigh, NC - Beaverlette, VA - Middletown, CT
Story
Tagline
Wark!
Introduction
I have a cat; she came from my wall. Oh, and I do Drupal stuff.
Work
Occupation
Sr. Drupal Developer
Employment
  • Mediacurrent
    Senior Drupal Developer, 2012 - present
  • MindComet Corporation
    Software Developer, 2009 - 2012
  • Home Depot
    Many, 2003 - 2009
  • Liquigem, LLC
    Senior Web Developer, 1999 - 2001
  • Web-One Communications
    Web Developer, 1998 - 1999
  • Alloe, Inc.
    Bookkeeper, 1997 - 1998
Basic Information
Gender
Male
Looking for
Networking
Peter Mallett's +1's are the things they like, agree with, or want to recommend.
Google Maps
market.android.com

Download the latest release of Google Maps, and never carry a paper map again. Get Google Maps with Navigation (Beta), Places, and Latitude

Google+ - Apps on Android Market
market.android.com

Real-life sharing rethought for the web, wherever you are. Google+ for mobile makes sharing the right things with the right people a lot sim

The MMO Quest for New Quests
www.rerollmystats.com

I'm lucky enough to get invited to beta test events on a pretty consistent basis, partly because I have been playing games forever, and more

DrupalWebTestCase::drupalCreateUser | Drupal API
api.drupal.org

Skip to main content Skip to search. Get Started; Community & Support; Documentation; Download & Extend; Marketplace; About. Drupal.

Oxbow Lakes - Weebl's Stuff
www.weebls-stuff.com

Actual, education value with a fat beat and bassline. Word up G-Money.

Steam
market.android.com

Steam: chat and participate in the Steam community, catch unbeatable Steam sales With the free Steam app for Android, you can participate in

How to Allow MySQL Client to Connect to Remote MySQL server
www.thegeekstuff.com

By default, MySQL does not allow remote clients to connect to the MySQL database. If you try to connect to a remote MySQL database from your

PHP 5.2 on Ubuntu 10.04 Lucid Lynx | RandyFay.com
randyfay.com

Edit 2011-11-23: Since Ubuntu 9.10 (Karmic) is now out of support, the repositories to use for it have changed to old-releases.ubuntu.com. I

CSS layout gets smarter with calc() - HTML5Rocks Updates
updates.html5rocks.com

A resource for developers looking to put HTML5 to use today, including information on specific features and when to use them in your apps.

DrupalWebTestCase | Drupal API
api.drupal.org

Skip to main content Skip to search. Get Started; Community & Support; Documentation; Download & Extend; Marketplace; About. Drupal.

Replacing the -9999px hack (new image replacement) – Jeffrey Zeldman Pre...
www.zeldman.com

The Daily Report's 2003 redesign uses (and our book explained) an image replacement technique intended to combine the benefits of accessibil

Drupal Commerce: Disabling a checkout pane based on the contents of the ...
zufelt.ca

Yesterday I was asked if I could investigate how to disable a Drupal Commerce checkout pane depending on the contents of the order. Having n

TotalFinder
totalfinder.binaryage.com

TotalFinder adds tabs into your native Finder and more!

HOWTO: SSH Tunneling Made Easy
www.revsys.com

TESTIMONIALS. " Not only does Frank know how to squeeze every last bit of performance out of PostgreSQL and Linux -- he is happy to exp

tComment - An extensible & universal comment plugin that also handle...
www.vim.org

created by. Tom Link. script type. utility. description. :TComment works like a toggle, i.e., it will comment out text that contains uncomme

reddit: the front page of the internet
www.reddit.com

reddit: the front page of the internet

xkcd: Wisdom of the Ancients
xkcd.com

Permanent link to this comic: http://xkcd.com/979/. Image URL (for hotlinking/embedding): http://imgs.xkcd.com/comics/wisdom_of_the_ancients

Google Related (by Google) - Chrome Web Store
chrome.google.com

Find useful content while you browse – including videos, news, images and more – all relevant to the page you’re viewing.

Stop the blinking wireless LED light on Ubuntu 10.10 laptops
ubuntuguide.net

Popular Posts. How to restore Grub 2 after reinstalling Windows XP/Vista/Win7; Different wallpapers on each workspace in ubuntu; How to inst