• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:54
CEST 03:54
KST 10:54
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy2GSL CK: More events planned pending crowdfunding3Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
Quebec Clan still alive ? BGE Stara Zagora 2026 cancelled Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info
Tourneys
GSL CK: More events planned pending crowdfunding $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
ASL21 General Discussion so ive been playing broodwar for a week straight. BW General Discussion Gypsy to Korea Pros React To: JaeDong vs Queen
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro24 Group F [BSL22] RO32 Group B - Sunday 21:00 CEST
Strategy
Fighting Spirit mining rates Muta micro map competition What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Starcraft Tabletop Miniature Game Nintendo Switch Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The China Politics Thread European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
StarCraft improvement
iopq
Electronics
mantequilla
Any Web Designers Out there?…
sob3k
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2544 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
Hyrule19202 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
Poland17719 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
Poland17719 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
The PiG Daily
20:15
Best Games of SC
Rogue vs TriGGeR
Maru vs MaxPax
Rogue vs herO
Clem vs herO
Rogue vs Maru
PiGStarcraft565
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft555
WinterStarcraft250
RuFF_SC2 172
PattyMac 29
ROOTCatZ 19
StarCraft: Brood War
NaDa 45
Dota 2
canceldota352
capcasts232
NeuroSwarm65
LuMiX0
Counter-Strike
taco 630
C9.Mang0305
Super Smash Bros
hungrybox541
Other Games
gofns27140
summit1g13247
JimRising 290
Maynarde105
ViBE98
Hui .96
PPMD36
Mew2King20
minikerr11
Organizations
Other Games
gamesdonequick995
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• RyuSc2 47
• EnkiAlexander 17
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 40
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4567
Upcoming Events
CranKy Ducklings
8h 6m
WardiTV Team League
9h 6m
uThermal 2v2 Circuit
13h 6m
IPSL
14h 6m
Hawk vs TBD
StRyKeR vs TBD
BSL
17h 6m
n0maD vs perroflaco
TerrOr vs ZZZero
MadiNho vs WolFix
DragOn vs LancerX
Sparkling Tuna Cup
1d 8h
WardiTV Team League
1d 9h
OSC
1d 11h
BSL
1d 17h
Sterling vs Azhi_Dahaki
Napoleon vs Mazur
Jimin vs Nesh
spx vs Strudel
IPSL
1d 17h
Artosis vs TBD
Napoleon vs TBD
[ Show More ]
Replay Cast
2 days
Wardi Open
2 days
Afreeca Starleague
2 days
Soma vs YSC
Sharp vs sSak
Afreeca Starleague
3 days
Snow vs PianO
hero vs Rain
GSL
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
The PondCast
5 days
Escore
6 days
Liquipedia Results

Completed

Escore Tournament S2: W2
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026

Upcoming

Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
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
CCT Season 3 Global Finals
IEM Rio 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.