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
Tired of the frustration that comes with configuring #Rails applications across environments? We've got a solution thanks to our Staff Engineer Ariel Juodziukynas! 👾
#rails #rubyonrails #DevTips #ombulabs #railsconfiguration
Anyone have any #iOSdev or #xcode 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.
#devtips
Tired of the frustration that comes with configuring #Rails applications across environments? We've got a solution thanks to Staff Engineer Ariel Juodziukynas! 👾
#rails #rubyonrails #DevTips #ombulabs #railsconfiguration
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.
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
#windows #WindowsTerminal #DevTips
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
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
As a #Programmer, if you happen to be working on previously written #code 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. #DevTips
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
#Java #BackEnd #SpringBoot #SOLID #POO #DevTips
🧵👇
🐦🔗: https://twitter.com/GabrielSuaki/status/1446584461148180496
#java #backend #SpringBoot #solid #POO #DevTips