Technorama

An omnibus of tech posts by a Futurologist on software development primarily.

Monday 5 August 2019

 

A few more predictions

I predicted the 2008 UK (and global) financial crisis and housing bubble burst back in 2007. Also predicting the bottom of the housing market in 2009, catching the moment after the bottom of the market had turned in late 2009.

So, a few more predictions.

Twitter has no business model, ads are the only thing that might save it, or turning to technology (like Amazon has with AWS etc). Big companies can rarely turn it around (IBM maybe one possible exception - recently buying Red Hat). I expect Twitter to shrink dramatically by 2025.

Facebook is still a one trick pony, whatsapp and Instagram are the only things that might save it. Facebook doesn't have much technology, it can't compete with Amazon and Google.  What might save it? Facebook AI team is pretty smart, recently demonstrating some tech ie. beating human poker players in July 2019.  However, possibly too little, too late. I expect facebook to not recover from the privacy scandals, it won't successfully pivot into something else, it will shrink dramatically by 2030.

Microsoft, the master of the pivot, will do well, they've embraced open source, and Azure is doing very well. Microsoft will be here for a long time, with a bigger market share in 2025.

Google and Amazon are the big winners, Amazon has both tech and retail (even Whole Foods). Both of these will keep expanding.

Apple will still keep doing well.

Sunday 4 August 2019

 

Secure Programming

Noticed a lot of insecure/unsafe code in Gnome and Libexif recently.

1st mistake of inexperienced programmers is to say of interfaces "Not everything has to be NULL-safe".

There is no reason to crash an application instead of robustly handling, logging and dealing with it. It is much better to log rejected parameters so programmers can deal with them later
Bringing down the whole application with a crash is the worst thing that can be done to a user.

If I called function(-1) that was expecting a positive number, it should also check >0.


A crash is even worse than a horrible MsgBox popup inexperienced programmers put in.

Specify GCC attribute __attribute__((nonnull))



NULL part of C since existence.
nullptr part of C++ spec since
NUL terminating byte has been part of ASCII and C since it's existence, programmers are still casual with NUL termination though


http://spinroot.com/p10/

"Check the return value of non-void functions, and check the validity of function parameters."
Based on: ''The Power of Ten -- Rules for Developing Safety Critical Code,'' IEEE Computer, June 2006, pp. 93-95 (PDF).


Better to not divert from IEEE and other esteemed IT professionals wisdom.

Lots of good books on safe programming

The Practice of Programming by Brian W. Kernighan, Rob Pike



Archives

February 2003   March 2003   April 2003   August 2004   September 2004   December 2004   May 2005   June 2005   December 2006   January 2007   February 2007   March 2007   April 2007   July 2007   August 2007   September 2007   October 2007   November 2007   December 2007   January 2008   February 2008   March 2008   April 2008   May 2008   June 2008   July 2008   August 2008   September 2008   October 2008   November 2008   December 2008   January 2009   February 2009   March 2009   April 2009   September 2009   November 2009   December 2009   January 2010   April 2010   September 2010   October 2010   November 2010   December 2010   January 2011   February 2011   March 2011   April 2011   May 2011   June 2011   July 2011   August 2011   September 2011   October 2011   November 2011   December 2011   January 2012   February 2012   March 2012   April 2012   May 2012   June 2012   July 2012   October 2012   December 2012   March 2013   May 2013   August 2013   September 2013   October 2013   November 2013   March 2014   May 2014   June 2014   July 2014   September 2014   October 2014   December 2014   January 2015   February 2015   March 2015   April 2015   May 2015   June 2015   July 2015   August 2015   September 2015   October 2015   November 2015   December 2015   March 2016   April 2016   May 2016   July 2016   August 2016   September 2016   October 2016   November 2016   December 2016   January 2017   February 2017   March 2017   April 2017   May 2017   June 2017   July 2017   August 2017   September 2017   November 2017   March 2018   April 2018   May 2018   June 2018   August 2018   October 2018   December 2018   January 2019   March 2019   May 2019   August 2019   September 2019   March 2020   April 2020   May 2020   September 2020   October 2020   February 2022   June 2022   July 2022   October 2022   December 2022   February 2023   April 2023   September 2023   October 2023   May 2024  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]