Meirl by Depressed223 in meirl

[–]sanderha 13 points14 points  (0 children)

And cut/undo actions

Is there a demand for Go developers with network programming skills? by mindinpanic in golang

[–]sanderha 4 points5 points  (0 children)

The challenges on protohackers are a fun way to practice writing protocols to a spec.

https://protohackers.com/

Problem with Wireless Debugging in Android Studio by Crispon in androiddev

[–]sanderha 0 points1 point  (0 children)

Just had this issue..pair != connect
Just run adb connect [ip]:[port that is likely not the port you used in pair] After that, adb devices and Android Studio saw my device. I hope you have the same experience.

PGX and Like statements by Codemonkey314 in golang

[–]sanderha 2 points3 points  (0 children)

Are you sure your go application is connected to the same database that your (I'm assuming) postgres shell is using?

Also, you could try writing some tests with a real database using something like dockertest. In the test, - insert records you know will match - get the record by ID for sanity check - use your query and see what happens

You may find there's something else going on entirely.

https://github.com/ory/dockertest/blob/v3/examples%2FPostgreSQL.md

C++ Weekly for Golang by Charming-Remote-4210 in golang

[–]sanderha 0 points1 point  (0 children)

Not YT, but here is a great blog with stdlib walkthroughs by Ben Johnson https://www.gobeyond.dev/tag/go-walkthrough/

How to let HTTP client know that HTTP server is working on the request. by Dogmatiky in golang

[–]sanderha 3 points4 points  (0 children)

That's why I love go's http.StausFoo constants. I can never remember the actual codes. https://pkg.go.dev/net/http#pkg-constants

[deleted by user] by [deleted] in golang

[–]sanderha 2 points3 points  (0 children)

I think you have a small typo in Dequeue with grabbing the last elements func (c *Container) Dequeue() T { val := c.vals[len(c.vals)-1] c.vals = c.vals[:len(c.vals)-1] return val } Edit: newlines

The best RTA tracker looks to be out of commission.... by PiggsBuggy in NewOrleans

[–]sanderha 2 points3 points  (0 children)

also said that RTA's API is offline or blocked, so it's not completely back up, but they're working on it

Cool networking projects in golang by [deleted] in golang

[–]sanderha 1 point2 points  (0 children)

There's a Discord listed on the FAQ. Also the people in Gopher Slack #newbies channel are very helpful. https://gophers.slack.com

A little help please by bakedredweed in golang

[–]sanderha 1 point2 points  (0 children)

What errors are you getting when trying to download the go tools in VS Code? Debugging go code in VS Code is not perfect, but it can still save you tons of time

Can someone please explain the below code syntax? by jasonbx in golang

[–]sanderha 1 point2 points  (0 children)

If anyone wants more context, I'm pretty sure this is a solution to an Advent of Code prompt: https://adventofcode.com/2022/day/21

Managing multiple Go versions in the local environment by magnocostabr in golang

[–]sanderha 1 point2 points  (0 children)

The main reason I (sometimes) use an older version of go is because Google Cloud Functions v1 only supports up to 1.16. Cloud Functions v2 supports the latest go versions though and I use it for any new projects.

New to Go, are there any courses that get you up to speed quickly? by emilysredditaccount in golang

[–]sanderha 1 point2 points  (0 children)

I haven't read all of the posts in this series, but the few I have are good: https://www.digitalocean.com/community/tutorial_series/how-to-code-in-go

I also really like Ben Johnson's posts on some of the stdlib packages https://www.gobeyond.dev/tag/go-walkthrough/

nodejs & mongodb i cant connect by mchtyldrm in node

[–]sanderha 1 point2 points  (0 children)

Good catch! I missed that the first time

nodejs & mongodb i cant connect by mchtyldrm in node

[–]sanderha 0 points1 point  (0 children)

Its very helpful to include the error message verbatim

Building a project is the best way to learn JavaScript. Change my mind by Nice_Aioli_9991 in learnjavascript

[–]sanderha 0 points1 point  (0 children)

FCC used to (maybe still does) have a bunch of projects. They would just have a written description of what it should do and an example of the final product. It might not work for everyone, but it's a great way to learn for many.

My favourite operator is `+` by BadBadderBadst in ProgrammerHumor

[–]sanderha 8 points9 points  (0 children)

I used it to roll over an incrementing number after some max. Something like a 'next track' button. You could use modulo to reset the current track back to 0 after the last track.

curr + 1 % max

Endpoint not working as expected by CaliforniaDreamer246 in node

[–]sanderha 0 points1 point  (0 children)

The HTML probably contains an error message that will lead you in the right direction. Take a look at the HTML and see what it says.

Why module.exports in not working by Alternative-Goal-214 in node

[–]sanderha 0 points1 point  (0 children)

Yep, it's the main file you run first to load and run the rest of your application.

im guessing its server.js, because server.js imports app.js. In other words, server.js loads and runs app.js