DEV Community

Cover image for The 3 Rules that 10x my Productivity (1 min read)
mmvergara
mmvergara

Posted on

2 1 1 1 1

The 3 Rules that 10x my Productivity (1 min read)

Do it in the keyboard as much as possible

Now I'm not gonna say learn vim for editing and browser. I don't care how are you going to do it but just keep in mind that basically less mouse == Fastah, thats it. moving on..

3 Keys maximum to navigate to something

This doesn’t mean every action should be limited to three steps, but rather that commonly used actions should require fewer keystrokes. The more frequently you perform an action, the fewer key presses it should take to complete it.

Think of this as a philosophy

Scripting Dev Environment

Example when you're developing a full-stack app, you often need to run multiple commands like npm run dev, docker compose, bun run dev, etc. While it might only take a few seconds, you'll likely be working on the same project for days, and those seconds quickly add up.

To automate this process, here's a simple script (courtesy of ChatGPT) to set up your environment:

#!/bin/bash
tmux kill-server
tmux new-session -d -s main
tmux split-window -h
tmux split-window -v
tmux split-window -v
tmux send-keys -t main:0.1 "docker compose up -d && bun run dev" C-m
tmux send-keys -t main:0.2 "cd frontend && bun run dev" C-m
tmux send-keys -t main:0.3 "npx drizzle-kit studio" C-m
tmux send-keys -t main:0.0
tmux select-pane -t main:0.0
tmux attach -t main
Enter fullscreen mode Exit fullscreen mode

now a simple bash run_dev.sh sets you up for coding.

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay