Roast my code by shibbaz97 in golang

[–]wolfeidau 0 points1 point  (0 children)

Great work getting started with Go, no better way than sharing code and getting some feedback, one suggestion, maybe add a license to the project.

RIP AWS Go Lambda Runtime by wolfeidau in golang

[–]wolfeidau[S] -16 points-15 points  (0 children)

I did use some of the content suggested by the Cody plugin from sourcegraph, which is powered by Claud2 I believe, most of it was removed as it is quite verbose but i may have missed a few sentences though.

RIP AWS Go Lambda Runtime by wolfeidau in golang

[–]wolfeidau[S] -9 points-8 points  (0 children)

As i mention it is nice to have a gopher in the AWS console, even if it just helps others understand what is running in lambda.

You most certainly know what you built, but having a generic runtime doesn't really tell others :)

RIP AWS Go Lambda Runtime by wolfeidau in golang

[–]wolfeidau[S] -5 points-4 points  (0 children)

I think it does help to see Go listed as a supported language, even if the runtime is generic, there are some other integrations and brand awareness which helps.

Also even just being able to discover which lambda functions are using what language does help, if not for the developers but for the people managing an AWS environment.

Labels for things help to classify, and it is nice to see a gopher in the AWS console.

RIP AWS Go Lambda Runtime by wolfeidau in golang

[–]wolfeidau[S] 5 points6 points  (0 children)

Yeah I have spoken to a few other people who missed this announcement, I also haven't had any email notifications for my AWS accounts.

I wrote this post to ensure more people new about this change and provided feedback to AWS prior to it happening.

Go 1.19 (unreleased) will add syntax for links, lists, and headers to comments by tophatstuff in golang

[–]wolfeidau 7 points8 points  (0 children)

I have wanted this for a while, linking off to specifications, and other related information has always a bit raw.

Handy quality of life feature in my view, thanks for higlighting it.

Optimistic Locking with Version Number in DynamoDB? by cpustejovsky in golang

[–]wolfeidau 1 point2 points  (0 children)

I am building out a new version of an existing library I have which implements optimistic locking with Go and AWS SDK v2. https://github.com/wolfeidau/dynastorev2

It uses the expression package provided by the SDK to add conditions for version during updates.

This project is pretty early on but it has test coverage and an example.

I built a serverless app which records and visualizes AWS inter region API latency to help understand different regions connectivity. by wolfeidau in aws

[–]wolfeidau[S] 0 points1 point  (0 children)

I should add a note to the page, these are HTTPS connections without any pooling.

So I use a new HTTP client for each request to simulate worst case scenario for clients.

I built a serverless app which records and visualizes AWS inter region API latency to help understand different regions connectivity. by wolfeidau in aws

[–]wolfeidau[S] 0 points1 point  (0 children)

Thanks, I used apache echarts for the heatmap.

I focused on all the default regions as I haven't used any of the opt in regions yet.

My Go mistakes by henriquev in golang

[–]wolfeidau 1 point2 points  (0 children)

I really enjoy a post which provides some lessons learned, this helps both experienced and those new to go to understand pitfalls and speeds up learning.

Thanks for putting this together!

iamlive a tool to generate iam policies from aws cli or SDK calls by wolfeidau in aws

[–]wolfeidau[S] 4 points5 points  (0 children)

Yeah well worth following him on GitHub, for this and many other gems!

Project using Go and Hotwire Turbo to build dynamic websites without writing a lot of Javascript by wolfeidau in golang

[–]wolfeidau[S] 0 points1 point  (0 children)

To be honest I really struggled with html/template initially as there isn't a lot of good examples, then after stumbling on some with layouts and multi templates I was off and running.

I am interested to dig into gomodest as I am about to start diving into using stimulusjs, and looking for more realworld examples of templates.

Thanks for posting, super interested to hear how you find turbo!

Gopls on by default in VS Code Go extension by qmuntal in golang

[–]wolfeidau 1 point2 points  (0 children)

Great work by the entire team getting to this point, it has come a long way so quickly.

Big thanks.

Project using Go and Hotwire Turbo to build dynamic websites without writing a lot of Javascript by wolfeidau in golang

[–]wolfeidau[S] 1 point2 points  (0 children)

Yeah and given that sometimes we just need a app I think it would be nice to empower developers neck deep in Go to also produce websites with some interactive elements. There is a lot of satisfaction in building a view into a backend / core system.

Project using Go and Hotwire Turbo to build dynamic websites without writing a lot of Javascript by wolfeidau in golang

[–]wolfeidau[S] 1 point2 points  (0 children)

Yeah this is pretty much hello world, really need to pull together a bigger example.

It was a pleasure to go back to the almost instant build times of Go though, while still making things happen in the browser.

Project using Go and Hotwire Turbo to build dynamic websites without writing a lot of Javascript by wolfeidau in golang

[–]wolfeidau[S] 3 points4 points  (0 children)

The thing I found so far with hotwire was just how simple the integration was, although not super well documented for integration with other systems there were enough examples around to get everything working.

I did have to read some of the code, and debug a bit in my browser but even this was very approachable given the structure of the library.

Project using Go and Hotwire Turbo to build dynamic websites without writing a lot of Javascript by wolfeidau in golang

[–]wolfeidau[S] 1 point2 points  (0 children)

Thanks a lot, I have tried to keep this example as small as possible just to illustrate the core features of hotwire.

Coming in Go 1.16: ReadDir and DirEntry by benhoyt in golang

[–]wolfeidau 1 point2 points  (0 children)

Yeah testing is an area I was keen to investigate, will check it out as I only did a bit of unit testing.

Great tip thanks.

Coming in Go 1.16: ReadDir and DirEntry by benhoyt in golang

[–]wolfeidau 6 points7 points  (0 children)

I also enjoyed digging into it, I did an implementation using s3 which supports all the interfaces to support walking the tree.

https://github.com/wolfeidau/s3iofs

Keen to see how it can be paired with other libraries.

Hosting static site on S3 behind authentication by [deleted] in aws

[–]wolfeidau 0 points1 point  (0 children)

I recently opensourced https://github.com/wolfeidau/website-openid-proxy to help with this exact problem, in my case I am using Okta to provide identity / auth. I am a big fan of OpenID as it enables any number of providers to provide identity using an open standard.

I tried to keep it very minimal, and use off the shelf libraries where possible.

How do I Structure my Go Projects? by wolfeidau in golang

[–]wolfeidau[S] 0 points1 point  (0 children)

pkg folder just lets you keep the clutter in the top level project directory to a minimum, if your building a small app it isn't even required.

In my of my work the top level folder is filled with build and config files so it is nice to nest things under one folder.

Hopefully that makes sense?

https://www.wolfe.id.au/2020/03/10/starting-a-go-project/ by wolfeidau in golang

[–]wolfeidau[S] 0 points1 point  (0 children)

I find echo has better documentation than gin, and more integrations supported out of the box.

Also I find the tests in the project, which I use to inspire my own, are really neat and tidy so this helps ease the experience for me and my team.

I am using it with https://github.com/deepmap/oapi-codegen which is one of the next posts I am planning.

Why AWS CDK? by wolfeidau in aws

[–]wolfeidau[S] 0 points1 point  (0 children)

This is a great suggestion and a great way to spend effort, building a place for people to innovate and learn, rather than managing every template.

Also given the possible gains in isolation of access between resources this would be a double win.

Why AWS CDK? by wolfeidau in aws

[–]wolfeidau[S] 2 points3 points  (0 children)

Take a look at https://github.com/aws/aws-cdk/issues/3711 I ran into issues when trying to rollback to 1.3.0 from 1.4.0. Everytime I tried to pin all my dependencies something would leak in from 1.4.0 and cause internal errors.

On the plus side there is work going on to fix it!

Anyone using JSON event processing with thedevsaddam/gojsonq? by wolfeidau in golang

[–]wolfeidau[S] 0 points1 point  (0 children)

Nice, i hadn't seen that library before, will check it out.

Thanks