typing
learn-go-with-tests
Our great sponsors
typing | learn-go-with-tests | |
---|---|---|
38 | 30 | |
1,544 | 21,257 | |
1.6% | - | |
8.8 | 7.8 | |
9 days ago | 3 days ago | |
Python | Go | |
GNU General Public License v3.0 or later | MIT License |
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.
typing
- Writing Python like it’s Rust
- Library for single dispatch on Generic subscript
-
Thoughts on nested / inner functions in Python for better encapsulation and clarity?
Iterable[str] is unfortunately evil as it matches str which is often unintended. (see: https://github.com/python/typing/issues/256) One would need both NOT-type and AND-type in order to properly handle these.
-
How to be more Literal in Python
The basic motivation behind them is that functions can have arguments that can only take a specific set of values, and those functions return values/types change based on that input. Common examples are (you can find more here):
-
Python 3.11.0b1 is out! Python 3.11 is now in feature freeze mode!
While yes 26 people liked the idea here: https://github.com/python/typing/issues/193
-
Type Hinting - Constrain metaclass of typing.Type
but looking at relevant issues on GitHub it seems this has been shot down repeatedly. python/typing#18, python/typing#213
-
What type hint should I use for "some container type" in general but explicitly exclude the str type?
See https://github.com/python/typing/issues/256 for a discussion.
-
Type annotations: how to express list contravariance?
Lower bounds are not supported for TypeVars, unfortunately.
-
I use attrs instead of pydantic
Mypy allows that because initial versions of PEP-484 allowed that. This has changed; here's the current wording on the PEP:
> This is no longer the recommended behavior. Type checkers should move towards requiring the optional type to be made explicit.
https://www.python.org/dev/peps/pep-0484/#id29
-
Can I walk through the entire hierarchy of object types?
Dunno, other, larger projects than the one I'm working on seem to run up against this from time to time. (rasa_core, to pick one example from near the top of a Google search; also Telethon, Blender, TensorFlow, Pandas. Guido also filed a bug on the typing module in an early version of Python 3.5 because of unexpected implications of this particular issue, so the problem isn't exactly purely theoretical.) That's aside from the wish for conceptual purity in the call signatures of classes and their subclasses, which is not always and automatically a bad wish to have; and the notion that a language that prides itself on its introspective faculties might want to make introspection of classes from the top of a class hierarchy possible, at least in theory? Perhaps to facility learning about the language and/or visualizing large class hierarchies easily, for instance?
learn-go-with-tests
-
[Go, Book Review] Learn Go with Tests by Chris James
There are not particularly bad parts. Overall the book is well written and organized. Moreover, Since it is also an open-source material, many readers have contributed to the contents of the book(including a few of mine :)). I hope there are more books like this for other languages such as Rust or Python.
- quii/learn-go-with-tests: Learn Go with test-driven development
-
Poke 2 Color and Tab Mini C
i.e using this free open source book Learn Gol with Tests
- Offline Resources for Learning Go
-
Please share programming/CS books and articles that use Go as examples(but not strictly about Go)
I really like Learn Go with tests. Not only is it a neat resource for learning Go, but it's great for getting a feeling for TDD.
-
Learn Go with Tests: Scaling acceptance tests (with a light intro to gRPC)
You can try viewing it on github instead https://github.com/quii/learn-go-with-tests/blob/main/scaling-acceptance-tests.md
- Consiglio letture e/o corsi sul TDD
-
From being confident to being professional
If you already know php and want to get professional in go, i suggest you take a look at https://github.com/quii/learn-go-with-tests
-
I’ve studied golang by solving algorithms, what do I have to learn next to land a job?
Learn some TDD: https://github.com/quii/learn-go-with-tests
-
Learn Go with Tests
Hi, author here.
The project is open-source (https://github.com/quii/learn-go-with-tests) so there's a few options available to you.
In releases, you'll find PDFs and epubs, I'm pretty sure most epub readers will let you use a dark mode. Or you can just read the markdown files on GitHub, which also supports it.
What are some alternatives?
mypy - Optional static typing for Python
go - The Go programming language
pyre-check - Performant type-checking for python.
gobyexample - Go by Example
fp-ts - Functional programming in TypeScript
7days-golang - 7 days golang programs from scratch (web framework Gee, distributed cache GeeCache, object relational mapping ORM framework GeeORM, rpc framework GeeRPC etc) 7天用Go动手写/从零实现系列
pydantic - Data validation using Python type hints
golang-cheat-sheet - An overview of Go syntax and features.
Telethon - Pure Python 3 MTProto API Telegram client library, for bots too!
gopl.io - Example programs from "The Go Programming Language"
mashumaro - Fast and well tested serialization library
argo-cd - Declarative Continuous Deployment for Kubernetes