Pages

Showing posts with label learning. Show all posts
Showing posts with label learning. Show all posts

Monday, January 15, 2018

Another code example

Yeah... Restart going a bit slow. But I have an excuse - New Year, Christmas and so on :)

Anyways, I am writing another short note - which is something. This time it will be another code example that I used for a technical code interview.

I think this kind of notes can be useful for people who are looking for a job. It is just a good checklist of what can be done and displayed. Unfortunately, for the last one we could not get a job or even a feedback. But this code example was accepted and it ticked all the checkboxes :)

So the task was to load a JSON object from the service and then filter, aggregate and display the data in some fancy way. There were no restrictions on tech stack or output, so I decided to go with the simplest one - console application. But to make it a bit spicier I constructed it in a way that developers will be able to extend or change those filters or aggregation functions very easy. By the way, the code is available here: github. There is a bit of explanation available in the readme file on github.

In terms of what is better to be shown:
  • There must be tests! You cannot ignore that nowadays if you are not writing tests you are doing something wrong. You can use whatever framework or tool you are familiar with - or you can play with something new.
  • When you are designing your app it is better to think about extensibility. Therefore IoC is a nice addition. And with modern frameworks it is not hard to set up at all. But you will show your familiarity with them and also your tests will be better!
  • Try and use the latest technologies. For example, if you are writing something for .Net - use HttpClient! 
  • Another good idea to show some exposure to functional programming. At least use LINQ :)
For me I also added my favorite idea - to mock the 3rd party services with a simple Node.Js service, as an icing on a cake.


Saturday, December 9, 2017

Restart!

Hi all,

After almost 1,5 years I decided to restart this blog. And not only to restart it, but rather start it in a new way with a new target!

First of all - the idea to restart it belongs to my wife and we will be writing articles together. Before I was writing articles that were more like a "gotchas" that I had, but now we want to focus this blog on a content that can be helpful for beginner developers. My wife did a bit of research and found that there are not so much of a content for them. Most of the articles are either too simple (write a hello world app) or just too strict (think of any todo app for any js framework). What we want to achieve is to provide people with a nice set of examples and small tasks that are closer to a real world (hopefully) and are more open for a change.

To do this we want to follow a certain pattern with blog articles. Each post will be either a task or an example app (and maybe, sometime other gotchas from me...). With tasks we will have a requirement and will outline a possible solution with a plenty of links to other resources with a lot of theory. That way developers that follow us will be able to build a project for each task and then compare it with what we build for the same task. Our solutions will be stored on git (e.g. https://github.com/ESKoptelova/codeexample-calculator).

We want to have our tasks to be aligned with a real world programming problems, so beginners might be able to solve the problem and put the code to their own git repository and use it as an example of their code for job applications.

I hope this works :)