Emelia 👸🏻 · @thisismissem
1182 followers · 5852 posts · Server hachyderm.io

Ooooh, that's nice! If you're working on a git project that has a “non-main” default branch, you can do:

git symbolic-ref refs/heads/main refs/heads/<default-branch>

And then you can do: git checkout main

You may also need to do:

git branch --set-upstream-to=origin/<default-branch> main

#git #DevTips

Last updated 1 year ago

FastRuby.io · @FastRuby
28 followers · 103 posts · Server ruby.social
Blake Oliver · @coffee_nebula
36 followers · 42 posts · Server hachyderm.io

Anyone have any or tips? Oft-used key commands (jump to docs please), screenshot tricks (worried about these!), localization tools or tips, blogs, etc?
A few of my own after a few weeks:
* Add sounds for things! Build succeeded, build failed (make it cute and sad but not terrible), run starts, run completes… YSet these in preferences > behaviors.
* Move some code and now the indentation is off? Control I.

#iosdev #xcode #DevTips

Last updated 1 year ago

FastRuby.io · @FastRuby
23 followers · 69 posts · Server ruby.social
Dustin Ewers · @DustinEwers
38 followers · 18 posts · Server dotnet.social

When you need something from another team, specific requests are easier to process than general consults. Do as much of the legwork as you can, so it’s easier for them to solve your problem.

#softwaredevelopment #DevTips

Last updated 1 year ago

Fun tip for Windows Terminal users
Start it with the window name "_quake"
E.g. wt.exe -w _quake
And it'll open as a quake style terminal like guake and can be toggled with Win + `

Pretty cool if you're forced to work in a Windows environment, like me.

#windows #WindowsTerminal #DevTips

Last updated 1 year ago

Dustin Ewers · @DustinEwers
34 followers · 16 posts · Server dotnet.social

Maintainability trumps most other code concerns. The picosecond you saved by making your code unreadable isn't worth the trouble. Code isn't there for you to flex your big brain muscles; it's there to do a job. Eventually, other people will need to read it.

#softwaredevelopment #DevTips

Last updated 2 years ago

John Godsland · @gozzy
21 followers · 137 posts · Server mastodonapp.uk

One of the notable downsides of fast modern computers is that developers write code that is profligate with system resources and have often moved on before the effects of that bite. Always test your code in resource constrained environments and with real world data volumes rather than the three rows in a table that you need to get through your unit tests.

#DevTips

Last updated 2 years ago

John Godsland · @gozzy
21 followers · 131 posts · Server mastodonapp.uk

As a , if you happen to be working on previously written you will find certain conventions, whether explicitly written or implied by the code. Usually that includes variable naming. If you find the codebase defined snake_case and you prefer camelCase (or vice versa), override your preference and stick with convention. Future programmers will thank you.

#programmer #code #DevTips

Last updated 2 years ago

Aral Balkan🌻 · @aral
27284 followers · 19809 posts · Server mastodon.ar.al

Today I learned you can show the git status for a specific directory simply by specifying it. e.g., for the current directory:

git status .

#DevTips #dev #git

Last updated 2 years ago

Jodiel Fabricio :Ryyca: · @sjodiel
21 followers · 698 posts · Server ursal.zone

RT @GabrielSuaki@twitter.com

Quer aprender Java? ☕️ Fiz uma curadoria de conteúdo para vocês com mais de 20 links abordando:
- Conteúdos em Português
- Orientação a Objetos
- SOLID
- Padrões de Projetos
- Concorrência
- Spring Boot


🧵👇

🐦🔗: twitter.com/GabrielSuaki/statu

#java #backend #SpringBoot #solid #POO #DevTips

Last updated 3 years ago