Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
us͡an̸df͘rien͜ds͠
@usandfriends

in both cases if you want asynchronous IO you have to do some boilerplate just to ensure an entire message sends, the rest is more of the same

See sf::Packet, it’s supposed to fix that.

the point of programming is to write less code, not more

So then comparing SFML's to Boost’s network, we should be using SFML’s since you said Boost is more complicated code-wise?

something that handles the threading and networking nightmare for you would be ideal, but it doesn't need to be any higher level than that

Sure. We can keep looking. However, I don’t think it’s such a big networking/threading nightmare. I can try to implement non-blocking in my SimpleChess and let you know how it goes.

Nicholas "LB" Braden
@LB--
I will look at sf::Packet

It is designed to follow the behavior of standard C++ streams, using operators >> and << to extract and insert data.

I'm not a fan of that interface, but it is definitely simpler than what ASIO offers

Nicholas "LB" Braden
@LB--
when I have time I will start working on my fork again to try out SFML networking
us͡an̸df͘rien͜ds͠
@usandfriends
Cool.
Mauro
@EssGeeEich
How can I contribute? Eg. Say I made the networking code, what should I do from git?
us͡an̸df͘rien͜ds͠
@usandfriends
You would need to fork the repo, put your code into there, update your repo, and then submit a pull request.
Also IIRC, there's a contributing guide in the wiki or ReadMe.
Nicholas "LB" Braden
@LB--
@EssGeeEich I am already working on the networking code and have made significant progress, you may want to just fork from my fork
abanoub333
@abanoub333
(:
David Dixon
@Dixon1380
I question. I have been programming for 2 years in C++. I feel like I haven't been making any progress. I have only been playing around in console applications and I want to start making graphics and create software and games. I have been reading tons of books but I'm not a reading guy. I learn better through videos and hands on. I would to try some pair programming or collaborate on some C++ projects. I have some basic fundamentals in C++. The only things I like is vectors, STL, maps, linked list and more of the advanced stuff. I make a snake text base game and pong game in C++. That's about it.
How can I join on projects or pair programming to gain some experience or knowledge?
us͡an̸df͘rien͜ds͠
@usandfriends
If you learn better through videos and hands-on activities, why have you been reading so much?
If you want to join a project, you can start contributing code to any open source projects that you use. Try to clean up their bug or feature lists.
David Dixon
@Dixon1380
That makes so much sense! I feel like an idiot. How long does it take to be at the level to develop your own software? Do you have to learn everything about one language in order to make software? Or can you learn as you go? Right now, I'm learning SDL to make video games.
Nicholas "LB" Braden
@LB--
Depends on what you mean by 'software'
you can probably already make simple software with your current skill level
It is important to know a majority of a programming language to write maintainable software in it - maintainability is a big factor
David Dixon
@Dixon1380
All I make was hello world, a text based snake and pong game. I haven't step anywhere beyond that.
Nicholas "LB" Braden
@LB--
Making a game is a fast way to get familiar with a programming language
David Dixon
@Dixon1380
I know most of the basic to immediate stuff but not advanced like lambda, vectors, STL, linked list, Bitwise,
Nicholas "LB" Braden
@LB--
it's not all about knowing the features of the language, per se, but rather the mindset
David Dixon
@Dixon1380
Well I think I'm on the right track then. I think my next project is to make a ASCII RPG.
Nicholas "LB" Braden
@LB--
I'd recommend ditching the console
David Dixon
@Dixon1380
What you mean by mindset? Like how to use what I learn to apply it to what I want to create.
Nicholas "LB" Braden
@LB--
David Dixon
@Dixon1380
I'm trying. Console won't let me go.
Nicholas "LB" Braden
@LB--
mindset as in, using RAII instead of new and delete
and many other aspects of C++
knowing how to use language features is different from knowing why and when to use them
you can easily learn or look up the "how" any time, but the "why" and "when" takes practice and experience
David Dixon
@Dixon1380
Oh I remember watching a video about this. I'm going to go back to it. I watched it on pluralsight. Does this relate to design partners too?
Patterns*
Nicholas "LB" Braden
@LB--
design patterns are like informal language features
best to not use them unless you know you need them
it's easy to accidentally abuse a design pattern
David Dixon
@Dixon1380
I see. So what should I do if I ditch the console. Just start making graphics now?
Nicholas "LB" Braden
@LB--
Yep. I'd recommend checking out SFML
David Dixon
@Dixon1380
I'm learning SDL and SFML now.
I started with SDL first but it was a headache to set up first.
Nicholas "LB" Braden
@LB--
SFML is easier to use for starting out
it isn't really the best design-wise but it gets the job done
David Dixon
@Dixon1380
Then I'll use SFML then. I just want something to show off for interviews. Something that I made myself.
So for SFML, I can any kind of software other than games.
Like an art program or something?
Nicholas "LB" Braden
@LB--
You can technically do anything, yes.
that's why it is Simple & Fast Multimedia Library
but a game is a good way to learn quickly, IMO
don't be afraid to start over from scratch or completely change direction