Some how I'm gonna be implementing the strategy pattern in my routing system too.
https://twitter.com/joelnet/status/1256229458295619585
https://twitter.com/joelnet/status/1256229458295619585
Web++: A C++ Web Framework
Some how I'm gonna be implementing the strategy pattern in my routing system too. https://twitter.com/joelnet/status/1256229458295619585
I'm gonna call this a different name though. Strategy pattern doesn't suits it.
Any of these represents the intent more efficiently:
- Parsed value generation pattern
- Data passing pattern
- Data controlling flow
- Context passing
I like the Context Passing since it matches with the above routing system I'm about to design.
Let me know in the @webpp_discuss group if you have a better name for it.
Any of these represents the intent more efficiently:
- Parsed value generation pattern
- Data passing pattern
- Data controlling flow
- Context passing
I like the Context Passing since it matches with the above routing system I'm about to design.
Let me know in the @webpp_discuss group if you have a better name for it.
You can find another one hour and half video of me working on the project here:
https://www.aparat.com/v/gay0q
https://www.aparat.com/v/gay0q
آپارات - سرویس اشتراک ویدیو
سی++: تبدیل کوکیها
در این قسمت سعی دارم تا کوکیها رو با ایده traits مچ کنم.
This media is not supported in your browser
VIEW IN TELEGRAM
First stages of implementing the new routing system idea.
This media is not supported in your browser
VIEW IN TELEGRAM
I just found out that I've been mistakenly recording the live coding video with this image on top of everything. 😂
@webpp
@webpp
I find happiness in finding bugs in IDEs. 🤣
https://twitter.com/the_moisrex/status/1257796596726726658?s=20
https://twitter.com/the_moisrex/status/1257796596726726658?s=20
Twitter
The Moisrex
I'm so proud of C++20 for letting me to be creative like this:
Web++: A C++ Web Framework
I find happiness in finding bugs in IDEs. 🤣 https://twitter.com/the_moisrex/status/1257796596726726658?s=20
Let's see how much time it will take CLion to fix it 😁
The tweet!
The tweet!
I need to write something like this for every type I introduce in the framework. See compiler developers? I need C++20's "concepts" now!
If you know a way I can use them fully, please say so in the @webpp_discuss. Thanks.
If you know a way I can use them fully, please say so in the @webpp_discuss. Thanks.
Web++: A C++ Web Framework
I need to write something like this for every type I introduce in the framework. See compiler developers? I need C++20's "concepts" now! If you know a way I can use them fully, please say so in the @webpp_discuss. Thanks.
Oh, would you look at that! Clang 10 supports it and GCC 9.3.0 needs
I need some macro magic to use these in the CMake and also in the project fully.
-fconcepts to work.I need some macro magic to use these in the CMake and also in the project fully.
Web++: A C++ Web Framework
Seems like GCC 9.3.0 with -fconcepts is no good. There's a bug. I haven't tested the new version 10 that came out today which doesn't need the -fconcepts though. Clang 10.0.0 works fine though.
GCC 10.1.0 works just fine.
https://godbolt.org/z/7Z7cWh
https://godbolt.org/z/7Z7cWh
godbolt.org
Compiler Explorer - C++
using namespace std;
#if __has_include()
# include
#else
namespace std {
namespace detail {
template <class T, class U>
concept SameHelper = std::is_same_v<T, U>;
}
template <class T, class U>
concept same_as = detail::SameHelper<T…
#if __has_include()
# include
#else
namespace std {
namespace detail {
template <class T, class U>
concept SameHelper = std::is_same_v<T, U>;
}
template <class T, class U>
concept same_as = detail::SameHelper<T…
Just made the core library header-only.
Hopefully I won't regret it later.
If you don't like it, tell me in the @webpp_discuss so we can talk about it.
Hopefully I won't regret it later.
If you don't like it, tell me in the @webpp_discuss so we can talk about it.
Should I use .h or .hpp for header files (for now of course, I'll probably use something else when I migrate the project to C++20's modules)?
Anonymous Poll
64%
.h
36%
.hpp
0%
Others (please tell in the group)