CSS3 Rocks! Please use latest browser version.
Welcome to Walter Moore Canada's Blog. These comments are strictly opinion. You can disagree!
Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts

Monday, December 22, 2014

IndexDB... There is potential here.


Originally posted 2014-12-22

I have recently been looking into IndexDB which is available on most newer browsers. IndexDB is the only database that both Firefox and IE support for local/client database storage . Chrome supports both IndexDB and WebSQL. Firefox has sworn never to support WebSQL and WebSQL has been depreciated in standards groups.

At first I can tell you I thought IndexDB sucked. I am from old school and know SQL and relational databases. IndexDB doesn't have any of the relational structures that I am used too and it is missing all types of functions. Personally I thought it was a key/value/value design on steroids but not a database. I could not understand what the big deal was about and was quite upset that both IE and Firefox would choose this crap as their one and only local/client-side database.

IndexDB uses "new" terms for things(sort of)... Tables are Stores, Fields are Properties. However, Properties are Fields on steroids. This is where I saw the huge advantage. You can store arrays in a property. Even better, you can search arrays.

So what? 
Look at how current relational databases handle fields that need arrays(multiple entries)... They create "related" tables. Here is a perfect example... Contacts. Often we create separate tables to track multiple occurrences of something(like phone numbers, addresses,etc). We then need the whole relationship deal happening. Not in IndexDB... We can store the phone numbers as a multidimensional array... All in the same store!!!! Who needs relations and their complexity? The very few exceptions are outweighed by the benefits under most situations. The ability to group all the related stuff together as an "object" is huge in my opinion.

Of course you know there had to be a down side... For some reason IE does not support storing arrays at this time? Go figure. It is part of the standard so I expect IE will support it soon. The other issues... very different from SQL design/code requires learning, the lack of built in functions that come with SQL, reports-unless object centric... When IE starts to support the ability to store arrays IndexDB is a clear winner... The speed benefits others talk about could be available if we didn't have to handle relationships. Until then be patient. You can use custom libraries like Dojo to simplify the process and add functionality missing in IndexDB but I try and avoid using these libraries personally. I find I only want to use 2 functions out of the 400 they provide so they create bloatware which hurts us all.

I am sure I will find other advantages/disadvantages in the future(like security) but that is a future update ;)

At this point start getting into it but I think it has a ways to go for most mainstream applications.

Thursday, January 21, 2010

Netscape V6... Now Firefox



Updated 2009-11-25
Netscape died/transitioned to Firefox and has now taken around 40-45% of desktop browser market. Firefox is fast to load pages and more standards compliant than Microsoft and it is free. Advances in technology and surprisingly the adoption of .NET for a development platform has actually helped Firefox’s adoption. This is because .NET attempts to adjust for the various other browsers on the market automatically. Keep going Firefox ;)
Update 2002-01-07
Well it has been over a year and most sites do not support it. Even fewer users are switching to it. I have abandoned supporting it here as well. This is not good. I would like it to succeed now that they seem to have their heads on straight even though as a developer it creates a lot of headache for me. 
Update 2001-02-15
Oh, Oh…. Final version has been out a while now… Many sites are not supporting it. This is not good. It looks a lot better, and really does support W3C/ECMA as much as you can expect. Is it because everyone is used to working with the previous crap they don’t want to change? Come on people, if you ever wanted Netscape to succeed now is the time to back them up!
As a developer I would like to have only one browser… simplifies things. As a user I want choice. It may be I just don’t like a particular company. Whatever, I want to choose. Besides I want to make sure people who use systems other than Windows** can still use the Internet.
Published 2000-09-02
Netscape Navigator Version6(NN6) Preview 2 is out. What an improvement… and this is still beta. The browser fails less often. It has a smaller footprint(size), is faster and more efficient. My hat is off to Netscape. They realized they made several key mistakes with NN4 and have done an about-face. Ever since NN3 I have not supported Netscape. They continually created their own proprietary tags that made no sense. A prime example of this was the LAYER tag. At that time I realized they did not have the expertise to create a top-notch standard. They were too busy trying to keep up with IE. Things got thrown in that would have never have passed cooler heads.
Netscape thought they could tell everyone else what to do(sound familiar). They thought everyone would follow whatever standard they put out. Were they ever wrong. That is not to say that IE has not tried the same thing(they have), IE just drove the standards committees to adopt IE standards using logical arguments.
Well with Netscape V6 NN is supporting the W3C/ECMA standards very closely. They have dropped tags that were not adopted and they have included IE tags that have got into the standards. I am finding that IE5 requires more non-standard code than NN6. IE now has to get rid of the “document.all” script tag and we are closer to a standard browser than ever before. That is not to say there aren’t coding work a rounds required….just not near as many.
I want to support Netscape’s venture in being 100% standards compliant. That is why this site was built for both NN6 and IE5. Previously I just let NN in but a lot of stuff did not work. With NN6 only some demonstrations don’t work. All the cool buttons and configuration etc. all works.
On the down side Netscape is going to alienate a lot of developers since they have removed tags like LAYER from NN6. Also it’s “simpler” client interface is not very pretty which may take some people time to adjust(if ever). The toolbars could be better. NN6 actually works better on IE sites than sites built for NN4. Hopefully developers will forgive Netscape and recognize it took a lot of guts for Netscape to do this. It was not an easy decision.
Congratulations Netscape…. Get the final version out please…. I want people off NN4.