• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:40
CEST 17:40
KST 00:40
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO8 Preview4[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) Sea Duckling Open (Global, Bronze-Diamond) RSL Revival: Season 5 - Qualifiers and Main Event Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Do we have a pimpest plays list? Why there arent any 256x256 pro maps? BGH Auto Balance -> http://bghmmr.eu/ (Spoiler) Asl ro8 D winner interview BW General Discussion
Tourneys
Escore Tournament StarCraft Season 2 [ASL21] Ro8 Day 4 Small VOD Thread 2.0 [BSL22] RO16 Group Stage - 02 - 10 May
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread OutLive 25 (RTS Game) Dawn of War IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
European Politico-economics QA Mega-thread The Letting Off Steam Thread US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1720 users

The Big Programming Thread - Page 636

Forum Index > General Forum
Post a Reply
Prev 1 634 635 636 637 638 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Artesimo
Profile Joined February 2015
Germany572 Posts
May 27 2015 12:03 GMT
#12701
On May 27 2015 16:19 netherh wrote:
Show nested quote +
On May 27 2015 06:40 Nesserev wrote:

...

for (auto& pair : myMapB)
myMapA[pair.first] = myMapA[pair.first] + myMapB[pair.first];

...



You can probably shorten that a bit:



for (auto const& pair : myMapB)
myMapA[pair.first] += pair.second;



(You're not changing "pair", so use const& instead of &. No need to do the myMapB lookup, since the value is in pair. No need to do two lookups in myMapA (though I suspect that might get optimized anyway)).

I'd be up for collaborating on something, if the project is interesting.


Thank both of you, I figured out my problem got solved by me just adding a getMap-function, which I didnt do initially for some reason. I guess I should take more breaks while coding rather than working on a problem non-stop. The finaly solution already existed in my code, but commented out since I couldnt make it work without getMap.

A few question regarding the provided code though:
auto& pair - the & is used to use the adress of pair, rather than copying it, which our memory apreciates.

const - indicates that pair doesnt get changed. I assume this is for improved readability of the code aswell as security. Does it also increases performance, decreases performance due to having to check if pair didnt get changed or does it have no effect on the performance at all?
Oshuy
Profile Joined September 2011
Netherlands529 Posts
May 27 2015 13:05 GMT
#12702
On May 27 2015 21:03 Artesimo wrote:
const - indicates that pair doesnt get changed. I assume this is for improved readability of the code aswell as security. Does it also increases performance, decreases performance due to having to check if pair didnt get changed or does it have no effect on the performance at all?


No effect on performance at all: "const" is only verified at compile time unless I am mistaken.
Coooot
fmod
Profile Blog Joined November 2013
Cayman Islands330 Posts
May 27 2015 14:34 GMT
#12703
Compilers -may- be able to optimize a variable declared const in some cases. However, it's really quite a micro-optimization.
I don't particularly like you.
phantomfive
Profile Joined April 2010
Korea (South)404 Posts
May 27 2015 16:05 GMT
#12704
On May 24 2015 02:33 Morfildur wrote:
I'm developing the best PHP Framework that ever walked the tubes of the internet because I'm tired of the crappy PHP Frameworks that are available. I've tried most of them, basically all of the big ones, and all of them are just terrible, so I'm doing it right now with proper view models, hierarchical structure, full separation of views, controllers and models, not the pseudo-separation that all the frameworks seem to like, fully configurable, ...
Of course it's a long way away from perfection, especially considering that I'm currently in the third rewrite of almost the whole structure because I had a great idea that didn't fit into the existing structure.

That's cool but it suggests your structures aren't very flexible.....might want to focus on improving that.
To ease another's heartache is to forget one's own - Lincoln
Artesimo
Profile Joined February 2015
Germany572 Posts
May 27 2015 16:43 GMT
#12705
I am stuck again.
I try to replace my set/get methods with the overloaded [] operator and my function that megres two maps with the + operator.
However, I am horribly stuck again. I have multiple entitys of abstract datatype, each of them storing an object that contains a map.

The abstract datatype is SparseMatrix and contains a pointer to one object MatrixElement. MatrixElement contains std::map.

I already figured out that

Stash operator+(const Stash& stashB)
{
Stash stash;
stash.item1 = this->item1 + stashB.item1;
stash.item2 = this->item2 + stashB.item2;
stash.item3 = this->item3 + stashB.item3;
stash.item4 = this->item4 + stashB.item4;
return stash;
}

stashA= stashB + stashC;

works well if I do all off this inside my main, I struggle however with doing so in my case since I have a hierachy that goes like:
[node] - holds my "SparseMatrix"s in a std::vector.
then
[SparseMatrix] - each holding one"MatrixElement"
then
[MatrixElement] - each holding one map.

I cant figure out where and how to implement the overloading. I thought it had to be in [node] since it is the very top, but then I struggled since this-> accesses [node] and I only habe one pargument that I can use to adress which element of vector<SparseMatrix> I want to adress, I would need 2 though.

The []-operator is even worse, I thought it would be easyer, but I fail at getting my map-layout to work/make it work at all.

std::map<std::pair<int, int>, int>

int MatrixElement::operator[](std::pair<int, int>)
{
//dont know how to make the function accept variables, since
// return map[int, int];
// return map[std::pair<int, int>];
// return map[std::make_pair(int int)]
// dont work.
}



RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
Last Edited: 2015-05-27 17:41:58
May 27 2015 17:41 GMT
#12706
On May 27 2015 23:34 fmod wrote:
Compilers -may- be able to optimize a variable declared const in some cases. However, it's really quite a micro-optimization.


Indeed it is a "micro-optimization". + Show Spoiler +
peephole optimization is a slightly more correct phrase that means the compiler is looking at the code through a peephole and optimizing only a few nearby lines at a time.


GCC and most other modern compilers use the very effective constant folding optimization. This ends up being a huge code-size save overall. Adding a single instance of const may only save a few instructions, but it can also allow the compiler to do other optimizations on future passes and greatly reduce the code.

One thing to mention is that the compiler is actually pretty smart about knowing which variables will change during execution, so it will pepper in it's own const modifiers in order to do constant folding. This optimization is turned on by default.
Any sufficiently advanced technology is indistinguishable from magic
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
May 27 2015 19:43 GMT
#12707
On May 27 2015 09:24 Blitzkrieg0 wrote:
What are you planning exactly? The language is irrelevant until you have an idea what is being built.


Nothing in specific, but I was hoping for us as a community to come up with a nice idea.
xboi209
Profile Blog Joined June 2011
United States1173 Posts
May 27 2015 20:30 GMT
#12708
On May 28 2015 04:43 darkness wrote:
Show nested quote +
On May 27 2015 09:24 Blitzkrieg0 wrote:
What are you planning exactly? The language is irrelevant until you have an idea what is being built.


Nothing in specific, but I was hoping for us as a community to come up with a nice idea.

I wouldn't...mind you guys working on PvPGN
http://www.reddit.com/r/broodwar/
BByte
Profile Joined August 2011
Finland49 Posts
May 27 2015 20:52 GMT
#12709
On May 24 2015 01:56 darkness wrote:
What projects do you guys do outside university and work? Every time I have some time to code something, I don't have an idea for a personal project. I don't do programming exercises as they're boring, but I can't come up with something practical that I need to use/automate.


I've actually been meaning to share my own project:

Phamda is functional programming library for PHP. The main goal is automatic partial application or currying, so you can for example do this:


use Phamda\Phamda as P;

// Add function is roughly equivalent to basic addition operator:
P::add(15, 27); // => 42

// But it is also has automatic partial application:
$addFour = P::add(4); // Create a new function
$addFour(5); // => 9
$addFour(16); // => 20


Placeholder arguments supported as well:


$div15 = P::divide(15); // Create a new function that uses 15 as dividend
$div15(3); // => 5

$_ = P::_(); // Create / retrieve a singleton placeholder object

$divBy5 = P::divide($_, 5); // Create a new function that uses 5 as divisor
$divBy5(20); // => 4


About 100 functions are available currently, including basic functional tools and functions for manipulating lists, collections, strings and objects. The functions are easily composable, allowing the creation of more complex functions and function pipelines. More examples can be found on GitHub or in the documentation.

Hopefully someone will find this useful. Any comments and questions are of course welcome -- here or on GitHub!
netherh
Profile Blog Joined November 2011
United Kingdom333 Posts
Last Edited: 2015-05-28 08:18:46
May 28 2015 08:10 GMT
#12710
On May 28 2015 01:43 Artesimo wrote:
The []-operator is even worse, I thought it would be easyer, but I fail at getting my map-layout to work/make it work at all.

std::map<std::pair<int, int>, int>

int MatrixElement::operator[](std::pair<int, int>)
{
//dont know how to make the function accept variables, since
// return map[int, int];
// return map[std::pair<int, int>];
// return map[std::make_pair(int int)]
// dont work.
}



It would be helpful to know what "don't work" means. What should this do? What does it actually do? (compiler error, crash, wrong behaviour?)

I'm guessing that you just want to wrap std::map's operator[]. In which case you'd want something like this:



int& MatrixElement::operator[](std::pair<int, int> const& key)
{
return map[key];
}



Returning an int& means that you can change the actual element inside the map. (e.g. matrixElement[{1, 2}] = 5;) If you return by value, you're copying the int. So you're not changing the actual map at all.


EDIT: for your hierarchy, try thinking about what functionality each level adds, and the interface it needs to provide to its users. It kinda sounds like you have [node [sparse matrix [matrix element] ] ], with no functionality added at each level. In which case I'd suggest merging them all into one SparseMatrix class.

If this isn't the case though, think about what you want to do with each level. Try writing some fake "user" code that uses each class's interface.
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
Last Edited: 2015-05-28 08:43:39
May 28 2015 08:38 GMT
#12711

UPDATE table SET column = column * 10
WHERE foreign_id < 123123



Error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM table WHERE foreign_id < 123123' at line 2


WTF? Stupid phpmyadmin.
Time is precious. Waste it wisely.
Kamari
Profile Joined August 2011
Sweden87 Posts
May 28 2015 13:44 GMT
#12712
Anyone that got a good tutorial/online reference on how a Red-black tree works? I can't wrap my head around when a node is supposed to change colour from red to black or vice versa. Also I don't really get why the root and nil leafs are black, or why that both the children of a red node are black, but a black node can have black child nodes.
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
Last Edited: 2015-05-28 17:00:20
May 28 2015 14:07 GMT
#12713
On May 28 2015 22:44 Kamari wrote:
Anyone that got a good tutorial/online reference on how a Red-black tree works? I can't wrap my head around when a node is supposed to change colour from red to black or vice versa. Also I don't really get why the root and nil leafs are black, or why that both the children of a red node are black, but a black node can have black child nodes.


A node(s) changes color when the structure is no longer a red-black tree (insertion or deletion). When you insert the node is always black. Then you need to check the path to the root to make sure the red-black structure is maintained, fixing the tree as you head up to the root. Deletions are a bit more complicated, but you can find an animation of them on youtube by searching red-black tree animation.

A black node can have black children because the structure wouldn't work otherwise. If you merely alternated then the red-black tree wouldn't mean anything. The root has to be black because a two node tree can't exist with a red root node. The null leaves being black just increases the entire trees black height by one so you can not worry about them at all if it confuses you. Just draw your tree without the null pointers.
I'll always be your shadow and veil your eyes from states of ain soph aur.
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
May 28 2015 15:33 GMT
#12714
On May 24 2015 02:33 Morfildur wrote:
Show nested quote +
On May 24 2015 01:56 darkness wrote:
What projects do you guys do outside university and work? Every time I have some time to code something, I don't have an idea for a personal project. I don't do programming exercises as they're boring, but I can't come up with something practical that I need to use/automate.


I'm developing the best PHP Framework that ever walked the tubes of the internet because I'm tired of the crappy PHP Frameworks that are available. I've tried most of them, basically all of the big ones, and all of them are just terrible, so I'm doing it right now with proper view models, hierarchical structure, full separation of views, controllers and models, not the pseudo-separation that all the frameworks seem to like, fully configurable, ...
Of course it's a long way away from perfection, especially considering that I'm currently in the third rewrite of almost the whole structure because I had a great idea that didn't fit into the existing structure.

Though... I think I spent more work time on it every time I was bored or finished a task faster than expected than actual time out of work.


Lol, everyone mentions they're making something better than the other and end quitting half way through because of the amount of time it requires. Have a git?
Life?
tofucake
Profile Blog Joined October 2009
Hyrule19210 Posts
May 28 2015 15:52 GMT
#12715
[image loading]
Liquipediaasante sana squash banana
Artesimo
Profile Joined February 2015
Germany572 Posts
May 28 2015 17:35 GMT
#12716
On May 28 2015 17:10 netherh wrote:

int& MatrixElement::operator[](std::pair<int, int> const& key)
{
return map[key];
}



Returning an int& means that you can change the actual element inside the map. (e.g. matrixElement[{1, 2}] = 5;) If you return by value, you're copying the int. So you're not changing the actual map at all.


EDIT: for your hierarchy, try thinking about what functionality each level adds, and the interface it needs to provide to its users. It kinda sounds like you have [node [sparse matrix [matrix element] ] ], with no functionality added at each level. In which case I'd suggest merging them all into one SparseMatrix class.

If this isn't the case though, think about what you want to do with each level. Try writing some fake "user" code that uses each class's interface.


Thank you for your help. For the hierarchy: I already figured out that I dont need that much classes, but my prof wants it that way, so I just have to deal with it.

For the []-operator, your solution isnt working for me somehow. From my tutor I got the hint that it would be good if the end result would work like
MatrixElement[x][y]=z
and
std::cout<<MatrixElement[x][y]

I figured out I might need another class, so I can overload the operator of MatrixElement and MyOtherClass. MatrixElement[x] then returns something that [y] can work with(like returning an object of MyOtherClass), since it seems impossible to overload [] so that it accepts multiple arguments on its own. For that, MyOtherClass needs access to MatirxElement's map, since it has to return the value for map[x,y].

So far I only managed to overload [] for matrixElement, working fine if I have a map with a single key. As soon as I add MyOtherClass to manage MatrixElement[x][y], I get horribly stuck and now I just have a huge mess of code where I dodnt even find my initial attempt in thorugh the sheer amount of code that I commented out because it wasnt working/I got an idea that I wanted to follow through after lol.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2015-05-28 20:51:56
May 28 2015 20:50 GMT
#12717
On May 29 2015 00:33 ShoCkeyy wrote:
Show nested quote +
On May 24 2015 02:33 Morfildur wrote:
On May 24 2015 01:56 darkness wrote:
What projects do you guys do outside university and work? Every time I have some time to code something, I don't have an idea for a personal project. I don't do programming exercises as they're boring, but I can't come up with something practical that I need to use/automate.


I'm developing the best PHP Framework that ever walked the tubes of the internet because I'm tired of the crappy PHP Frameworks that are available. I've tried most of them, basically all of the big ones, and all of them are just terrible, so I'm doing it right now with proper view models, hierarchical structure, full separation of views, controllers and models, not the pseudo-separation that all the frameworks seem to like, fully configurable, ...
Of course it's a long way away from perfection, especially considering that I'm currently in the third rewrite of almost the whole structure because I had a great idea that didn't fit into the existing structure.

Though... I think I spent more work time on it every time I was bored or finished a task faster than expected than actual time out of work.


Lol, everyone mentions they're making something better than the other and end quitting half way through because of the amount of time it requires. Have a git?


I have a .tgz of the project I've started a few days ago and spent maybe an hour on here. The git archive is protected by ssh keys on my private server and I can't be bothered setting up public access.

I haven't completely quit yet. I'm currently using it for the third application to see how it works for that use case (Basic weapon review/voting website for Planetside 2) and finding some more things to tweak a bit here and there. Previously I used it for a webbased game I abandoned and the Planetside 2 outfit (guild) forum.

I'm not too happy about the Domain Models (e.g. Application/PS2Weapons/Domain/Model/Vote.php) atm since the auto-generation I used beforehand just wasn't flexible enough, so I'm now writing them by hand again. They are very simple because I have everything in stored procedures in the MySQL backend, e.g. creating a forum post is just $dbh->prepare("CALL AddPost(:user_id, :thread_id, :content)") though I still think I could simplify them more. However, every time I make them flexible the description of the domain model ends up being just as big and tedious as writing the actual model itself.

Once I've decided on that, I need to clean up the directory structure, move Twig out of the Framework directory, remove some old application specific data out of that folder as well (Markdown) and all of that. After that it's time to clean up the bootstrap and make the services dynamic instead of using a fixed list of services and all of that, make the databases dynamically created on use rather fixed at the start, ...

I also haven't upgraded the user model to the newest structure where most of the controllers are no longer necessary and instead replaced by a configuration-based combination of generic controllers, views and viewmodels.

Oh, and I broke caching and removed it instead of fixing it until I have the rest done. It's fast enough anyways.

Some basic rules I use:
- static is evil and only used where absolutely necessary. I have one place where I still use static, which I want to get rid off but haven't yet gotten around to.
- All data handling should be done inside the database itself, including joins and such that are only exposed via views while data manipulation is only allowed through stored procedures. Every query that might be slow will be sped up by using trigger or SQL procedure based denormalization to remove on-the-fly calculations (e.g. number of votes is increased inside the AddVote() SQL Procedure).
- As much as possible should be done at deploy (compile) time, that means all javascripts get compiled into one, the module configurations get parsed and created for the environment (dev/stage/live), so reading the actual configuration is done directly without any application logic to figure out which environment we're in.

So much to do, so little time and so many more ideas...

It's a living project and still very messy, but every time I'm bored at work, it gets a little bit better (or a little more broken). It's still fun working on it even though I will be the only one to ever use it.
netherh
Profile Blog Joined November 2011
United Kingdom333 Posts
Last Edited: 2015-05-29 02:06:46
May 29 2015 02:04 GMT
#12718
On May 29 2015 02:35 Artesimo wrote:
I figured out I might need another class, so I can overload the operator of MatrixElement and MyOtherClass. MatrixElement[x] then returns something that [y] can work with(like returning an object of MyOtherClass), since it seems impossible to overload [] so that it accepts multiple arguments on its own. For that, MyOtherClass needs access to MatirxElement's map, since it has to return the value for map[x,y].

So far I only managed to overload [] for matrixElement, working fine if I have a map with a single key. As soon as I add MyOtherClass to manage MatrixElement[x][y], I get horribly stuck and now I just have a huge mess of code where I dodnt even find my initial attempt in thorugh the sheer amount of code that I commented out because it wasnt working/I got an idea that I wanted to follow through after lol.


Yeah. You're on the right track.

You either have to go for [x][y], which means returning a proxy class, or (what I'd recommend) provide an access function with a different name (.get(x, y) or perhaps better .getOrDefault(x, y)). (Some people might overload operator()(x, y), but I think this is less clear).

If you do go for the proxy class, you'd need something like:



struct Proxy
{
explicit Proxy(MatrixElement& element, int x): element(element), x(x) { }

int& operator[](int y)
{
return element.map[std::make_pair(x, y)];
}

private:
MatrixElement& element;
int x;
};

Proxy MatrixElement::operator[](int x)
{
return Proxy(*this, x);
}



Proxy will need to be a friend of MatrixElement (or use a .getOrDefault(x, y) member of MatrixElement itself). You'd also need a separate proxy object for const access.

So... it's much simpler and clearer to just provide access using a different function than operator[]. And you can name it something more helpful too.
Hryul
Profile Blog Joined March 2011
Austria2609 Posts
May 29 2015 16:31 GMT
#12719
I have been hired by a consultant company as "junior consultant". This work will mostly consist of delivering code/programs to Banks/insurances etc. They told me most of it will be in a "object oriented language" like C++ or Java.

I'm a physicist and last time I programmed was in C (and Root, but better not speak of that), mostly simulation stuff, but nothing "big"

Since they have already told me that I will require to use multiple languages I'm unsure what I should concentrate on:
C would build foundations and I already have experience with it, the other two are closer to the actual work.

What would you learn and which books would you recommend? (would they be the same if you had just one month?)

PS: I'm absolutely aware that one month isn't enough to make me a programmer.
Countdown to victory: 1 200!
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
Last Edited: 2015-05-29 17:01:42
May 29 2015 16:51 GMT
#12720
If there's a focus on OOP then you definitely should start learning an OOP language. C++ is hard (as in: you need a very precise understanding of what you are doing and a lot of discipline to do things properly); one month most likely isn't enough for you to become solid at it. But Java has its own share of problems, so pick your poison.

Also if you pick C++, definitely use books to learn. The internet is full of really awful C++ guides. I personally like Stroustrup's "The C++ Programming Language", but I didn't read other books on C++ specifically (I fell into the internet guide trap and dug myself out the hard way). In my opinion one of the most important things to understand in C++ is RAII (resource allocation is initialization), which is a structured approach to memory management. Once you understand and apply RAII properly the majority of your memory management issues will go away. The next important thing is the standard library.

I'd guess you're better off if you focus on one of the two languages. And upon further consideration I'd tend towards suggesting Java. But I have no idea which one would be more important in your actual case.
If you have a good reason to disagree with the above, please tell me. Thank you.
Prev 1 634 635 636 637 638 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 20m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Serral 3901
RotterdaM 278
TKL 124
StarCraft: Brood War
Britney 43302
Bisu 2169
EffOrt 906
Larva 558
firebathero 550
Hyuk 500
Stork 476
ggaemo 416
Mini 352
BeSt 304
[ Show more ]
actioN 267
ZerO 218
Soulkey 209
hero 185
Killer 177
Rush 167
Hyun 90
Pusan 82
Dewaltoss 75
Zeus 57
Sharp 57
Barracks 55
Backho 54
Sea.KH 48
ToSsGirL 32
soO 27
sorry 22
HiyA 20
Shine 19
scan(afreeca) 18
Rock 16
IntoTheRainbow 15
Terrorterran 13
GoRush 13
ajuk12(nOOB) 10
Noble 9
Sacsri 8
Dota 2
Gorgc4800
qojqva1982
syndereN480
monkeys_forever184
Counter-Strike
fl0m359
Heroes of the Storm
MindelVK1
Other Games
singsing2065
B2W.Neo1104
hiko838
Liquid`RaSZi758
FrodaN643
Beastyqt511
Lowko348
DeMusliM347
ceh9278
ArmadaUGS177
KnowMe176
Mew2King93
QueenE65
Trikslyr31
ZerO(Twitch)15
fpsfer 1
Organizations
Other Games
gamesdonequick1686
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• poizon28 25
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 20
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis3584
• TFBlade939
Other Games
• Shiphtur163
Upcoming Events
Big Brain Bouts
20m
Fjant vs Bly
Serral vs Shameless
OSC
6h 20m
The PiG Daily
7h 20m
Maru vs Rogue
TBD vs Classic
herO vs Solar
ByuN vs Solar
Replay Cast
8h 20m
CranKy Ducklings
18h 20m
RSL Revival
18h 20m
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
19h 20m
Krystianer vs TriGGeR
Cure vs Rogue
SC Evo League
21h 20m
uThermal 2v2 Circuit
23h 20m
BSL
1d 3h
Artosis vs TerrOr
spx vs StRyKeR
[ Show More ]
Replay Cast
1d 8h
Sparkling Tuna Cup
1d 18h
RSL Revival
1d 18h
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
1d 19h
BSL
2 days
Dewalt vs DragOn
Aether vs Jimin
GSL
2 days
Afreeca Starleague
2 days
Soma vs Leta
Wardi Open
2 days
Monday Night Weeklies
3 days
OSC
3 days
CranKy Ducklings
3 days
Afreeca Starleague
3 days
Light vs Flash
Replay Cast
4 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2026-05-05
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
Escore Tournament S2: W6
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

KK 2v2 League Season 1
BSL 22 Non-Korean Championship
YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.