Viacheslav
I've done over 400 problems on the leetcode using c++, but I have never programed a practical application. Your suggestion is useful, I'll try and reply, thanks!
You definitely need to make any app you are interesting. While you develop something you will think how to make communication between classes in a specific way, in other words which pattern should I apply to make such behavior i need for my specific app, so reading is passive when developing is active. When you develop you think how to make something better and better. In some moment you realize you've to rewrite the app, because it not effective enough in design manner
Ludovic 'Archivist'
Ludovic 'Archivist'
Here is a little PDF about the bare minimum of CMake you may need to make a small game Edit: This is the correct one, the other one has a typo
Agus
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Ludovic 'Archivist'
I wish this raylib had native networking support.
Well, if you make your first game, you probably do not want to do any networking shenanigans, but... Use trantor for that and integrate the game in the event loop
𝔖𝔞𝔯𝔬
Guys, best approcch for desktop ui applications in C++?
𝔖𝔞𝔯𝔬
What libraries do you suggest
Thomas
What are good ways to learn C for kernel development?
Pavel
What libraries do you suggest
There's Qt, which is probably the best native C++ UI framework that I know, however it brings a lot of stuff with it, sometimes stuff that feels really useful. So you need to be very careful when using it, not to let it spread across all your codebase. Also, if you plan to earn money from your app in any form in the future, you need to carefully evaluate its license, since I heard the license for the latest versions of QT can hit you retrospectively.
Pavel
What libraries do you suggest
Also check out this https://philippegroarke.com/posts/2018/c++_ui_solutions/
Tokin
Guys, best approcch for desktop ui applications in C++?
A mix of retained and immediate mode .. idk depends
Hii
Can i get complete notes of C language?
Михаил
I tried to send links for C standard
Михаил
my messages got deleted so, just search for c standard drafts if I got that right
Rose
Can i get complete notes of C language?
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Kenshin
I tried to send links for C standard
Unless the person is already proficient in a given programming language, standards' documents are not suitable for learning a language.
Goddie
Am currently a beginner cpp and am still struggling with some basics...classes,friends functions,setw any advice(i do projects but i cannot do them without relying from ai and other resources)
Ludovic 'Archivist'
Guys, best approcch for desktop ui applications in C++?
It depends entirely on how much your UI needs to feel native vs. customized, As well as your particular needs
Vicky
Hi
Pavel
Am currently a beginner cpp and am still struggling with some basics...classes,friends functions,setw any advice(i do projects but i cannot do them without relying from ai and other resources)
If you expect to be able to learn C++ in just a few days, it's not how it works, it takes quite some time to understand some of the concepts and years of practice to figure out the weird parts of it and learn how to use them in the right way. My suggestion would be to continue making your project/projects, continue learning, and whenever you encounter a problem that you can't understand even with the help of google (or AI), ask about those here or in other places with devs. You'd need to learn how to ask good questions though, it's a separate skill, and a very valuable one (at least until we all are replaced by mind-reading AI)
Pavel
https://9gag.com/gag/5525766
klimi
Hi
nohello.com
Vicky
Goddie
Like its a current unit in this semester
Goddie
Previous semester i learnt c
Vicky
What of html
Goddie
Am taking software engineering 🥺i dont think if we will delve into web development
Goddie
But personally am planning to have my on study on css javascript and html from next month
Ludovic 'Archivist'
Previous semester i learnt c
Oh so you know all the parts of C++ that you need to avoid using now. You will want to look into the container library of the standard library and the smart pointers first. This will be what will replace all your uses of malloc, free, new, delete, realloc... As a former C developer you need to lose the habit of using those first. Then you want to look into RAAI (also known as CADR) which will allow you to manage other resources, as well as the Rules of 0, 3, 5 Then look into iterators and the algorithm library of the standard library
Vicky
Alright
Caesophit∆
Looking for a full-stack developer.
harmony5 🇺🇳 ⌤
What of html
Check out mdn and web.dev, but it's off topic in this group, though
Orkhan
#projects
Rose
#projects
Please check the Resources section for links on Open Source Projects in C/C++ some of which are explained from scratch.
Thomas
#notes
Thomas
/notes
Rose
/notes
List of notes in C/C++ Programming: - 0_to_show_item_use"#item" - gitgud - howtoask - markdown - mcve - meta - ot - paste - projects - res You can retrieve these notes by using /get notename, or #notename
Thomas
#gitgud
Rose
#gitgud
Becoming a pro in C++ requires practice, dedication, and a willingness to learn new things. Here are some steps you can take to improve your C++ skills: Read C++ books: One of the best ways to improve your C++ skills is to read books written by experts in the field. Some recommended books include "C++ Primer" by Stanley Lippman, Josée Lajoie, and Barbara E. Moo (updated for C++11), and "Programming: Principles and Practice Using C++" by Bjarne Stroustrup (2nd Edition - May 25, 2014, updated for C++11/C++14). These books provide a comprehensive introduction to C++ that covers just about everything in the language in great detail. Practice coding: The best way to improve your C++ skills is to write code. Start by solving small problems and gradually move to more complex ones. You can practice on online platforms like LeetCode, HackerRank, and Codeforces, which provide a range of problems of varying difficulty. Try to write clean, well-structured code that follows best practices like commenting, naming conventions, and avoiding global variables. Read documentation: There are many libraries and frameworks available for C++, and reading their documentation can help you gain a deeper understanding of how they work. For example, you can read the C++ standard library documentation or the Boost C++ libraries documentation. Participate in online communities: Join online forums and communities where C++ programmers gather to share knowledge and ask for help. This will allow you to learn from others and get feedback on your code. For example, you can join the C++ community on Reddit or the C++ Slack community. Build projects: Try building some projects on your own, such as a game or a utility program. This will give you an opportunity to apply your C++ skills in a practical setting and help you learn new things. Start with a small project, and then gradually move to more complex ones. For example, you can build a text-based adventure game or a calculator app using C++. Watch C++ conferences: Attend or watch C++ conferences like CppCon, ACCU, and Meeting C++ where experts in the field share their experiences, ideas, and best practices. These conferences provide a great opportunity to learn about new features, techniques, and tools in C++, as well as network with other C++ developers. You can watch the recordings of past conferences on the conference websites or YouTube channels. Learn from your mistakes: As you write code, you will undoubtedly make mistakes. Don't be discouraged by them; instead, learn from them and try to avoid making the same mistakes in the future. Use debugging tools like gdb, valgrind, or lldb to identify and fix errors in your code. You can also seek feedback from other programmers and learn from their code reviews.
𝔖𝔞𝔯𝔬
It depends entirely on how much your UI needs to feel native vs. customized, As well as your particular needs
Based on all your answers i’ve changed my idea I’ll Switch to a web app instead
Chat Boss
ㅤC++ One Love LGBTQIA+ sent a code, it has been re-uploaded as a file
Chat Boss
ㅤMahak Kaur Chhabra sent a code, it has been re-uploaded as a file
G U R U
Hi
klimi
Hi
try sending it again
G U R U
I have 2 Threads Executing Same Function int mail = 0; Function Implementation Is { mail++ < 100000; } Result expect 2,00,000 but every time different result
G U R U
Every Thread Have Different Stack Why I Can See This Problem 😕
G U R U
Mail is global variable
klimi
Every Thread Have Different Stack Why I Can See This Problem 😕
You are probably hitting a race condition on the mail global variable
klimi
lets have two threads A and B: A : loads mail = 0 B : loads mail = 0 A: increments mail = 0 + 1 B: increments mail = 0 + 1 -> inconsistency
klimi
another problem could be compiler optimalization when it is not even reading the memory (because you are not using volatile) and it is using registers
G U R U
thnx -> 2 Threads executing same time with 0 value ; 🙂
G U R U
what ugly language is this?
Mujhe Utni Acchi English Nahi Aati Hai Mujhe Apne Problem Solving Se Matlab Hai English Se Nahi 😌
G U R U
Mujhe Kitni Aati Hai Try Karta Ho Bolne Ki🙂
Learning
what? matlab?
klimi
Sure Next Time😃
No. Either delete your messages or translate them. If you do not comply with the rules I'll give you warning and if it happens again you will be banned from this group
Brooklyn
Mujhe Utni Acchi English Nahi Aati Hai Mujhe Apne Problem Solving Se Matlab Hai English Se Nahi 😌
I am a translator:”I don’t know much English I just care about Problem solving and not English ”
Brooklyn
Mujhe Kitni Aati Hai Try Karta Ho Bolne Ki🙂
“I just speak about how much I know”
Rose
Another one bites the dust...! Banned Md. Reason: youtube ad
Riley
Every Thread Have Different Stack Why I Can See This Problem 😕
Rule of thumb is to not let threads access a shared variable without synchronization, use a mutex around the increment and it will fix your problem
Riley
Or better yet, declare a new integer within the function so each thread has the variable local and won’t compete, use an atomic operation after the loop to add the result to your shared mail variable, that would make it extremely efficient because your only synchronizing for two operations instead of two hundred thousand .
Andrey
Hello. Do you mind if I ask a question about cmake and a project structure?
Danya🔥
But if you speak Russian, there is a better chat for this