Closed bksamsung closed 2 months ago
This pull request introduces two new blog posts focused on Go programming. The first article critiques popular Go libraries that the author chooses not to use, discussing their drawbacks and suggesting alternatives. The second article explores strategies for testing functions involving randomness, emphasizing dependency injection and statistical testing methods. Both articles aim to provide insights and practical approaches for developers working with Go.
File Path | Change Summary |
---|---|
content/post/go-libs-i-dont-use.md |
Added a new article discussing popular Go libraries the author avoids, including critiques and alternatives. |
content/post/test-with-random.md |
Added a new article on testing random functions in Go, covering TDD, dependency injection, and statistical testing. |
π In the land of Go, where the libraries grow,
A rabbit hops by, with wisdom to show.
"Avoid the mock, let the real ones flow,
Test with some stats, let your knowledge glow!"
With a twitch of my nose, I celebrate the change,
For in coding, dear friends, we all can arrange! π
[!TIP]
Announcements
- The review status is no longer posted as a separate comment when there are no actionable or nitpick comments. In such cases, the review status is included in the walkthrough comment. - We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1279579842131787838) on our Discord. - Possibly related PRs: Walkthrough comment now includes a list of potentially related PRs to help you recall past context. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1282535539299323995) on our Discord. - Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs in the walkthrough comment. You can also provide custom labeling instructions in the UI or configuration file. - Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).
content/post/test-with-random.md
[style] ~109-~109: Consider using a different adverb to strengthen your wording. Context: ... in real-world code, we might encounter completely different values that our code may not ... (COMPLETELY_ENTIRELY)content/post/go-libs-i-dont-use.md
[style] ~13-~13: This phrase is often redundant. Consider writing βIβ unless you want to emphasize that you and not someone else will do something. Then, commas might be missing. Context: ...icle highlights a few Go libraries that I personally avoid using, along with the reasons beh... (I_MYSELF) --- [uncategorized] ~13-~13: Possible missing comma found. Context: ...e the use of these libraries universally but to shed light on potential challenges t... (AI_HYDRA_LEO_MISSING_COMMA) --- [style] ~40-~40: This phrase is often redundant. Consider writing βIβ unless you want to emphasize that you and not someone else will do something. Then, commas might be missing. Context: ...hoose [GORM](https://gorm.io/), and why I personally refrain from relying on it. #### **Mig... (I_MYSELF) --- [style] ~54-~54: As an alternative to the over-used intensifier βquiteβ, consider replacing this phrase. Context: ...ving Data** Fetching data with GORM is quite simple and convenient, especially when compare... (EN_WEAK_ADJECTIVE)
content/post/test-with-random.md (2)
`1-193`: **Excellent blog post! The content is well-structured, informative, and provides valuable insights.** The blog post is well-written and covers an important topic of testing functions involving randomness in Go. The content is organized logically, starting with an introduction, presenting the problem, discussing various approaches, and concluding with a recommended solution. The code examples are relevant, clear, and demonstrate the concepts effectively. The explanations are concise and easy to follow. Overall, this is an excellent blog post that provides practical guidance for testing functions with unpredictable or random output in Go.--- `109-109`: The use of "completely" in the phrase "completely different values" is appropriate and does not require a change. It effectively emphasizes the extent of the difference between the encountered and prepared values.Tools
LanguageTool
[style] ~109-~109: Consider using a different adverb to strengthen your wording. Context: ... in real-world code, we might encounter completely different values that our code may not ... (COMPLETELY_ENTIRELY)Tools
LanguageTool
[style] ~109-~109: Consider using a different adverb to strengthen your wording. Context: ... in real-world code, we might encounter completely different values that our code may not ... (COMPLETELY_ENTIRELY)content/post/go-libs-i-dont-use.md (3)
`1-99`: **Insightful blog post! The content is well-structured, informative, and provides a unique perspective.** The blog post offers a thoughtful and well-reasoned perspective on popular Go libraries that the author chooses not to use. The content is organized logically, starting with an introduction, discussing specific libraries (sqlmock, GORM, and non-standard mux servers), and concluding with a summary. The explanations for each library are clear, concise, and supported by relevant examples. The author effectively highlights the potential drawbacks and challenges associated with these libraries, particularly in the context of larger or more complex projects. The alternative approaches and recommendations provided demonstrate the author's expertise and offer valuable guidance for readers. Overall, this is an insightful blog post that contributes to the discussion on library selection in Go projects.--- `13-13`: The sentence is grammatically correct without a comma before "but." The coordinating conjunction "but" is used appropriately to join two independent clauses, and a comma is not necessary in this context.Tools
LanguageTool
[style] ~13-~13: This phrase is often redundant. Consider writing βIβ unless you want to emphasize that you and not someone else will do something. Then, commas might be missing. Context: ...icle highlights a few Go libraries that I personally avoid using, along with the reasons beh... (I_MYSELF) --- [uncategorized] ~13-~13: Possible missing comma found. Context: ...e the use of these libraries universally but to shed light on potential challenges t... (AI_HYDRA_LEO_MISSING_COMMA) --- [style] ~40-~40: This phrase is often redundant. Consider writing βIβ unless you want to emphasize that you and not someone else will do something. Then, commas might be missing. Context: ...hoose [GORM](https://gorm.io/), and why I personally refrain from relying on it. #### **Mig... (I_MYSELF) --- [style] ~54-~54: As an alternative to the over-used intensifier βquiteβ, consider replacing this phrase. Context: ...ving Data** Fetching data with GORM is quite simple and convenient, especially when compare... (EN_WEAK_ADJECTIVE)--- `40-40`: The use of "personally" in this context is appropriate, as it emphasizes the author's individual choice to refrain from using GORM. The sentence reads well without commas around "personally," and the emphasis adds clarity to the author's perspective.Tools
LanguageTool
[style] ~13-~13: This phrase is often redundant. Consider writing βIβ unless you want to emphasize that you and not someone else will do something. Then, commas might be missing. Context: ...icle highlights a few Go libraries that I personally avoid using, along with the reasons beh... (I_MYSELF) --- [uncategorized] ~13-~13: Possible missing comma found. Context: ...e the use of these libraries universally but to shed light on potential challenges t... (AI_HYDRA_LEO_MISSING_COMMA)Tools
LanguageTool
[style] ~40-~40: This phrase is often redundant. Consider writing βIβ unless you want to emphasize that you and not someone else will do something. Then, commas might be missing. Context: ...hoose [GORM](https://gorm.io/), and why I personally refrain from relying on it. #### **Mig... (I_MYSELF)
Name | Link |
---|---|
Latest commit | 84c2251f91d2e0e567a7d4e04608342452a8624c |
Latest deploy log | https://app.netlify.com/sites/sad-banach-de2851/deploys/66dfd9aa70be0100084386e0 |
Deploy Preview | https://deploy-preview-100--sad-banach-de2851.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Summary by CodeRabbit
New Features
Documentation