Skip to main content

Posts

Showing posts from 2016

Why FREELANCING is just another word for FREEDOM

As a software engineer you cannot expect (or be expected) to stay in the same organisation for too long, the problem with staying too long is that you get limited exposure to new and different technologies. The problem : This not only limits your knowledge base, but can also have a huge impact on your future. The solution : FREELANCING . We are lucky to live in a world where more and more companies are open to the idea of having someone work remotely. This is great for us in the software business because you can literally do work for companies all over the globe while sitting in your garage. A lot of developers don't want to give up the stability of a full-time job for the "uncertainty" of contracting, but what they don't realize is that this is really one of the few times where you CAN have your cake and eat it too! Office hours kind of become irrelevant when you do freelancing , which is good for anyone in a full-time position because it means that yo

Visual Studio - Typescript Intellisense not working

Typescript without Intellisense is kind of useless in my opinion... I never had any problems with my typescript intellisense NOT working, but I haven't used typescript in a while. When I started using it again, I noticed that my intellisense isn't working, what a bummer. I worked like this for a few days but it was wasting a lot of time NOT having intellisense . So obviously, I started to uninstall and reinstall typescript , web essentials and all those things that you would think causes the problem. Nothing worked. I have MYSQL installed on my machine, and I came across a thread that suggested that you uninstall "MYSQL Tools for Visual Studio" BAM!  Sure thing, after uninstalling MySql tools for VS and restarting Visual Studio it started working again, and I have been coding happily ever after. * If this not solve your problem, then try the following: Install " Visual Studio Extensions for Windows Library for Javascript"  for your version

Typescript vstsc "Out Of Stack Space" error

I have been having some issues with typescript 0.9.5 lately and one thing that just started happening was that typescript started giving me an " Out Of Stack Space " exception and the project did not want to compile. I uninstalled and re-installed multiple times, rebooted my PC and Visual Studio but nothing worked. I couldn't really find any threads online that helped, I found one thread but it DID NOT SOLVE my problem, this thread is located here if anyone is intested anyway:  http://stackoverflow.com/questions/31409941/visual-studio-typescript-out-of-stack-space  basically their answer was the following: "...We apparently had too many string constants. Once we removed those the 'out of stack space' stopped occurring." Unfortunately for me that was not my problem. I finally found a workaround for this, I noticed that by installing typescript 1.0 and updating my project to use Typescript 1.0 instead of Tyescript 0.9.5 the project started

How to use THIS keyword inside a typescript callback method

When using callbacks in Typescript you  would (most of the time) want to invoke object reference methods instead of static methods. To do this you would need to make use of the "this" keyword inside the callback, but you need to define the callback in a certain way otherwise "this" refers to the callback itself. The correct way to define the callback method is: If you are expecting a JSON result in the callback you can define the callback to use parameters like this:

How to update NuGet Package Manager (NPM) in Visual Studio

How to update your NuGet package manager in Visual Studio. Follow these steps to update NPM in Visual Studio: Click Tools -> Extensions And Updates Select " Updates"  on the left, and then "Visual Studio Gallery" Select NuGet Package Manager  and click Update Accept the agreement NuGet Package Manager is now successfully updated

How to add Typescript and get it to compile in your new Visual Studio project

TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open Source. Typescript is great!! ...once you get it working in your Visual Studio project It allows you to use strongly typed objects in Javascript saving you valuable development time and also minimizes your debugging time by throwing compile-time errors. IMPORTANT: Please ensure that you have the latest version of NuGet Package Manager installed in Visual Studio. To install or to update your NuGet Package Manager please see THIS post. To start using Typescript in your projects follow these steps: Create a new project Add a new typescript file and make sure that the Build Action is set to "Typescript Compile" Right click your project in the solution explorer and select "Unload Project" Right click your project again and select  "Edi