Better Dev https://betterdev.blog Coding is an art. Be an artist. Tue, 02 Mar 2021 09:02:00 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.2 https://betterdev.blog/app/uploads/2020/09/untitled-2-150x150.png Better Dev https://betterdev.blog 32 32 AWS Lambda logging best practices https://betterdev.blog/aws-lambda-logging-best-practices/ https://betterdev.blog/aws-lambda-logging-best-practices/#comments Mon, 01 Mar 2021 14:01:06 +0000 https://betterdev.blog/?p=2085 Logging in AWS Lambda functions is simple. You just print the message, and it’s sent to the CloudWatch Logs. And everything is fine until you get a surprisingly big bill for the CloudWatch usage, or you need to actually debug some live system. Here are my tips for logging in […]]]> https://betterdev.blog/aws-lambda-logging-best-practices/feed/ 1 Things I Found Interesting #1 https://betterdev.blog/tifi-1/ https://betterdev.blog/tifi-1/#respond Fri, 12 Feb 2021 13:10:07 +0000 https://betterdev.blog/?p=2041 Welcome to the first issue of Things I Found Interesting – an irregular series of links to, well, interesting content. Below are eleven articles and resources on various software-related topics, which I stumbled upon in the last several weeks. The next issue will come in some time when I gather […]]]> https://betterdev.blog/tifi-1/feed/ 0 Pin exact dependency versions https://betterdev.blog/pin-exact-dependency-versions/ https://betterdev.blog/pin-exact-dependency-versions/#respond Thu, 04 Feb 2021 14:54:54 +0000 https://betterdev.blog/?p=1781 Buckle up, for some of you this may be controversial, but maybe for some others – obvious. This is how to prevent a problem causing your application to out of the sudden stop behaving correctly, or, even more funny, stop behaving correctly only on one developer’s computer. We can solve […]]]> https://betterdev.blog/pin-exact-dependency-versions/feed/ 0 Three ways to create Amazon Athena tables https://betterdev.blog/creating-athena-tables/ https://betterdev.blog/creating-athena-tables/#respond Tue, 12 Jan 2021 14:35:03 +0000 https://betterdev.blog/?p=1612 Here I show three ways to create Amazon Athena tables. More importantly, I show when to use which one (and when don’t) depending on the case, with comparison and tips, and a sample data flow architecture implementation. Also, I have a short rant over redundant AWS Glue features. All in […]]]> https://betterdev.blog/creating-athena-tables/feed/ 0 Minimal safe Bash script template https://betterdev.blog/minimal-safe-bash-script-template/ https://betterdev.blog/minimal-safe-bash-script-template/#comments Mon, 14 Dec 2020 13:15:57 +0000 https://betterdev.blog/?p=1482 Bash scripts. Almost anyone needs to write one sooner or later. Almost no one says “yeah, I love writing them”. And that’s why almost everyone is putting low attention while writing them. I won’t try to make you a Bash expert (since I’m not a one either), but I will […]]]> https://betterdev.blog/minimal-safe-bash-script-template/feed/ 54 Auto-generated website environment parameters https://betterdev.blog/auto-generated-website-environment-parameters/ https://betterdev.blog/auto-generated-website-environment-parameters/#respond Mon, 16 Nov 2020 15:33:07 +0000 https://betterdev.blog/?p=1327 There are multiple articles on how to host a static website or Single Page Application (SPA) on AWS. But they rarely go into the topic of setting up the environment variables for the frontend application. Let’s look beyond the part where most tutorials end – with the website deployed, how […]]]> https://betterdev.blog/auto-generated-website-environment-parameters/feed/ 0 My AWS toolbox – tools, plugins and applications https://betterdev.blog/my-aws-toolbox/ https://betterdev.blog/my-aws-toolbox/#respond Thu, 22 Oct 2020 22:05:41 +0000 https://betterdev.blog/?p=1166 Developers, like all specialists, discover and collect their favorite tools over time. Having a good, proven set of tools makes the work easier and more pleasant. We can focus on getting the job done. Sometimes eliminating minor inconveniences or improving a small element of everyday activity makes the greatest impact […]]]> https://betterdev.blog/my-aws-toolbox/feed/ 0 Serverless Swagger UI for API Gateway https://betterdev.blog/serverless-swagger-ui-for-api-gateway/ https://betterdev.blog/serverless-swagger-ui-for-api-gateway/#comments Tue, 13 Oct 2020 07:32:04 +0000 https://betterdev.blog/?p=1026 Amazon API Gateway provides an option to export the API schema as an OpenAPI Specification. With it, we can display our REST API as an interactive website. But we do not get a public URL to that specification file which we could use as a source for an interactive page […]]]> https://betterdev.blog/serverless-swagger-ui-for-api-gateway/feed/ 7 Command line arguments anatomy explained with examples https://betterdev.blog/command-line-arguments-anatomy-explained/ https://betterdev.blog/command-line-arguments-anatomy-explained/#comments Fri, 25 Sep 2020 21:43:08 +0000 https://betterdev.blog/?p=1036 Many of the scripts and executables allow providing some command line arguments. They may be required or optional. There are flags, that are just switches changing command behavior. There are, of course, arguments with values. And there are so-called positional arguments – parameters given in some order without any extra […]]]> https://betterdev.blog/command-line-arguments-anatomy-explained/feed/ 1 Speed up everyday work with handy Git aliases https://betterdev.blog/handy-git-aliases/ https://betterdev.blog/handy-git-aliases/#comments Sun, 13 Sep 2020 17:07:24 +0000 http://localhost/?p=131 Git logoGit allows us to define aliases, which are basically our own commands we can use. They may be just a calls for other commands with parameters, or even shell scripts. Possibilities are unlimited. Do you ever google for this Git command you forgot every time? Often execute several commands one […]]]> https://betterdev.blog/handy-git-aliases/feed/ 2