• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:52
CEST 11:52
KST 18:52
  • 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
Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview5[ASL21] Finals Preview: Two Legacies21
Community News
Weekly Cups (June 8-14): Clem and Solar double, PTR tested0RSL: S6 Finals played at BlizzCon 20269Douyu Cup 2026: $20,000 Legends Event (June 26-28)10[BSL22] Non-Korean Championship from 13 to 28 June4Weekly Cups (May 25-31): Clem doubles, 2v2 circuit heads toward finale0
StarCraft 2
General
RSL: S6 Finals played at BlizzCon 2026 TL Poll: How do you feel about the 5.0.16 PTR balance changes? Weekly Cups (June 8-14): Clem and Solar double, PTR tested Team Liquid Map Contest #22: Results and Winners High level ptr replays? where can I find them?
Tourneys
Douyu Cup 2026: $20,000 Legends Event (June 26-28) Maestros of The Game 2 announcement and schedule ! Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) GSL Code S Season 2 (2026)
Strategy
[G] Having the right mentality to improve
Custom Maps
[D]RTS in all its shapes and glory <3
External Content
Mutation # 530 One For All The PondCast: SC2 News & Results Mutation # 529 Opportunities Unleashed Mutation # 528 Infection Detected
Brood War
General
Where is EffOrt? BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ vespene.gg — BW replays in browser Quality of life changes in BW that you will like ?
Tourneys
[Megathread] Daily Proleagues [ASL21] Grand Finals [BSL22] Grand Finals - Sunday 21:00 CEST Escore Tournament StarCraft Season 2
Strategy
Relatively freeroll strategies Creating a full chart of Zerg builds Why doesn't anyone use restoration? Any training maps people recommend?
Other Games
General Games
ZeroSpace Megathread Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread PC Games Sales Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
Vanilla Mini Mafia
Community
General
UK Politics Mega-thread US Politics Mega-thread Russo-Ukrainian War Thread Trading/Investing Thread Canadian Politics Mega-thread
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion [Manga] One Piece
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion Cricket [SPORT] NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
Does Workplace Frustration D…
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
Why RTS gamers make better f…
gosubay
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10255 users

The Big Programming Thread - Page 125

Forum Index > General Forum
Post a Reply
Prev 1 123 124 125 126 127 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.
Yiko
Profile Joined August 2010
Germany104 Posts
March 14 2012 13:04 GMT
#2481
On March 14 2012 20:12 supereddie wrote:
Show nested quote +
On March 14 2012 16:27 Yiko wrote:
On March 14 2012 04:21 supereddie wrote:
Why not use just normal javascript? Can't be that hard to create a toggle function...


You are right, it really isn't. But why would you not use a library that makes that even easier, produces easy to understand code and specialises in element selection and manipulation, which is exactly what was wanted in the first place? I have to admit, i often use JQuery even in places where plain JavaScript would easily suffice, because it is just so powerful and convenient.

I don't know... I think JQuery promotes lazyness and sloppy markup (much like PHP), especially for beginners, by not properly introducing DOM and html/css/javascript. Not knowing the right element to use in your markup is a sign to this.
...
Second, for a structured layout, the .bbspoiler DIV should be inside the element that has the onclick event so everything is nicely grouped together. In addition, one might also move the 'Show Spoiler' text into the grouped div.


I would not go as far as saying that it actively promotes laziness, but it definitely allows for it so i can see your point. Sloppy markup on the other hand is imho completly unrelated to JQuery/not JQuery. It comes down to the experience of the developer and his knowledge of html/css/the dom. Neither pure javascript nor jquery force you to create well structured documents with correct markup decisions. I have seen equally horrid stuff created in relation to pure js as with jquery.

I have to disagree with your second point though, putting the spoiler-content within the area that has the onClick handler attached would imho create a strange usability. Clicking the content should not hide it again, that is what the "handle" is for. This would make stuff like selecting text within the spoiler, or clicking a link uncomfortable because the content would disappear again. But thats just nitpicking or maybe personal preference

Enough derailing!
MaV_gGSC
Profile Blog Joined November 2010
Canada1345 Posts
Last Edited: 2012-03-14 15:53:59
March 14 2012 15:53 GMT
#2482
Why do I always read programming as progaming...

First. World. Problems.
Life's good :D
dUTtrOACh
Profile Joined December 2010
Canada2339 Posts
March 14 2012 16:00 GMT
#2483
On March 15 2012 00:53 MaV_gGSC wrote:
Why do I always read programming as progaming...

First. World. Problems.


Strange. I'm affected by the same phenomenon, only the inverse.
twitch.tv/duttroach
tofucake
Profile Blog Joined October 2009
Hyrule19221 Posts
March 14 2012 18:05 GMT
#2484
The worst is when someone is afflicted by both and refers to both as "programing"
Liquipediaasante sana squash banana
tec27
Profile Blog Joined June 2004
United States3702 Posts
March 15 2012 01:25 GMT
#2485
On March 14 2012 20:12 supereddie wrote:
Show nested quote +
On March 14 2012 16:27 Yiko wrote:
On March 14 2012 04:21 supereddie wrote:
Why not use just normal javascript? Can't be that hard to create a toggle function...


You are right, it really isn't. But why would you not use a library that makes that even easier, produces easy to understand code and specialises in element selection and manipulation, which is exactly what was wanted in the first place? I have to admit, i often use JQuery even in places where plain JavaScript would easily suffice, because it is just so powerful and convenient.

I don't know... I think JQuery promotes lazyness and sloppy markup (much like PHP), especially for beginners, by not properly introducing DOM and html/css/javascript. Not knowing the right element to use in your markup is a sign to this.

Take Kentor's markup:
<a href='#' class='spoiler monospace' title='asdf'>+ Show Spoiler [asdf] +</a>
<div class='bbspoiler'>test</div>

This is 'wrong' on a few levels. Firstly, the A shouldn't be an A. It should either be a SPAN, or a DIV. An A is used to redirect to a different page or to an anchor on the same page. Both of these are not used here - instead the A is used only for the onclick event, for which you can easliy use the more appropiate elements. Whenever you find yourself setting the href attribute to "#" and attaching an onclick event, consider using a SPAN or DIV element instead.

Second, for a structured layout, the .bbspoiler DIV should be inside the element that has the onclick event so everything is nicely grouped together. In addition, one might also move the 'Show Spoiler' text into the grouped div.

Here's my version (I had a few spare minutes):
+ Show Spoiler +

<html>
<head>
<title>Toggle</title>
<style>
.spoiler{ background-color: white; width: 600px; }
.spoiler:hover{ cursor: pointer; }
.spoiler > span {color:grey;}
.spoiler > div { border: 1px solid black; display: none; margin: 0 10px 10px 10px; }
</style>
<script type="text/javascript">
function toggle(element)
{
d = element.getElementsByTagName('div')[0];
s = element.getElementsByTagName('span')[0];
title = element.getAttribute('title');
text = "Spoiler ";
if(title !== null)
text += "[" + title + "]";

if(d.style.display === 'block')
{
s.childNodes[0].nodeValue = '+ Show ' + text + ' +';
d.style.display = 'none';
}
else
{
s.childNodes[0].nodeValue = '- Hide ' + text + ' -' ;
d.style.display = 'block';
}
}
</script>
</head>

<body>
<div class='spoiler' title='asdf' onclick="toggle(this)">
<span>+ Show Spoiler [asdf] +</span>
<div>test asdjdsf sdf df </div>
</div>
</body>
</html>



The A elements *should* be A elements. Spans and divs are not interactive content, and not focusable (without ARIA-attributes, anyway), so they should not be used as such. Your code is not at all accessible to people who don't use a mouse to browse, such as people who use keyboard-only or use a screenreader.

From the list interactive content elements here you'll notice that the only other acceptable type for this usage would be a button. Since this is designed to be just text, however, an A tag makes far more sense.

I agree about moving it into a grouped div ($.next() is a maintenance problem waiting to happen), but I find it absolutely hilarious that you bitched about jQuery making people lazy and sloppy and then use the onclick attribute. Seriously?
Can you jam with the console cowboys in cyberspace?
berated-
Profile Blog Joined February 2007
United States1134 Posts
Last Edited: 2012-03-15 01:43:26
March 15 2012 01:26 GMT
#2486
On March 14 2012 22:04 Yiko wrote:
Show nested quote +
On March 14 2012 20:12 supereddie wrote:
On March 14 2012 16:27 Yiko wrote:
On March 14 2012 04:21 supereddie wrote:
Why not use just normal javascript? Can't be that hard to create a toggle function...


You are right, it really isn't. But why would you not use a library that makes that even easier, produces easy to understand code and specialises in element selection and manipulation, which is exactly what was wanted in the first place? I have to admit, i often use JQuery even in places where plain JavaScript would easily suffice, because it is just so powerful and convenient.

I don't know... I think JQuery promotes lazyness and sloppy markup (much like PHP), especially for beginners, by not properly introducing DOM and html/css/javascript. Not knowing the right element to use in your markup is a sign to this.
...
Second, for a structured layout, the .bbspoiler DIV should be inside the element that has the onclick event so everything is nicely grouped together. In addition, one might also move the 'Show Spoiler' text into the grouped div.


I would not go as far as saying that it actively promotes laziness, but it definitely allows for it so i can see your point. Sloppy markup on the other hand is imho completly unrelated to JQuery/not JQuery. It comes down to the experience of the developer and his knowledge of html/css/the dom. Neither pure javascript nor jquery force you to create well structured documents with correct markup decisions. I have seen equally horrid stuff created in relation to pure js as with jquery.

I have to disagree with your second point though, putting the spoiler-content within the area that has the onClick handler attached would imho create a strange usability. Clicking the content should not hide it again, that is what the "handle" is for. This would make stuff like selecting text within the spoiler, or clicking a link uncomfortable because the content would disappear again. But thats just nitpicking or maybe personal preference

Enough derailing!


I'm not very good at listening, so I'm going to take over the derailment.

Making a statement that jquery (and php) promote laziness is an extremely bold move. Laziness is on the developer, not on the language or library. The tool you are using provides you with the ability to accomplish your tasks, if you choose not to dive into the tool to gather a better understanding, is that really the tools fault? I certainly don't think so.

I still believe you are overlooking a key factor to the decision to use jQuery. Cross browser support is a pain in the ass. While I admit that web standards are making things easier to deal with, why reinvent the wheel? The jQuery team has spent countless hours and has large community support to make sure that their javascript works in as many of the supported browsers possible.

Maybe I've been using open source software too long, but I give a huge +1 to any developer choosing to write as little code as possible to complete their task while gaining as much benefit from others work as possible.
heroyi
Profile Blog Joined March 2009
United States1064 Posts
Last Edited: 2012-03-15 03:38:04
March 15 2012 03:27 GMT
#2487
I can't do this...I have been trying to look up for help but i cant find it (been trying for 2 days so maybe someone else can help me).

side note: I am still new to this and learning c++. I know some stuff (like functions, loops, arrays etc...) xD

Anyway I am trying to create a tic tac toe with visual c++ but I need help creating the board and trying to write something that would help tell the computer to put an "x" or an "o" at w.e square space the user wants to do AND show/re-draw the updated board with the new move. I have tried various things but i don't understand it...

http://www.dreamincode.net/forums/topic/135129-the-tic-tac-toe-program/
^^I have studied the code for awhile but considering its C language there are somethings in there i dont understand (like how the person is able to printf the board and yet somehow associate the board space to a specific array coordinate, which is shown near the end). I dont need help on how to figure out the winner or getting the input from the player. I was wondering if someone could show me/help me figure out how to create and initialize the board (I would also like an explanation behind the mechanic/process).

edit: I have created text based D&D game. Tic tac is way harder to create :/ although I have a feeling that my incomplete knowledge of c++ is hinduring me from creating something so simple
wat wat in my pants
ScruffyJanitor
Profile Blog Joined November 2011
Australia108 Posts
March 15 2012 03:53 GMT
#2488
This may or may not have already been asked but Im at work and need to make this quick before Im found out!! Do you have to be really amazing at maths? Math was never my strong point but Ive been interested in programming.
heroyi
Profile Blog Joined March 2009
United States1064 Posts
March 15 2012 04:06 GMT
#2489
On March 15 2012 12:53 ScruffyJanitor wrote:
This may or may not have already been asked but Im at work and need to make this quick before Im found out!! Do you have to be really amazing at maths? Math was never my strong point but Ive been interested in programming.

no not really just simple arithmetic and maybe some statistics. You just need to be logical and have some form of critical thinking (innovative helps too).
wat wat in my pants
Gogleion
Profile Blog Joined June 2009
United States534 Posts
March 15 2012 04:11 GMT
#2490
On March 15 2012 12:53 ScruffyJanitor wrote:
This may or may not have already been asked but Im at work and need to make this quick before Im found out!! Do you have to be really amazing at maths? Math was never my strong point but Ive been interested in programming.

Programming isn't heavy on math computation, but it uses a lot of problem solving skills that are very important to math.
EffOrt. That is all.
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
March 15 2012 04:46 GMT
#2491
On March 15 2012 12:53 ScruffyJanitor wrote:
This may or may not have already been asked but Im at work and need to make this quick before Im found out!! Do you have to be really amazing at maths? Math was never my strong point but Ive been interested in programming.

Nah, but game programming certainly requires a whole lot of math.
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
March 15 2012 09:42 GMT
#2492
it really depends on what kind of math you are talking about. Strictly speaking, all that programming syntax grammar, all that condition logic, all your variables, all your algorithms and termination proofs and runtime complexity analyses, your whole program is nothing but discrete math. But i can understand people not considering that to be real math. The beefy stuff like differential equations, limes, solving equation systems and whatnot are not needed very often, and if you do need them you have to look up how to handle that stuff anyways.

The discrete math and logic stuff you have to know though. That's not something you can look up every time.
Gold isn't everything in life... you need wood, too!
Herper
Profile Joined January 2011
501 Posts
March 15 2012 09:55 GMT
#2493
On March 15 2012 12:53 ScruffyJanitor wrote:
This may or may not have already been asked but Im at work and need to make this quick before Im found out!! Do you have to be really amazing at maths? Math was never my strong point but Ive been interested in programming.


Most you would need on enterprise level would be High School maths.
Game programming and physics simulation would require more advance level of maths tho
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
March 15 2012 10:42 GMT
#2494
On March 15 2012 18:55 Herper wrote:
Show nested quote +
On March 15 2012 12:53 ScruffyJanitor wrote:
This may or may not have already been asked but Im at work and need to make this quick before Im found out!! Do you have to be really amazing at maths? Math was never my strong point but Ive been interested in programming.


Most you would need on enterprise level would be High School maths.
Game programming and physics simulation would require more advance level of maths tho

This. I'm terrible at math and I work fulltime as a programmer. When making games etc, you need to be able to work with vectors etc and math helps out a ton, but for making standard applications used by companies, apps for mobile phones etc, you basically need zero math... Most libraries already have all the algoritms etc you need built in, you don't need to worry about that stuff.
Manit0u
Profile Blog Joined August 2004
Poland17766 Posts
Last Edited: 2012-03-15 10:55:42
March 15 2012 10:52 GMT
#2495
Guys, it's been years since I touched Java, could you tell me if that even makes sense?


interface Shipyard {
String returnShipClass (String _shipClass);
int[] returnShipEngineStats (int _shipSpeed, int _shipTurnRate, int _shipSignatureRadius);
int[] retrunShipHullStats (int _shipStructure, int _shipShields, int _shipArmour);
int[][] returnShipImperialCapitalHullStats (int _shipStructure, int _shipShields, int[] _shipImperialCapitalArmour);
}

abstract class ShipConstructor implements Shipyard {
private String shipClass;
private int shipStructure;
private int shipShields;
private int shipSpeed;
private int shipSignatureRadius;
private int shipTurnRate;
private int shipArmour;
private int[] shipImperialCapitalArmour = new int[2];
private int[] shipEngineStats = new int[3];
private int[] shipHullStats = new int[3];
private int[][] shipImperialCapitalHullStats = new int[2][2];

public String returnShipClass (String _shipClass) {
shipClass = _shipClass;

return shipClass;
}

public int[] returnShipEngineStats (int _shipSpeed, int _shipTurnRate, int _shipSignatureRadius) {
shipSpeed = _shipSpeed;
shipTurnRate = _shipTurnRate;
shipSignatureRadius = _shipSignatureRadius;

shipEngineStats[0] = shipSpeed;
shipEngineStats[1] = shipTurnRate;
shipEngineStats[2] = shipSignatureRadius;

return shipEngineStats;
}

public int[] returnShipHullStats (int _shipStructure, int _shipShields, int _shipArmour) {
shipStructure = _shipStructure;
shipShields = _shipShields;
shipArmour = _shipArmour;

shipHullStats[0] = shipStructure;
shipHullStats[1] = shipShields;
shipHullStats[2] = shipArmour;

return shipHullStats;
}

public int[][] returnShipImperialCapitalHullStats (int _shipStructure, int _shipShields, int[] _shipImperialCapitalArmour) {
shipStructure = _shipStructure;
shipShields = _shipShields;

shipImperialCapitalArmour[0] = _shipImperialCapitalArmour[0];
shipImperialCapitalArmour[1] = _shipImperialCapitalArmour[1];

shipImperialCapitalHullStats[0][0] = shipStructure;
shipImperialCapitalHullStats[0][1] = shipShields;
shipImperialCapitalHullStats[1][0] = shipImperialCapitalArmour[0];
shipImperialCapitalHullStats[1][1] = shipImperialCapitalArmour[1];

return shipImperialCapitalHullStats;
}
}
Time is precious. Waste it wisely.
fonger
Profile Blog Joined March 2006
United Kingdom1218 Posts
Last Edited: 2012-03-15 11:30:04
March 15 2012 11:17 GMT
#2496
On March 15 2012 19:52 Manit0u wrote:
Guys, it's been years since I touched Java, could you tell me if that even makes sense?


interface Shipyard {
String returnShipClass (String _shipClass);
int[] returnShipEngineStats (int _shipSpeed, int _shipTurnRate, int _shipSignatureRadius);
int[] retrunShipHullStats (int _shipStructure, int _shipShields, int _shipArmour);
int[][] returnShipImperialCapitalHullStats (int _shipStructure, int _shipShields, int[] _shipImperialCapitalArmour);
}

abstract class ShipConstructor implements Shipyard {
private String shipClass;
private int shipStructure;
private int shipShields;
private int shipSpeed;
private int shipSignatureRadius;
private int shipTurnRate;
private int shipArmour;
private int[] shipImperialCapitalArmour = new int[2];
private int[] shipEngineStats = new int[3];
private int[] shipHullStats = new int[3];
private int[][] shipImperialCapitalHullStats = new int[2][2];

public String returnShipClass (String _shipClass) {
shipClass = _shipClass;

return shipClass;
}

public int[] returnShipEngineStats (int _shipSpeed, int _shipTurnRate, int _shipSignatureRadius) {
shipSpeed = _shipSpeed;
shipTurnRate = _shipTurnRate;
shipSignatureRadius = _shipSignatureRadius;

shipEngineStats[0] = shipSpeed;
shipEngineStats[1] = shipTurnRate;
shipEngineStats[2] = shipSignatureRadius;

return shipEngineStats;
}

public int[] returnShipHullStats (int _shipStructure, int _shipShields, int _shipArmour) {
shipStructure = _shipStructure;
shipShields = _shipShields;
shipArmour = _shipArmour;

shipHullStats[0] = shipStructure;
shipHullStats[1] = shipShields;
shipHullStats[2] = shipArmour;

return shipHullStats;
}

public int[][] returnShipImperialCapitalHullStats (int _shipStructure, int _shipShields, int[] _shipImperialCapitalArmour) {
shipStructure = _shipStructure;
shipShields = _shipShields;

shipImperialCapitalArmour[0] = _shipImperialCapitalArmour[0];
shipImperialCapitalArmour[1] = _shipImperialCapitalArmour[1];

shipImperialCapitalHullStats[0][0] = shipStructure;
shipImperialCapitalHullStats[0][1] = shipShields;
shipImperialCapitalHullStats[1][0] = shipImperialCapitalArmour[0];
shipImperialCapitalHullStats[1][1] = shipImperialCapitalArmour[1];

return shipImperialCapitalHullStats;
}
}

Not really. The "return" functions seem to have the responsibility to both obfuscate, store and return values. All the arrays also seem to be completely useless/redundant and included just for the hell of it. Basically the code does absolutely nothing.

EDIT: to clarify, try picking one line from that block that expresses some logic or performs some useful operation

EDIT2: nodeJS and AngularJS are the coolest new kids on the block and will be the next big things Angular's performance is a bit iffy on mobile devices though...

EDIT3: i said "both" for three things; dumass poppet
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
March 15 2012 11:20 GMT
#2497
looks like you are abusing arrays because you are too lazy to make a proper classes and only works because you are lucky enough not to use any types besides int yet.

also, for conventions sake: call methods getX for simple getters, maybe calculateX for calculation intensive getters. but you shouldn't call them returnX, because that's rather painful to read.
Gold isn't everything in life... you need wood, too!
fonger
Profile Blog Joined March 2006
United Kingdom1218 Posts
March 15 2012 11:27 GMT
#2498
MONGOOOOOOOOOODB - thoughts?
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
Last Edited: 2012-03-15 11:34:23
March 15 2012 11:34 GMT
#2499
On March 15 2012 20:27 fonger wrote:
MONGOOOOOOOOOODB - thoughts?


funny thing, but clustering functionality is (was when i looked at it last about a year ago) horribly to control through client applications because of lacking support through the various language drivers (at least java). If you want to manage a mongodb instance as an in-application database you'll have to pipe it a ton, not fun. But well, that's not really what it was designed for. Haven't used it in it's primary use case as manually set up database for some clustered web application.

Oh and also, when using from java, the lack of a proper object<->document mapping (like hibernate for o/r mapping) is a bit ugly, next time i take a shot at it i'd definitely try to see if i can marshall my objects through gson and just write them in string form to the driver, rather than trying to build a marshaller of my own that uses the java drivers DBObject api directly :X such a stupid idea
Gold isn't everything in life... you need wood, too!
Manit0u
Profile Blog Joined August 2004
Poland17766 Posts
March 15 2012 11:35 GMT
#2500
From what I read about design in Java, you should avoid getters and setters at all costs. Just like you should avoid extends.

Anyway, what I'm trying to do here is the C equivalent of Struct for simple data storage which would communicate with other classes through interface. But like I said, it's been years since I did any Java and recently I was mostly doing structural programming so going into OO might take me some time to getting used to.
Time is precious. Waste it wisely.
Prev 1 123 124 125 126 127 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 8m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
deth 3
StarCraft: Brood War
Britney 34182
Calm 6304
Sea 3417
Soma 329
firebathero 291
Larva 204
Dewaltoss 189
Nal_rA 132
Zeus 117
Mind 73
[ Show more ]
Pusan 62
sorry 44
hero 32
EffOrt 20
yabsab 16
Bale 15
soO 13
Sharp 13
Noble 12
GoRush 11
Light 0
Dota 2
Fuzer 115
League of Legends
JimRising 387
Counter-Strike
olofmeister1471
shoxiejesuss823
markeloff34
Super Smash Bros
Mew2King107
Westballz33
Heroes of the Storm
Trikslyr56
Other Games
Liquid`RaSZi615
Sick220
trigger6
Organizations
Dota 2
PGL Dota 2 - Secondary Stream2284
Other Games
gamesdonequick618
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH245
• LUISG 26
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 7
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1917
Upcoming Events
WardiTV Spring Champion…
1h 8m
PiGosaur Cup
14h 8m
Replay Cast
23h 8m
The PondCast
2 days
OSC
2 days
CranKy Ducklings
3 days
GSL
4 days
Maru vs ShoWTimE
Classic vs Reynor
herO vs Lambo
Solar vs Clem
BSL22 NKC (BSL vs China)
4 days
XuanXuan vs Jaystar
Mihu vs Messiah
eOnzErG vs Dewalt
Bonyth vs Jaystar
TerrOr vs Messiah
XuanXuan vs Mihu
eOnzErG vs Jaystar
Replay Cast
4 days
GSL
5 days
[ Show More ]
Patches Events
5 days
BSL22 NKC (BSL vs China)
5 days
Dewalt vs Messiah
Bonyth vs Mihu
TerrOr vs XuanXuan
eOnzErG vs Messiah
Jaystar vs Mihu
Dewalt vs XuanXuan
Bonyth vs TerrOr
Replay Cast
5 days
WardiTV Weekly
6 days
Liquipedia Results

Completed

Proleague 2026-06-15
uThermal 2v2 2026 Main Event
Heroes Pulsing #1

Ongoing

IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
CSCL: Masked Kings S4
YSL S3
BSL 22 Non-Korean Championship
SCTL 2026 Spring
Maestros of the Game 2
WardiTV Spring 2026
Murky Cup 2026
Heroes Pulsing #2
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1

Upcoming

CSL 2026 Summer (S21)
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
Douyu Cup 2026
BCC 2026
Heroes Pulsing #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 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.