Pages

Showing posts with label GTD. Show all posts
Showing posts with label GTD. Show all posts

Sunday, August 10, 2014

Visual studio shortcuts

Visual Studio as any other IDE has many keyboard shortcuts and other useful tricks. And, naturally, users can adjust them. However there are developers who are not using most of them at all and even more of developers use only small subset of them. Partly because those hidden shortcuts are not that useful in general and can be quite specific and partly because of their hidden nature.

Let me list some of those I found:
First of all - navigation ones.
CTRL + arrow left or arrow right: Cursor position would be moved one word (not character!) left or right;
CTRL + arrow up or arrow down: The whole screen would be moved by cursor position would be still the same.
CTRL + [ or ]: move to the corresponding opening or closing bracket. Especially useful if you have a long cycle or if statement.
CTRL + Tab: navigation through opened tabs. If you have 2 opened files - you can switch them.

Next - some formatting tricks:
CTRL + SHIFT + U: make the selection upper case. One of the applications I have used: database store list of string values. And those can be upper case or lower case, and you need to compare them against a list of predefined constants. If you were given that list of constants in lower case you can transform them quite easily!
CTRL + L: removes the whole line

Selection:
If you hold SHIFT during cursor movement - you can select that area. More interesting options - you can hold SHIFT with other combinations. Like CTRL + SHIFT + Arrow Left would select the whole previous word; CTRL + SHIFT + END would select the whole text from the current cursor position to the very end of the file;
If you hold ALT you can select rectangle in the text. And it doesn't needs to be in the beginning of the line! Try it - hold ALT + left mouse button + move the button! Even more interesting - you can replace the selection with typing or pasting and it will replace each of selected lines!

Build:
ALT + B, U: builds current project only. It is like a separate keystrokes: Alt to activate menu, B to access Build menu and U to build current project. It can be shortened but that shortcut will always work.

Hope this helped!


Friday, February 14, 2014

My approach to learn things

I was always eager to learn new things. First of all - it is just fun to know things! And from a developers perspective learning new stuff enlarges your horizons...

Recently I've accidently stumbled on that question at the programmers.stackexchange. I thought about adding my answer-opinion there but then realized that it can take a while (I mean phrasing of it). So I've decided to add a blog post about my approach :)

As a developer you have to learn new tricks almost every day. Every task means that you have to solve a problem, if that problem is not trivial then there is more than one possible solutions. Every of those solutions are better than others :)

But getting back to the question about learning things. Right now I am learning MongoDB + Python with a MongoDB courses and a Unity3d by myself. Both of those thing are completely optional for me, I just want to know more. Maybe I will use them later...

Interesting part about this is that I am learning them differently. For mongoDB I am watching online courses and for Unity I am playing all by myself. Probably, first approach is a bit more optimal because it was created by professionals; it is much easier to follow their way then reinventing the bicycle!

But for me the main part of the education is an independent study! Even with those courses I am trying to finish my homework before watching corresponding lessons. Just to make sure that I am able to do such things :) Reading documentation and searching for answers are the main skills of a professional. Yes, the true professional knows a lot, but no one can know everything!

So, overall, watching tutorials are ok to get an general impression about something or to find a solution for a specific task. But I would use them only occasionally. Because for now I am able to try solving problems with my existing experience. This, however, does not mean that I am against tutorials. I am using them as well. my schema is following: try something by myself and only then check the internet. I am checking external sources in both situations when i have successfully solved something or stuck.

For me especially nice to find out that I`ve done something the same way as a recognized professional or even better :)

To sum all up.
If it is something completely new for me, then I will try to find a "general-impression" tutorial;
If I've worked with a given technology or it's stack then I will try to do something by myself and only after it will check the external sources. If they are better then my result I am happy to learn from them!

Tuesday, November 20, 2012

Healthy coding

What about healthy coding? As a software developers we dont have to live a healthy live. Most of our time we are sitting in front of the monitor while our fingers are flying over keyboard as a butterflies. (So romantic!) But is it really that good? Or we have to think about our body too?

Of course, there are plenty of safety rules. They are all correct and reasonable, but personally, I tend to forget about them as soon as I start to work... So my posture is far from ideal and often my nose is too close to the monitor! I even have dinner in front of the computer! On the other hand, I make short breaks every 2-3 hours (cannot work witout coffee...), also, I often go to another room to analysts to discuss current tasks.

But in general, these rules are made to reduce the load on our main tool - the brain. We can distract from problems while breaks, exercise improves blood circulation. Other tools that important for developers are eyes and hands with fingers, so it is very important to use ergonomic mouse and keyboard and wide modern display.

And now about relaxations! Many people prefer to watch TV or play computer games after hard day. I also like to play games. I used to play computer games until the night, but now I prefer board games in good company. You cannot argue, that live conversation is much better! But those are types of intelligent rest, and simply switching the direction of thought is not enought sometimes. You might want to switch your brain off time to time. I think the best opportunity to stay in fit is participation in tourism hikes! I really love hiking!

Since I cannot take part in the campaigns as often as I would liked, I found an alternative. Every day I go to work, I walk through the park. It takes about 40 minutes to get to work, but it totaly worth it! I can breathe semi-clean air and enjoy beautiful views. So I heartily suggest you to find a similar route to work. It allows you to prepare for working day and often during a walk most graceful solutions are born in the head!