Chrome DevTools Shortcuts

Open panels with shortcuts in OS (Windows/Linux) Useful panels Shortcut Run Command Ctrl+Shift+P Elements (CSS) Ctrl+Shift+C Console (Javascript) Ctrl+Shift+J Your last panel (I) Ctrl+Shift+IF12 Easy way to memorize the shortcuts:– C stands for CSS.– J for JavaScript.– I designates your choice. More info from Chrome for Developers

Programming principles

Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Martin Fowler, 2008 Bad code comes in many ways. Variables that don’t make sense or inconsistent naming, messy code, massive if-else chains, illegible formatting, hard to mantain, lack of tests, low cohesion, high coupling… If you want to be a programmer, don’t settle for shortcuts […]

Maven behind a proxy

1. Proxy configuration To configure basic proxy in maven we have to edit the file settings.xml in our ‘<user_home>/.m2’ directory. If there is no file, we can copy it from the global settings folder ‘<maven_home>/conf’. We can define an <id> to the proxy to change between proxies, and deactivate our original entry by setting <active> […]