Why the semantic web?


As I have been focusing on becoming a front end developer, or as a friend quickly corrects me say ‘no it’s a client side developer……. sound more professional!’ I have been viewing the way HTML, CSS and Javascript all tie in together and how these idea’s have been confirmed partly through the semantic web.

The way I see it in traditional computer science programming is basically about 1. data and 2 manipulating this data with methods or functions. Now when we look at something like Ruby or Java its clear to distinguish data and method, we have Object which are made up of data and methods, further down we have database, easy!

Now when we get into client side this isn’t so clear well at least if you don’t question a bit further. But it is exactly the same! It uses the same paradigm as Ruby or any other back end technology, its just flipped on its side. There is plenty of data on client side development. In client side dev the HTML is the data! as well a the CSS. Its a different way to look at HTML and CSS but in essence this is all it is. Now this data needs to be queried and manipulated, so some smart guy created J – ‘Query’ to query the data. Aww its all becoming clear! Now  as we said before traditional programming is made up of data,  and functions applied to that data. So we need something to apply function to that data….we need a functional language. Enter of course Javascript! A functional language designed to apply functionality to that HTML. Not so different after all.

So why does this matter so much, especially when it come to data. I have taken a closer look at HTML5 new tags and learnt that they are the core of what we are calling now the semantic web or the web that has meaning! Tags such as nav, aside, article and section all have there place in correct structuring of HTML, making it better organised,  readable and structured. And structuring data is paramount to any software professional, you would never accept a relational database being unstructured without proper relationships and we all know the headache involved in  JSON data not being structured properly. The same way our DOM needs to have clearly structured using semantics. If it is, it mean search engines can query the data providing better more meaningful results to customers,  our JQuery would read a better and would be easier to code because similar pattern would be used to create content,  it could even mean applications could perform task simply based on the DOM structure, like find how many tickets left for a concert or the amount of time before something finishes (<time> tag). And with the Polymer on the horizon and customer directives  already widely used in AngularJS there’s more scope to make sense of the DOM!

All round I see the DOM becoming a massive database of, hopefully, meaningful information that could open up all sorts of doors for now enterprise and idea’s!

DHH is half way to being a PR genius



So I have finally found the time to actually read this blog in more detail and I think DHH is right although he is ripping into TDD a little too much. Probably because of his desire to change Rails in some way.

The current trends in the industry are moving towards SPAs and JS, much more closer to the user, since software is no longer seen something large scale banking organisation do but more something that everyday people interact with. So by this reasoning SPA and client side application are naturally going to be growing. Currently client side frameworks like Angular have in built system or acceptance testing like Protractor, which test the application as if the user were doing something. This I believe is the next evolutional trend in testing because again we are closer to the user and we are what the user will see, which ultimately in this era of software is the most important thing.

I get the feeling DHH is about to include a Acceptance testing framework somewhere in the next Rails version, and since frameworks like Angular are already a head of the game, he might be trying to cover his back with a bit of PR though I might to wrong.

Nevertheless I do believe we need to move to more automated front end E2E testing like Protactor or Capbyra.

Long live testing!!

Why I am so excited about Clojure and why I think its going to explode.


I am by no mean an expert on this matter, but I recently went to a company job interview which dealt with Clojure, so in doing my preparation I knocked up a lot of stuff which I wanted to write about.

It’s kind of funny because it never easy to identify emerging technologies but it is possible to predict by looking at a variety of changes and how these changes come together.

There is very little doubt that big data is going to take off. Why wouldn’t the National Health Service want to know what conditions effect the likely hood of cancer or high blood presurse or, an advertising company distinguishing which advertising campaign are most successful. The meaningful information we can retrieve is endless and it just makes sense.

In addition we need to look at our current hardware, companies such as Intel and AMD are finding it harder and harder to develop processors that are faster the exponential development was saw int he 90s is over, it is just not possible to develop CPU switches that move any faster. So instead we are living in an era, and will continue to, of multi-core processors. We can see this with quad cores and even dual processors in phones. Don’t be surprised to see 1000 cores in your computer on day. In addition to this Google server developer strategy is horizontal, not vertical, meaning they are expanding by creating more server farms that they use to distribute the work load of their processing. Their not buying in more powerful servers, but instead have the challenge of dealing with computer across different network.

Over the past 20 years or so OO has dominated the landscape and rightly so. It provides structure and a simplified way of organising your code. OO design patterns such as MVC are going nowhere. But today with live in a world with events, mobile phones trigger events, more intricate interaction with UIs and apps all trigger a vast amount of events and traditional OO doesn’t embrace this style of interaction as well. Instead functional programming copes better. http://www.ibm.com/developerworks/library/j-ft20/.The ability to add a load of functions that are triggered on events and then call another function which returns a function that can then be use as an argument for another function, allows for more dynamic, flexible programming. I am not saying this is the end of OO by any means, but rather functional programming is seems to be a better fit for many programming challenges.

Now you ask how does this all fit in to Clojure.

Clojure has an amazing ability to deal with data, since in essence everything in Clojure is data it become very easy to handle and manipulate data. For example a set of functions used to manipulate data structures work the same on all data structures, so you can transform data from one structure to another and still apply the same functions. This is essence is perfect for Big Data as the data mined by companies can come is all sort of formats and structures. Most instances they may be totally unstructured.

Traditional languages use mutable data, meaning you change the state of data in objects. Clojure uses immutable data structures, meaning you create a copy of the object and then make the change to the spefic data leaving the rest of the object the same. For example if you had an object Person which had data name you would, with mutable data structures, setName and the object state would now be changed. In Clojure you would make a “copy” of the object and then change the data in the new object leaving any other attribute the same. Of course now you would have a problem since you have two copies of the object Person which takes up a lot of memory if you were to create thousands of changes, so Clojure deals with this using a GitHub version control style system for tracking changes. So it’s not that the Person object is copied when changes are made but rather a track of the changes are made which can be accessed as a object.

Clojure has a strong infrastructure for multi threaded programming. Like I said before the world we live in is strongly moving to distributed processing and multi-core processors. Clojure provides a perfect way in handling this not only in its multi threaded programming but also with the immutable data structures we talked about above. The problems arises with tracking data that is changed when streamed across different threads. If the object Person is accessed across 12 different threads and is changed the handling of that change can become very difficult when multiple threads are trying to access/set the same data. With immutable data types a tracked copy is made which can be accessed without the problem of collisions through accessing or setting data at the same time. Think of it much like a group of people modifying an excel spreadsheet at the same time.

Clojure is a functional language which provides many fun advantages to coding namely the dynamic, expressive nature of writing code. Yet Clojure has is that it still access to the full Java library because Clojure runs on the JVM. This means Clojure has the best of both worlds being fun, expressive syntax with the solid backing of a language like Java.

I probably haven’t covered all the advantages of this new language and I certainly haven’t covered the know dis-advantages but I have explained some of the pro’s that considering where things are going, are hard to argue against.

Koans are the best way to learn code!


Hi all,

I got a job interview on Monday with a company that is using Clojure a really new functional language. So I need to prepare and in a short space of time. Now I could get all mixed up and want to read an entire book on the matter. I don’t believe this is the best way to learn. Real learn happens by DOING and no other way really. Koans are a great fun way to learn a new language, OK they won’t teach you the intricate in’s and out of the language, neither will they teach you the pro’s and con’ nor the real life use of the language but there are a great way to get you confident up and running, your knowledge of the syntax differences and the general feel of a language. The rest you can do later, yes, by reading book.

Try typing Ruby Koans, Javascript Koans or anything else to find some!

How can I keep myself updated with world’s cutting edge technologies in web programming and networking?


Answer by Vishal Sakaria:

This is the big question! I have been asking myself this question for a while. I recently went to a talk by a guy called Fred George, Chief dev at the Daily Mail and MIT student he has worked in some of the best companies around. He said that he had friends that he called fat pigeons people that were so into technology they knew what would be big next.  And that he ‘used’ them to identify bleeding edge technologies. I suppose the way is to find some fat pigeons! Meet ups, blogs ect.

Saying that, after the talk I didn’t come away with 2 technologies that are next gen being Node.js and Clojure and after doing some research I validated those assumptions. If you look at the Heroku homepage they use some of the best technologies and Node and Clojure are there, another way I validated these idea’s were to look at the best, not the biggest, but the best more cutting edge companies such as Mastodon C, a big data company or a eBay, check out the blog How We Built eBay’s First Node.js Application.

Say I’d say talk to the best people and then validate your idea’s via the net!

View Answer on Quora

What has been your experience at Makers Academy?

Answer by Vishal Sakaria:


I was one of the first cohorts at MA, at the time the application process wasn’t that hard though I have heard its become more selective. The peers were great, there was some disagreements regarding development strategies but that normal. The workload was pretty intense I must say, if you want to get the most and be the best 12 hours days with a few rest is what your going to need. The teaching was good, ann I have been a teacher for 8 years now, saying that there were some area’s of inexperience which are being addressed. I am seeing alot more testing from the new cohorts, which btw is one of the best ways to teach. Currently I am looking for work, I have had one job offer to start in 6 weeks working with machine learning and information retrieval.

In the mean time I have 2 interview next week one with ITV.

Overall I’d say MA is a great course although a tough at times, the people really do care there, they teach alot of industry techniques and if you work hard and are confident you’ll come away being able to develop in any framework or language which is what its all about!

View Answer on Quora