USB is one of the most beloved computer interfaces of all time. Developed in the mid-1990s, it undertook a slow but steady march to the top. Offering an interface with good speeds and a compact connector, it became the standard for hooking up interface devices, storage, and even became the de-facto way to talk old-school serial, too.
In late 2014, the USB Implementers Forum finalised the standard for the USB-C plug. Its first major application was on smartphones like the Nexus 5X, and it has come to dominate the smartphone market, at least if you leave aside the iPhone. However, it’s yet to truly send USB-A packing, especially on the desktop. What gives? Continue reading “USB-C Is Taking Over… When, Exactly?”→
A couple of weeks ago, Linus Torvalds laid down the law, in a particularly Linusesque sort of way. In a software community where tabs vs. spaces can start religious wars, saying that 80-character-wide code was obsolete was, to some, utter heresy. For more background on how we got here, read [Sven Gregori]’s history piece on Hackaday, and you’ll learn that sliced bread and the 80-character IBM punch card both made their debut in July, 1928. But I digress.
When I look at a codebase, I like to see its structure, and I’m not alone. That’s one of the reasons for the Linux Kernel style guide’s ridiculously wide 8-character tabs. Combined with a trend for variable names becoming more and more descriptive, which I take to be a good thing, and monitors’ aspect ratios growing seemingly without end, which I don’t, the 80-column width seems like a relic from the long-gone era of the VT-220.
In Linus’ missive, we learn that he runs terminals at 100 x 50, and frequently drags them out to a screen-filling 142 x 76. (Amateur! I write this to you now on 187 x 48.) When you’re running this wide, it doesn’t make any sense to line-wrap argument lists, even if you’re using Hungarian notation.
And yet, change is painful. I’ve had to re-format code to meet 73-column restrictions for a book, only to discover that my inline comments were too verbose. Removing even an artificial restriction like the 80-column limit will have real effects. I write longer paragraphs, for instance, on a wider screen.
I see a few good things to come out of this, though. If single thoughts can be expressed on single lines, it makes the shape of the code better reflect its function. Getting rid of pointless wrapping takes up less vertical space, which is at a premium on today’s cinematic monitors. And if it makes inline comments better (I know, another holy war!) or facilitates better variable naming, it will have been worth it.
But any way you slice it, we’re no longer typing on the old 80-character Hazeltine. It’s high time for our coding style and practice to catch up.
This article is part of the Hackaday.com newsletter, delivered every seven days for each of the last 200+ weeks. It also includes our favorite articles from the last seven days that you can see on the web version of the newsletter.
Want this type of article to hit your inbox every Friday morning? You should sign up!
So after a false start due to bad weather, the first crewed launch of a SpaceX Crew Dragon capsule with two astronauts on board has gone ahead. After playing catch-up with the ISS for around 27 hours they’re now safely aboard. At times it seems that space launches have become everyday occurrences, but they are still heroes who have risked their lives in the furtherment of mankind’s exploration of space. Their achievement, and that of all the scientists, engineers, and other staff who stand behind them, is immense.
I watched the drama unfold via the live video feed. Having heaved a huge sigh of relief once they were safely in orbit, the feed cut to the studio, and then moved on to interview the NASA administrator Jim Bridenstine. He was naturally elated at a successful launch, and enthused about the agency’s achievement. You can watch the full interview embedded below, but what caught my attention was his parting sentence:
And if this can inspire a young child to become the next Elon Musk, or the next Jeff Bezos, or the next Sir Richard Branson, then that’s what this is all about
I was slightly shocked and saddened to hear this from the NASA administrator, because to my mind the careers of Musk, Bezos, or Branson should not be the ones first brought to mind by a space launch. This isn’t a comment on those three in themselves; although they have many critics it is undeniable that they have each through their respective space companies brought much to the world of space flight. Instead it’s a comment on what a NASA administrator should be trying to inspire in kids.
Ask yourself how many billionaire masters-of-the-universe it takes for a successful space race compared to the number of scientists, engineers, mathematicians, technicians, physicists, et al. From the anecdote of the NASA administrator it takes about three, but if he is to make good on his goal of returning to the Moon in 2024 and then eventually taking humanity to Mars it will take a generation packed full of those other roles. To understand that we’ll have to take a trip back to the Apollo era, and how that generation of kids were inspired by the spacecraft on their screens.
Fifty years ago, we were very much on the brink of becoming a spacefaring planet. American astronauts were taking their first steps on the Moon, and Soviet cosmonauts were occupying real space stations that would soon be capable of housing them for months at a time. Planetary probes were returning colour TV pictures from other worlds, and it was certain that in the immediate aftermath of the Apollo programme we’d be sending astronauts and probably cosmonauts too further afield. A Mars base in the 1980s perhaps, and following our fictional Star Trek heroes further afield thereafter.
We now know it didn’t quite work out that way, but a whole generation of tech-inclined kids grew up wanting nothing more than to be involved in space flight. The vast majority of us never made it, but with that inspiration we took our soldering irons and 8-bit home computers and ran with them. Those NASA folks were the coolest of role-models, and no doubt their Soviet equivalents were too for kids on the other side of the Iron Curtain.
With the best will in the world, the chances of any kid becoming the next Jeff Bezos is about as high as that of their becoming the next Neil Armstrong. Compared to the number of kids in the world, the number of billionaires and the number of astronauts both pale into statistical insignificance. But the chances of a kid becoming an engineer or a scientist is much higher, and in those careers their chances of having some of their work be involved with the space effort becomes not entirely unlikely.
I understand what the NASA administrator was trying to say, but can’t shake the feeling that if those are the people he rolls out to inspire kids watching a space launch, he’s missed an opportunity. Those are the names we all recognize, but shouldn’t we also elevate the people making the scientific breakthroughs so their names are equally recognized? Like Margaret Hamilton, Gene Kranz, and Sergei Korolev and many others before them, we should be making names like Tom Mueller and Margarita Marinova prominent examples of where a career in the sciences can take you. But to be honest, the real problem is we just don’t hear much about all the people doing this fascinating engineering and that’s a sad state of affairs.
Looks like it’s time for Hackaday to pursue a biography series based on the many great minds who are the ones delivering on the promise and vision of today’s (and tomorrow’s) space race. Get us started by talking about your favorite behind the scenes science folks in the comments below.
A while back, I sat in the newish electric car that was the pride and joy of a friend of mine, and had what was at the time an odd experience. Instead of getting in, turning the key, and driving off, the car instead had to boot up.
The feeling was of a piece of software rather than a piece of hardware, and there was a tangible wait before the start button could be pressed. It was a miracle of technology that could travel smoothly and quietly for all but the longest journeys I could possibly throw at it on relative pennies-worth of electricity, but I hated it. As a technologist and car enthusiast, I should be all over these types of motor vehicles. I live for new technology and I lust after its latest incarnations in many fields including automobiles.
I want my next car to have an electric motor, I want it to push the boundaries of what is capable with a battery and I want it to be an automotive tour de force. The switch to electric cars represents an opportunity like no other to deliver a new type of car that doesn’t carry the baggage of what has gone before, but in that car I saw a future in which they were going badly astray.
I don’t want my next vehicle to be a car like my friend’s one, and to understand why that is the case it’s worth going back a few decades to the cars my parents drove back when when jumpers were goalposts, and the home computer was just a gleam in the eye of a few long-haired outsiders in California.
It seems that stick shift has become a sticking point, at least for American car buyers. Throughout 2019, less than 2% of all the cars sold in the US had a manual transmission. This sad picture includes everything from cute two-seater commuters to — surprisingly enough — multi-million dollar super cars built for ultimate performance.
But aside from enthusiasts like myself, it seems no one cares too much about this shift away from manual transmissions. According to this video report by CNBC (embedded below), the fact that demand is in free-fall suggests that Americans on the whole just don’t enjoy driving stick anymore. And it stands to reason that as more and more people live their lives without learning to drive them, there would be a decline in the number of teachers and proponents. It’s a supply and demand problem starring the chicken and the egg.
But giving up the stick is one more example of giving up control over the vehicle. It’s not something everyone cares about, but those that do care a lot. Let’s grind through the ebb and flow of the manual transmission — more lovingly called the stick shift.
Smart speakers have always posed a risk to privacy and security — that’s just the price we pay for getting instant answers to life’s urgent and not-so-urgent questions the moment they arise. But it seems that many owners of the 76 million or so smart speakers on the active install list have yet to wake up to the reality that this particular trick of technology requires a microphone that’s always listening. Always. Listening.
Imagine the legions of lawyers out there, suddenly thrust from behind their solid-wood doors and forced to set up ramshackle sub rosa sanctuaries in their homes to discuss private matters with their equally out-of-sorts clients. How many of them don’t realize that their smart speaker bristles with invisible thorns, and is even vulnerable to threats outside the house? Given the recent study showing that smart speakers can and do activate accidentally up to 19 times per day, the prevalence of the consumer-constructed surveillance state looms like a huge crisis of confidentiality.
So what are the best practices of confidential work in earshot of these audio-triggered gadgets?
Ah, the humble status LED. Just about every piece of home electronics, every circuit module, and anything else that draws current seems to have one. In the days of yore, a humble indicator gave a subtle glow from behind a panel, and this was fine. Then the 1990s happened, and everything got much much worse.
It’s Not The Technology, It’s How You Use It
The 1990s brought us much good: Nirvana, Linux, and of course the blue LED. Much like “Teen Spirit”, the latter quickly fell into overuse: the technology rapidly became the sigil of all that was new and great, much to the ocular pain of the buying public.
This decision ranks up there for stupidity with other such questionable choices as hiring a rental car at the airport, or invading Russia in the winter. A status LED, most would agree, is there to indicate status. It need only deliver enough light to be seen when observed by a querying eye. What it need not do is glow with the intensity of a dying star, or illuminate an entire room for that matter. But, in the desperate attempts of product designers to appear on the cutting edge, the new, brighter LED triumphed over all in these applications. Continue reading “We Ruined Status LEDs; Here’s Why That Needs To Change”→