Discord Server: https://discord.gg/conaticus Github: https://github.com/conaticus Twitter: https://twitter.com/conaticus/ The keyboard …
30 Comments
Leave a Reply
You must be logged in to post a comment.
Discord Server: https://discord.gg/conaticus Github: https://github.com/conaticus Twitter: https://twitter.com/conaticus/ The keyboard …
You must be logged in to post a comment.
bro code == cool
2:02, it will has an error, because the OptionMenu is returning a string, which is not convertible to int.
2:09, this time C# was shorter:
#include <fstream>
#include <algorithm>
using namespace std;
void CFile ()
{
string name = ""; cout << "Enter the file name: "; cin >> name;
//Assuming File was created as a ofstream File ("something.txt");
File << "./" << name << ".c, include "" << name << """;
auto headerDef = name;
transform (headerDef.cbegin(), headerDef.cend(), headerDef.begin(), ::toupper);
headerDef += "_H";
string headerLines[] = { "#ifndef " + name, "n#define " + name, "n#endif //" + name };
}
1:39, C++:
#include <vector>
#include <iostream>
using namespace std;
auto ShowOptionsMenu (const char *msg, const vector <const char *> &options)
{
cout << msg; int16_t i = 0, optionIdx;
for (const auto opt: options) printf ("%d) t%sn", ++i, opt);
cout << "Choice: "; cin >> optionIdx;
return optionIdx; //Faster and more flexible to return just the index.
}
0:33, in C++ you can just use strings:
const string header_name = file_name + ".c"; //If file_name was a string too.
const string header_src = "#ifndef " + header_guard_def + "n#define " + header_guard_def + // … and so on.
//Or:
const vector <const char *> cmds = { "#ifndef ", "#define ", " // " };
for (auto cmd: cmds) header_src += cmd + header_guard_def + "n";
I understand that you're just learning and it's the first project you're ever building in C#(I hope so), but dude, this was physically painful to watch.
I think this tells us a lot about supposed C++ "ugliness". It seems to be the code standards commonly accepted in the language community, not the language itself.
So when you brought python/TS code style to C# you created some kind of horrible monstrosity nobody can look on without disgust. It's an uncanny valley of programming languages.
C# is just universally nice language, no matter with what background you start learning it
Je cherche des personnes qui débutent le language C# comme moi avec qui on pourrait évoluer, ensemble. On se créera un groupe discord, n'hésitez pas
You should try lua sometime.
I'll go ahead and tell you the end of this story. You'll love it, realize damn that's a big ecosystem. You'll spend two years learning the ecosystem.
And M$ will completely change everything and tell you: this is how things are done now! Come learn the new hotness!
Repeat every two years until you learn your lesson.
You should look into Rust, Nim, and Zig.
TRY GO
C# is a great programming lanuage compared to java and javascript it's simple and clean easy to understand and the IDE visual studio code is increaderbley amazing its a really powerful IDE
I’m in a love hate relationship with C# because of unity
What’s your keyboard?
I am self-taught with assistance from books in BASIC and REXX. I found I couldn't understand any C# statement I encountered in https://www.youtube.com/watch?v=3gbMF1OZ3EU . It looks ghastly. To each his/her/its own I suppose.
You should try out the bigger brother of C#, Java
I’m currently learning C# for A level computer science it’s pretty cool
I LOVE C# :d
c# and f# looks cool
now try f#. its cursed
I learnt c and I don't know if I should switch to c#. Any advice??
I am using C and C++ in uni, but C# will always remain my favorite one!
3:16 dude next time try out SHIFT + DELETE
C# is really a great language. It makes programming a pleasure.
3 seconds into the video and I can already tell there is no father figure in your life 😔
Say conaticus, could you tell me from your personal experience was it easier to learn C# because you already knew typescript? I am asking because I am 5 months into learning JavaScript and I am interested in learning C#. Would it make more sense to learn typescript first and afterwards learn C#? Or just jump right into C# after I get the hang of JavaScript?
I’m a beginner, like literally weeks old
But, I don’t understand why everyone says Pythong is good for beginners, it is confusing af
C on the other side was so intuitive, haven’t used C# but I’m guessing those are similar
That and everywhere I look, people calls about so much optimization and possibilities, while in Python everything was about “pythonic” or something like that, THAT SH*T IS JUST CONFUSING
I don’t even know how to call information from a dictionary in a system, how tf would I know “pythonic” ways as a beginner
starts chanting "Rust"
The more time you spend with C#, the more you start to wish other languages were as "easy" as C# tbh.
i learned it "through" unity