Fremus.co.za

Demistifying Life and Web Development

Programming requires…

Passion and a willingness to forego the immediate monetary awards and focus on pursuit of building something that you can be proud of. Pride is a sentimental thing and you would think that it wouldn’t have much place in a subject area as clinical as programming. Yet if all programs were written in the same manner pride and sentiment couldn’t be identified in the code you write.

  • Share/Bookmark
posted by fr3dr1k in General and have No Comments

3 Reasons why C# and Object Oriented Programming Rocks

I have come to really appreciate the quality of and the real possibilities that are associated with C# and object oriented programming, and I thought that maybe I could think of 3 reasons why it rocks. So here are my 3 reasons.

  1. Real-world object mapping: You can take real world objects and turn them into functional, programmable computer objects. If you have a product in your business then you can define that product, through some analysis, and develop it into something that can be represented as a programmable computer object. This is where business objects are created – they are true representations of the actual objects themselves. Object can have relationships with other objects.
  2. Object re-use: If I create an object within any of my web projects, I can re-use the functions of those objects as many times as I want. All I have to do is create an instance of that object and I have access to its functions. This reduces the number of times I have to re-use name spaces. It also allows me to focus on developing and refining my objects, and making changes in fewer places.
  3. Multi-platform and device: C# can be used in windows-based, web-based and mobile applications. Within web and windows applications you can target Silverlight (Web) and WPF (Application) without having to let go of C#. Talk about honing your C# skills!
  • Share/Bookmark
posted by fr3dr1k in C# and have No Comments

C# Access Modifiers

Today I was coding some C# and I decided to refresh my understanding of classes and how you declare methods and how they become accessible or inaccessible to other classes. C# has the following access modifiers, and depending on which one you use, it wll determine how other classes can use them:

  • Public: Members and methods declared as public are visible to any method and to any class outside that class.
  • Private: Members and Methods within a class marked as private are only accessible within that class
  • Protected: Members and Methods of a class marked as protected are only accessible to methods inside that class and any classes that derive from that class
  • Internal: The members in a class that are marked internal are accessible to methods of any class in that class’s assembly.
  • Share/Bookmark
posted by fr3dr1k in Application Development,C# and have No Comments

Technology Maturity

Silverlight is not a very mature implementation but the technologies it uses for that implementation aren’t new or unknown. Sure, you have to download a plugin to view Silverlight content, but other than that the technologies that are used in Silverlight are not new. Flash uses ActionScript which closely resembles JavaScript and wonder above wonder Silverlight 1.0 and 1.1 uses JavaScript. Silverlight does use a technology set called XAML, but then again XAML looks and feels like XML. XML is not a new technology either. With Silverlight 2.0 you can use .NET Programming Languages such as C#. Again C# is not a new technology, and even though it has been around for less than 10 years its syntax is strikingly similar to Java and C++, which have been around for longer. Where is all of this coming from? Well in the week, Friday, to be exact I tested a Silverlight 1.x application on a local Intranet. I wanted to see what difficulties users might end up with if required to download the plugin. I sent the URL to a few developers and asked them to test it for me and one question that came back was “How long has this Silverlight technology been around?”, which got me thinking. Silverlight as an implementation is new, yes, but its underlying technology is not. There will be issues with the implementation, as with many technology sets, but the key for me as a developer is that I will be able to take my JavaScript, C#, XML and database skills and be able to build on them with this new technology. From a designer’s perspective Silverlight will not introduce any new technology sets either, because all the graphics elements used within WPF and Silverlight are Vector-based. The graphics elements are represented as XAML and interestingly enough you can export Adobe Illustrator files as XAML and import that directly into Expression Blend and Visual Studio 2008. Personally I think that shows great interoperability.

The point though is that in today’s development environment technology maturity may only point to an implementation specific issue, not a technology subset. The technology subsets that an implementation is focussed on will in all likelihood be a mature technology already.

  • Share/Bookmark
posted by fr3dr1k in ASP.NET,Application Development,Silverlight,Web Development,Web Technologies and have No Comments
Get Adobe Flash playerPlugin by wpburn.com wordpress themes