Kotest
advent-of-code-jq
Kotest | advent-of-code-jq | |
---|---|---|
17 | 232 | |
4,289 | 203 | |
0.6% | - | |
9.4 | 7.8 | |
1 day ago | 4 months ago | |
Kotlin | jq | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Kotest
-
AocKt: Test-driven Advent of Code in Kotlin
As you might know, Advent of Code will begin this Friday! If, like me, you want to have a go at solving the puzzles in Kotlin, I would like to share with you a little library I've developed to reduce boilerplate and solve the puzzles in a test-driven approach. It is based on Kotest, a modern and Kotlin-first test framework.
-
Tests Everywhere - Kotlin
Kotlin testing with Kotest and MockK
-
Best practices for Unit Testing Android Apps with Mockk, Kotest and others
As a matter of fact, in the previous examples, we have shifted a bit away from the TDD standards in the meaning that we test not only the operability of our code, but rather check if the code runs according to certain specifications (Given/When/Then). These specifications are our tests, and the syntactic sugar in the form of the possibility to give clear names to the tests using DisplayName and the grouping of the tests by a set of similar attributes helps us clearly formulate these specifications. There is an entire family of frameworks in different languages that allow us to create such specifications: for Java it is Spock, for Ruby—RSpec, and for Kotlin—Spek and Kotest frameworks. Below, I will go into more detail about them.
- Why do Kotlin tests (for Gradle projects) have to be inside classes?
-
Kotlin Mutation Tests
I've tried so many times. SO MANY. I love the idea of mutation testing. Even chatGPT couldn't help me. It just made up fake mutation testing frameworks to try. To me, pitest is dead. kotest is not mutation testing, but it's property testing is the next best thing I have found to revolutionize your unit tests.
-
How to improve third-party libraries with Kotlin extensions
The extensions are not particularly useful in this scenario because the described functionality can be incorporated into the Host class. On the other hand, they flourish in test frameworks like Kotest and enable the rapid development of useful add-ons like custom matchers. Extending third-party libraries with utility functions is another prevalent use case. In the next sections, we'll zero in on this specific aspect.
- Are there any plans to make a better build system for Kotlin than Gradle?
-
Testing with fakes different states?
We're using Kotest for our unit tests and are quite happy with it.
-
Testing with Kotlin and JUnit5
Basic testing in Kotlin with Kotest built for kotlin specificatlly (upcoming)
-
Kotlin&Junit vs Groovy&Spock
Here you are: https://github.com/kotest/kotest/issues/189
advent-of-code-jq
-
Ask HN: How do I get better at programming as a hobbyist?
If you just want a series of programming puzzles, check out the Advent of Code[1]
[1] https://adventofcode.com/
-
What Happens After Agile Dies?
This goes against Agile, against what many have only known. You can try it, and see what happens. Try a challenge from AdventOfCode, spend a couple of days working up a plan first. Did you write a cleaner solution? Now extrapolate.
-
When was the last time you used this? - Part 2: Algorithms
I have used BFS only sporadically to solve problems at work. DFS was usually a simpler or better choice. BFS is, however, an essential tool for Advent of Code puzzles - each year, BFS is sufficient to solve at least a few puzzles. BFS is also a very common algorithm for coding interviews.
-
2023, a year in images
I'm staring to be a huge fan of the Advent of Code challenge every beginning of December. Everyday puzzle is a great excuse to talk to people of your company that probably you don't interact much otherwise. And /r/adventofcode subreddit fan-arts and community is fun to follow. I always entered after completing the daily challenge, otherwise it may be a huge spoil :D
-
Ask HN: Programming Courses for Experienced Coders?
Advent of Code (https://adventofcode.com/)
It's not a programming course per-se, but it's a great resource to master the skill of coding and problem solving.
It's just one part though, it won't teach you anything about architecturing a bigger system.
-
Having a Game I'm into Makes Every Day Enjoyable
For anyone currently looking for something that does this for you, may I suggest Advent of Code: https://adventofcode.com/ This is the first year I've really had time and space to enjoy it, and enjoy it I have.
Also - this article ends on such a weird note given the message that the rest of it delivers. The author has finally realized how valuable it is to have something that gets them going, regardless of whether or not it ends up being "useful", but then immediately stumbles over the fear of it not lasting and failing to achieve greatness in it and sharply concludes with that sentiment.
Perseverance through intermediate-ness into greatness is irrelevant to enjoyment.
-
Stuff I Learned during Hanukkah of Data 2023
Hanukkah of Data is a series of data-themed puzzles, where you solve puzzles to move your way through a holiday-themed story using a fictional dataset. I think of it as "Advent of Code meets SQL Murder Mystery".
-
Using only vim to solve AdventOfCode Challenges | Episode 1
This journey will transform you and challenge your creative and resourceful thinking. You will explore new possibilities with VIM, going beyond what you thought it could do. And as you advance through the Advent Of Code puzzles, you will truly transform yourself if you follow the two scenarios listed below.
-
Ask HN: What apps have you created for your own use?
I've been making a CLI for advent of code ( https://adventofcode.com/ ) this week: https://github.com/VitamintK/wang-aoc-cli
It's been satisfying!
-
Does being bad at solving programming problems means not being a good programmer?
December started 12 days ago, and for my first year I decided to try the Advent of Code 2023, which is basically 1 programming problem everyday and they get harder and harder each day. I started HARD, I ate problems, day by day, until... day 10; things started getting pretty hard and couldn't do - I think - pretty average difficulty problems.
What are some alternatives?
spek - A specification framework for Kotlin
LeetCode - This is my LeetCode solutions for all 2000+ problems, mainly written in C++ or Python.
mockk - mocking library for Kotlin
aoc - Advent of Code solutions
Kluent - Fluent Assertion-Library for Kotlin
online-judge - A modern open-source online judge and contest platform system.
strikt - An assertion library for Kotlin
Exercism - Scala Exercises - Crowd-sourced code mentorship. Practice having thoughtful conversations about code.
hamkrest - Hamcrest for Kotlin
codewars.com - Issue tracker for Codewars
mockito-kotlin - Using Mockito with Kotlin
materials - Bonus materials, exercises, and example projects for our Python tutorials