What makes a good resume
Get tips on how to make your resume stand out.
What makes a good resume Read More »
Get tips on how to make your resume stand out.
What makes a good resume Read More »
Golang or Go has grown over the past couple of years as a programming language of choice for cloud based applications. The reasons being simple – authority of simultaneous operations and the excellence of its development. At GraphicWeave, realizing its significant advantages, among which one of the most important is the high processing speed, we have started practicing Golang long before it became mainstream. Roots of Go:Go (often referred to as Golang) is a programming language created at Google in 2009. Go is a statically typed compiled language in the tradition of C, with memory safety, garbage collection, structural typing, and CSP-style concurrent programming features added. The compiler, tools and source code are all free and open source. Who uses Go: The list of companies using GO is very extensive, some of the major players are: Facebook Twitter YouTube Apple Dropbox Docker Soundcloud Mozilla Firefox Medium The New York Times Github What kind of apps can we build using Go? Golang as many other general purpose languages, can be used for variety of projects. Here is a repo that lists frameworks and projects using Golang. https://github.com/avelino/awesome-go So why we choose Go? Microservices: Go is very suitable for microservices architecture. Instead of writing a monolithic application where you create a complex service with many functions, we can develop a bunch of services that do one thing but do it great. It’s easier to modify (one change doesn’t impact the entire structure of the project), test and improve. Speed: With the speed of a compiled language, and feel of an interpreted language, Go takes its place as the language of choice. We can write the code fast and it compiles fast — and leading to speedy development. Cross-platform: It is used for different platforms, including Windows, Linux, Unix and BSD versions and mobile devices ( starting from 2015). In addition, it compiles well on many OS’s. Robust Library: Go\’s strength is it\’s standard library. It is robust and well written. When we need networking, concurrency and standards compliance, then Go is a good choice. Testing: Go comes with a built-in testing tool designed for simplicity and efficiency. It provides the simplest API possible, and makes minimum assumptions. We can use it for different kinds of testing, profiling, and even to provide executable code examples. We at GraphicWeave, have used Golang for some of our past and ongoing projects and surely recommend it as the programming language of choice!
Why we decided to take a go at GO :) Read More »
If you\’re like me, you earn your bread by writing JavaScript; Sometimes really good JavaScript and sometimes, JavaScript full of codesmell. Folks, it\’s about time we make use of something called as a style guide for our JavaScript (and React if you\’re into React/Vue or other big guns). But first things first. WHY THE HELL DO WE EVEN NEED THIS? Well, for the following reasons. • Your code will look amazing and will be readable by you even years down the line. • Your code will have very less non idiomatic parts. It\’ll automatically be somewhat good practice if you follow this style guide. For example, it will highlight an error in your IDE or your favorite text editor if you declared a useless function or a redundant variable. So by implementing a style guide, your IDE or editor will automatically tell you when you\’re writing bad JS and not just syntactically wrong JS even before you run a single line of code. • Two people won\’t be auto-aligning the same file with different formatting so as to form an unending cycle and countless git merge conflict cycles. (Trust me, that\’s something that has happened to me at my office) • Chances of messing up while writing code decrease exponentially. <br /> • Trust me, you\’ll be proud! 🙂 Ummm alright – But what\’s a style guide? It\’s a guide that recommends you on how to format and structure your code. Lint basically means to hint beforehand a bad practice or an error in your code. A style guide in JS can be implemented using eslint. Eslint is by far the most popular tool for code hinting in JS. (There\’s JSHint too but it isn\’t as popular) In eslint, there is a .eslintrc file we should use. It\’s basically a json file with a fancy name and it lives inside the root folder of our project. (alongside .babelrc and package.json) Touch this file and install the following dev packages to set up eslint in your next JS project. $ touch .eslintrc $ npm i eslint eslint-{config-airbnb,plugin-import} -D If it\’s React or ReactNative. Add another line. $ npm i eslint-{plugin-jsx-a11y,plugin-react} -D Let\’s use an .eslintrc file that I generally use which looks like this: { \”extends\”: \”airbnb\”, \”rules\”: { \”arrow-parens\”: \”off\”, \”global-require\”: \”off\”, \”indent\”: [ \”error\”, 4 ], \”no-console\”: \”off\”, \”comma-dangle\”: \”off\”, \”no-underscore-dangle\”: \”off\”, \”func-names\”: \”off\”, \”no-use-before-define\”: \”off\”, \”react/jsx-indent\”: [ \”error\”, 4 ], \”react/jsx-indent-props\”: [ \”error\”, 4 ], \”react/jsx-filename-extension\”: [1, { \”extensions\”: [\”.js\”, \”.jsx\”] }] } } Sidenote – There\’s an alternate way to configure eslint without the .eslintrc file. You can place a key called eslintConfig inside your package.json with a value same as that of the json that\’s inside your .eslintrc. This will however make your package.json file fat and it comes down to personal preference whichever technique you want to use. If my override rules are short, I prefer the package.json way where as if it\’s long, I\’m quite fine with the addition of the .eslintrc file. Now, after this comes the important part. Making our IDEs or text editors use this style guide and hint changes in our code on the fly inside its own UI. There\’re plenty of really good articles on this and I think I can point you to a few. (Skip the parts where they add the eslint itself to the project. We\’ve already done that, remember?) • For Atom – https://hackernoon.com/what-is-eslint-how-do-i-set-it-up-on-atom-70f270f57296. • For WebStorm – https://www.jetbrains.com/help/webstorm/eslint.html. • For Sublime – https://github.com/roadhump/SublimeLinter-eslint. There\’s google for others! Upon following this article, you and your the whole team (if they weren\’t grumpy enough to try this at the first place) will commit and write code that is beautifully formatted and according to the same style rules. Moreover, you can configure your IDE or text editor to automatically fix and format your files using the same style guide on every save! Neat huh?
JavaScript Style Guide. Read More »
Click one of our contacts below to chat on WhatsApp