Skip to content

Instantly share code, notes, and snippets.

View tk3369's full-sized avatar
🐢
Published! Hands on design patterns and best practices with Julia.

Tom Kwong tk3369

🐢
Published! Hands on design patterns and best practices with Julia.
View GitHub Profile
Warning: Sending message failed
β”‚ exception =
β”‚ IOError(EOFError() during request(https://discord.com/api/v10/channels/997765767053459520/messages))
β”‚
β”‚ Stacktrace:
β”‚ [1] read_to_buffer(t::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, sizehint::Int64)
β”‚ @ HTTP.ConnectionPool ~/.julia/packages/HTTP/aTjcj/src/ConnectionPool.jl:275
β”‚ [2] readuntil(t::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, f::Function, sizehint::Int64)
β”‚ @ HTTP.ConnectionPool ~/.julia/packages/HTTP/aTjcj/src/ConnectionPool.jl:294
β”‚ [3] readuntil
input() = """22243
11899
1696
2595
5331
6092
5274
5641
1345
@tk3369
tk3369 / cpp_builders.md
Last active February 22, 2023 01:18
C++ builders

Working with a hierarchy of builders that builds objects from a class hierarchy

I have a class hierarchy in which every class has some defined properties. I want to use builder pattern for all of these classes. Since the classes are set up in a hierachy, ideally I would do the same with the builders. The build function can validate its parts before constructing the concrete object. This guarantees that all necessary invariants are met.

Primary design