#devtip — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #devtip, aggregated by home.social.
-
So, I needed to find what stuff goes into metaboxes and searching my local drive was easier than searching the net:
find . -iname "*.php" -exec grep --color add_meta_box {} +
Will at least dump all the metaboxes out so you can get a clue!
(Be sure to be in the root of the WP source dir.)
🦇
-
Pro tip: 💁📊
❌ Understanding plain data charts can be hard and take a lot of time and thinking.
✅ Make charts easier to interpret by mapping multiple related values into named groups!Instead of 24 different values mapping them to 5 semantically named groups can really make a difference and save you a lot of time each time you look at the charts!
Learn more: 👇
https://telemetrydeck.com/blog/mapping?source=fediverse -
Pro tip: 💁📊
❌ Understanding plain data charts can be hard and take a lot of time and thinking.
✅ Make charts easier to interpret by mapping multiple related values into named groups!Instead of 24 different values mapping them to 5 semantically named groups can really make a difference and save you a lot of time each time you look at the charts!
Learn more: 👇
https://telemetrydeck.com/blog/mapping?source=fediverse -
Pro tip: 💁📊
❌ Understanding plain data charts can be hard and take a lot of time and thinking.
✅ Make charts easier to interpret by mapping multiple related values into named groups!Instead of 24 different values mapping them to 5 semantically named groups can really make a difference and save you a lot of time each time you look at the charts!
Learn more: 👇
https://telemetrydeck.com/blog/mapping?source=fediverse -
Pro tip: 💁📊
❌ Understanding plain data charts can be hard and take a lot of time and thinking.
✅ Make charts easier to interpret by mapping multiple related values into named groups!Instead of 24 different values mapping them to 5 semantically named groups can really make a difference and save you a lot of time each time you look at the charts!
Learn more: 👇
https://telemetrydeck.com/blog/mapping?source=fediverse -
Pro tip: 💁📊
❌ Understanding plain data charts can be hard and take a lot of time and thinking.
✅ Make charts easier to interpret by mapping multiple related values into named groups!Instead of 24 different values mapping them to 5 semantically named groups can really make a difference and save you a lot of time each time you look at the charts!
Learn more: 👇
https://telemetrydeck.com/blog/mapping?source=fediverse -
A great #devtip for being respectful and mindful about your colleagues time is to first create WIP/Draft PR and ensure CI succeds before you say it's ready/published for review.
Just takes a few extra seconds to you, saves minutes and unnecessary context switching for peers. -
💡💻 You can run `go version -m <path-to-go-binary> | head -1` to see which version of Go was used to build that binary.
-
💡#DevTip When writing shell scripts, use long flag names instead of short ones for CLIs. You're only writing it once anyway, and it will serve as documentation for others (and future you).
-
🚀 Quickly jump from your local #git repository to its corresponding GitHub page with this handy shell alias! ✨
🔗 Add `openrepo` to your shell profile or rc file, source it, and now you can simply type `openrepo` in your terminal to open your GitHub repo. 😎
-
I've had to rename a Go module and all of the import statements a few times now, so I figured I might as well document it.
https://www.feliciano.tech/blog/3-ways-to-rename-a-go-module/
-
-
#Devtip, if you can't stick a #fork in it, don't put it on your plate.
🍴
#commercialsoftware -
#DevTip Adopt delegates for connection state updates: Use CMHeadphoneMotionManagerDelegate to receive connection state updates for headphone motion data. Listen for events like disconnect and connect, triggered by changes in device connectivity. #AppDevelopment
-
Working fullstack in all kinds of languages sometimes leads me to momentarily forget the dependencies of each project. e.g. how was it that we run the tests in this project or what are the right commands to install dependencies, do I need to start a docker compose before running the app etc.
That's why most of my projects include a Makefile where I always keep a standard set of tasks: make setup, make dev, make test, make build, make publish + additional tasks as the project requires.
#fullstack #devTip #tip #devLife -
#DevTip Quickly need to slugify / make an international string safe for URLs or file names?
Run `npx slugify-cli` followed by the string you’d like to slugify to use @sindresorhus’s excellent slugify without having to install an npm package globally. 🥳
(Requires node and npm to be installed)
-
#DevTip: thinking of starting a new cross platform app with Apache Cordova? Do yourself a favor and don't. This platform does have several advantages, but there are huge disadvantages as well.
-
Homebrew core still doesn't have a v1.20.x release for Go and it frustrates me. Before adding Go to my own tap, I did some quick research and learned a neat trick.
You can install Go with Go and version specific commands. https://lakefs.io/blog/managing-multiple-go-versions-with-go/ #DevTip #golang
-
Here is a dev tip. If you have to do anything with or around Kubernetes, k9s will make your life so much easier: https://k9scli.io/
k9s is an auxiliary UI around kubectl. You simply turn it on in a terminal and it will live there. k9s gives an immediate feedback around the status of pods and nodes, and saves you from typing 80% of the boilerplate-y kubectl commands.
-
You should really `git add` individual files BUT if you're going to be lazy, make sure to use `git add --all` instead of `git add .`.
The former uses git's smart while the latter relies on the shell. #DevTip
-
I tweaked the 'key repeat' keyboard settings in Windows yesterday, and am finding it's made a big difference to the speed I can move around the IDE/editor when coding! Removes that short delay when holding down the cursor (or HJKL) keys #devtip