Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment If using a framework, then its not up to you (Score 1) 374

I own a company that does hardware and firmware, mostly for projects in the IoT space. We've had clients hire us to connect all sorts of dumb stuff to the internet. Many times you're using a chip that has a framework or stack that already exists; be it BLE, or Wi-Fi, or even Sub-1GHz (my personal favorite, it's the Denny's of wireless protocols). These frameworks are usually written in C. So while it's possible to incorporate them into a C++ project, usually it's just not worth the time or risk; it's easier just to leave it in C. The key to writing in C is to make it as human readable as possible. Code is written once, but read many times. So don't just use shitty variable names like "count"; use something that makes sense like associatedDevicesCount. That being said, for tight loops, i is just fine. It's also interesting how little customers care about security, even when our team brings it up. We're always trying to strike a balance. More security generally means more time during manufacturing (loading keys, etc.) or making the product harder to use. With manufacturing time going for (in US) about $1 per minute, we want to keep things moving. And clients hate dealing with customer support calls because the user can't get his miniblind controller to talk to his iPhone. C is also very popular for lonely devices - things that have to sit out there and just transmit information periodically, and are difficult to reset if the firmware goes haywire. I'd bet that 99% of iBeacons are implemented in C. Certainly the ones we've made are in C. All that being said, I'd like to try C++ on a new project; if nothing else for fun.

Comment DragonFrame: Stop Motion Animation Software (Score 1) 114

While it's not a program that an everyday user would use, the application DragonFrame is the work of a single developer. This application is used on most of the major stop motion animation movies (Boxtrolls, Shaun the Sheep, Frankenweenie, etc.). I think that one-developer applications require a very, very good (aka "rock star") developer who enjoys working on one project for a long time.
Image

Jordanian Mayor Angry Over "Alien Invasion" Prank 217

krou writes "Jordanian mayor Mohammed Mleihan has taken a dim view of local newspaper Al-Ghad's April Fools prank, which saw a front page story claiming that 'flying saucers flown by 3m (10ft) creatures had landed in the desert town of Jafr.' The paper claimed that communication networks had gone down, and people were fleeing the area. The mayor called the local security authorities, who combed the area, but they were unable to find any evidence of the aliens. Mr Mleihan is now considering suing because of the distress it caused to residents: 'Students didn't go to school, their parents were frightened and I almost evacuated the town's 13,000 residents. People were scared that aliens would attack them.'" I guess they've never heard of Orson Welles in Jordan.

Comment Why listening 2 music at work? 3 reasons (Score 1) 1019

Consider the three purposes that listening to music on headphones provides: 1. noise masking - it prevents you from being distracted from Sally Sales. 2. virtual barrier - wearing headphones means that someone knows that they are interrupting you to ask a question. Functions as a virtual door, per se. 3. motivation - the right type of music can make you work more effectively. You might want to find out what your bosses' objection really is - he might not like the fact that he has to interrupt his programmers to ask them a question. I am self-employed and work in my own office. I've found that listening to music helps a lot while coding but can be distracting when writing a report. For those of you who find listening to music distracting but still need the noise masking aspect, I recommend trying out any type of instrumental (ie. no vocals) music - it doesn't activate that part of our brain.

Slashdot Top Deals

All the simple programs have been written.

Working...