Welcome to the 8th edition of DeveloPassion’s newsletter. Before we start, I’d like to ask all of you to help me out a bit. If you find this newsletter interesting, then please do take a bit of time to share to others on social media: With your help, others will also get a chance to discover and enjoy reading it. As an added benefit, it’ll also motivate me to continue the experience! Don’t forget that you can also follow me on Twitter and Medium where I currently publish my articles. |
|
Why you should stop installing npm packages globally |
|
Those who know me are certainly aware that I’m a big fan of Bash. I always have (at least) one terminal open, ready to serve me. As a scripting language, Bash isn’t that great and it’s not really the part I love the most. I like it for its ubiquity, but the syntax is really painful. Compared to Bash, PowerShell just feels soooo much cleaner. Having been a Windows sysadmin for a while and having a programming background, I really digged into it and could see how powerful it is. But I’ll write about PowerShell another day ^^. No, what I enjoy most about Bash is not really the scripting. It’s rather its support for aliases and functions, which I really use all the time. I wrote an article about this, highlighting some of the cool things that one can do with Bash (or Fish, or zsh :p); you can check it out here: https://itnext.io/bash-aliases-are-awesome-8a76aecc96ab. |
|
I think that many Git users stick to the real basics because they don’t truly understand the core concepts. Using Git without understanding it clearly (I don’t mean the internals :p) is really sad. Git is a tremendously powerful tool but, as with anything else, it requires quite a bit of time to really master it. There are already quite a lot of great tutorials/courses about Git, but I wanted to have a go at explaining it. This is why I’ve started writing a series about Git concepts. So far, I’ve published two articles. The first one explains what it means for Git to be a distributed version control system. The second one explains the different areas to be aware of when using Git: the working tree, the index and the repository. Over the next couple of weeks, I’ll continue this series, progressively going from basic concepts like branches and commits to more advanced ones like remotes, fetch, merge, rebase, etc. I hope that these articles will prove useful to some people! :) |
|
Angular route vs scrolling |
|
Out of the box, Angular’s router provides support for handling scrolling automatically when navigating from route to route, whether via routerLink, back/forward Web browser buttons or otherwise. Unfortunately, that support isn’t all that great. In my current project, I’ve had to spend a whole evening hacking around to make it work as I wanted. I took the opportunity to share my solution and explain it in the following article: https://medium.com/front-end-weekly/handling-scrolling-on-angular-router-transitions-e7652e57d964 What I did is create an Angular service that keeps track of the scroll position so that it can be properly restored when navigating. But I went a tad further and added support for defining the scroll behavior through route data. Thanks to that, I can now easily define how the scrollbar should react (or not) when navigating to specific routes. This solution ain’t perfect, but it is at least clean and functional. Hopefully Angular will provide a better solution for this in the future! |
|
Sign up for Sébastien Dubois
Explore Knowledge Management, Lifelong Learning, Note Making, Personal Organization, and Zen Productivity
No spam. Unsubscribe anytime.
About Sébastien
I'm Sébastien Dubois, and I'm on a mission to help knowledge workers escape information overload. After 20+ years in IT and seeing too many brilliant minds drowning in digital chaos, I've decided to help people build systems that actually work. Through the Knowii Community, my courses, products & services and my Website, I share practical and battle-tested systems. You can follow me on X 🐦 and on BlueSky 🦋.
I am an author, founder, and coach. I write books and articles about Knowledge Work, Personal Knowledge Management, Note-taking, Lifelong Learning, Personal Organization, and Zen Productivity. I also craft lovely digital products.
If you want to follow my work, then become a member and join our community.
Ready to get to the next level?
If you're tired of information overwhelm and ready to build a reliable knowledge system: