• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:21
CEST 16:21
KST 23:21
  • 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 - RO12 Group A: Rogue, Percival, Solar, Zoun3[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists19[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
2026 GSL Season 1 Qualifiers24Maestros of the Game 2 announced92026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid25
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid Maestros of the Game 2 announced
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament INu's Battles#14 <BO.9 2Matches> GSL CK: More events planned pending crowdfunding RSL Revival: Season 5 - Qualifiers and Main Event
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 # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
[ASL21] Ro8 Preview Pt1: Inheritors ASL21 General Discussion BW General Discussion Leta's ASL S21 Ro.16 review BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL21] Ro8 Day 2 [ASL21] Ro8 Day 1 [Megathread] Daily Proleagues [ASL21] Ro16 Group D
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Diablo IV Total Annihilation Server - TAForever
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
US Politics Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion European Politico-economics QA Mega-thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2072 users

The Big Programming Thread - Page 421

Forum Index > General Forum
Post a Reply
Prev 1 419 420 421 422 423 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.
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
Last Edited: 2014-01-06 08:33:14
January 06 2014 08:31 GMT
#8401
im currently studying for a certification exam thru http://www.microsoftvirtualacademy.com/. i think its free. they have courses that integrates html5,css3 and javascript.

specifically this http://www.microsoftvirtualacademy.com/training-courses/learn-html5-with-javascript-css3-jumpstart-training
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
fezvez
Profile Blog Joined January 2011
France3021 Posts
January 06 2014 09:06 GMT
#8402
On January 04 2014 20:36 klo8 wrote:
Show nested quote +
On January 04 2014 08:28 Zocat wrote:
You were free to use the Express versions of Visual Studio. If you require one of the features which isnt available in the Express version it's highly likely that you dont write small projects. So you probably can afford it (or your employer can afford it, a reason why Microsoft gives VS away for free to a lot of students (Dreamspark)).

Also keep in mind that having the whole .NET framework at your disposal for free is quite an advantage.
People here mentioned C++ with Qt. Yeah, either buy a commercial license for Qt or get GPLed. You are not forced into any license when using the many options C# offers (Window Forms, WPF, ...).


On the topic of Visual Studio: Has anyone here have experience with ReSharper? A friend of mine used it at work and he said it was quite decent (though he wouldnt want to to pay for it himself).
Since my favourite Java IDE is IntelliJ, I honestly consider ReSharper for VS, but I'm not really sure about it.

Absolutely right. To expand on "getting GPLd", it means that Qt uses the GPL for their open source version. The GPL is a copyleft license, which means that you're only allowed to use the library in your software if you're going to open source it. BSD-style licenses don't have that restriction, they allow you to put open source libraries in your closed source software.


Errr, since Qt 4.5 (a while ago), Qt is available under license LGPL 2.1, which is quite a big deal for companies. Basically, you don't have the GPL plague that follows you (exact words by my boss in a previous company)
Abductedonut
Profile Blog Joined December 2010
United States324 Posts
January 06 2014 09:28 GMT
#8403
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.
IronManSC
Profile Blog Joined November 2010
United States2119 Posts
Last Edited: 2014-01-06 19:34:05
January 06 2014 19:33 GMT
#8404
On January 06 2014 18:28 Abductedonut wrote:
Show nested quote +
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

[image loading]

and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?
SC2 Mapmaker || twitter: @ironmansc || Ohana & Mech Depot || 3x TLMC finalist || www.twitch.tv/sc2mapstream
Prillan
Profile Joined August 2011
Sweden350 Posts
January 06 2014 19:46 GMT
#8405
On January 07 2014 04:33 IronManSC wrote:
Show nested quote +
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
DeltaX
Profile Joined August 2011
United States287 Posts
January 06 2014 19:52 GMT
#8406
It would be easier to learn javascript coming from python than coming from css/html, but I don't know if learning python then javascript would be easier than just learning javascript.

Given that you need to learn the basics, it may not be a bad idea to just focus on learning the basics in any language. Then once you understand them and how to use them, you are just a google search away from using them in any language.

As for the code you pasted, everyone is going to have issues understanding code without formatting so I would not worry about that to much. A comparable thing would be to have all your html for a page in one line. Proper code formatting is very important for readability.
Manit0u
Profile Blog Joined August 2004
Poland17737 Posts
Last Edited: 2014-01-06 20:12:38
January 06 2014 20:11 GMT
#8407
On January 07 2014 04:46 Prillan wrote:
Show nested quote +
On January 07 2014 04:33 IronManSC wrote:
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.


I wonder though, is ~30% filesize reduction that significant? I don't think that your .js file should be big to start with (and later alteration/fixing of compressed code is a bitch, unless you keep the uncompressed copy somewhere on the server).
Time is precious. Waste it wisely.
Abductedonut
Profile Blog Joined December 2010
United States324 Posts
January 06 2014 20:24 GMT
#8408
On January 07 2014 05:11 Manit0u wrote:
Show nested quote +
On January 07 2014 04:46 Prillan wrote:
On January 07 2014 04:33 IronManSC wrote:
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.


I wonder though, is ~30% filesize reduction that significant? I don't think that your .js file should be big to start with (and later alteration/fixing of compressed code is a bitch, unless you keep the uncompressed copy somewhere on the server).


Take a look at the source code for Google's web page. It's super compressed, and it's actually hugely important for both transfer time and using less bandwidth. You have to remember - sure a 30% savings might not seem like much for one query, but when you're Google and you're getting millions of queries a day, it adds up.
DeltaX
Profile Joined August 2011
United States287 Posts
January 06 2014 20:26 GMT
#8409
On January 07 2014 05:11 Manit0u wrote:
Show nested quote +
On January 07 2014 04:46 Prillan wrote:
On January 07 2014 04:33 IronManSC wrote:
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.


I wonder though, is ~30% filesize reduction that significant? I don't think that your .js file should be big to start with (and later alteration/fixing of compressed code is a bitch, unless you keep the uncompressed copy somewhere on the server).


I think the idea behind it is you have some uncompressed file that you do your development work on, and then some script will compress it when you deploy so you don't have to worry about editing the compressed file at all.

As for if it is worth it, it really depends on the application. 30% less file size likely won't make much of a difference for some internal web app, but for someone like Google that adds up to a lot of time loading and bandwidth.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
January 06 2014 20:29 GMT
#8410
On January 07 2014 05:11 Manit0u wrote:
Show nested quote +
On January 07 2014 04:46 Prillan wrote:
On January 07 2014 04:33 IronManSC wrote:
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.


I wonder though, is ~30% filesize reduction that significant? I don't think that your .js file should be big to start with (and later alteration/fixing of compressed code is a bitch, unless you keep the uncompressed copy somewhere on the server).


For a hundred requests, a few KB don't matter. For a few million, it adds up. The user himself usually doesn't notice it unless the site very heavily relies on javascript, but admins definitely do. It's not hugely important but it's one of those "well, doesn't hurt, might as well do it" optimization things.
It also serves to obfuscate code to make it harder to steal.
Manit0u
Profile Blog Joined August 2004
Poland17737 Posts
January 06 2014 20:32 GMT
#8411
On January 07 2014 05:26 DeltaX wrote:
Show nested quote +
On January 07 2014 05:11 Manit0u wrote:
On January 07 2014 04:46 Prillan wrote:
On January 07 2014 04:33 IronManSC wrote:
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.


I wonder though, is ~30% filesize reduction that significant? I don't think that your .js file should be big to start with (and later alteration/fixing of compressed code is a bitch, unless you keep the uncompressed copy somewhere on the server).


I think the idea behind it is you have some uncompressed file that you do your development work on, and then some script will compress it when you deploy so you don't have to worry about editing the compressed file at all.

As for if it is worth it, it really depends on the application. 30% less file size likely won't make much of a difference for some internal web app, but for someone like Google that adds up to a lot of time loading and bandwidth.


Ok, I get it. That's why you also should compress your page in PHP if you're working on a big project, right? With PHP you can treat the entire view as an object and compress it before sending, this should save some bandwidth too (not sure if it'll compress the .js aswell).

Further reading: http://www.php.net/manual/en/function.ob-gzhandler.php
Time is precious. Waste it wisely.
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2014-01-06 21:04:40
January 06 2014 21:02 GMT
#8412
On January 07 2014 05:32 Manit0u wrote:
Show nested quote +
On January 07 2014 05:26 DeltaX wrote:
On January 07 2014 05:11 Manit0u wrote:
On January 07 2014 04:46 Prillan wrote:
On January 07 2014 04:33 IronManSC wrote:
On January 06 2014 18:28 Abductedonut wrote:
On January 06 2014 17:10 IronManSC wrote:
I'm having the hardest time learning Javascript. I'm an absolute beginner at it but I can't seem to "get it." Does anyone have recommendations on learning javascript?


Can you be a little bit more elaborate on what exactly you don't understand? Html and CSS are not programming languages. HTML is a markup language. Theoretically, CSS is a programming language since it's Turing Complete (it doesn't matter what this means) but it's not really a general purpose programming language.

Programming languages are like C, C++, Java, C#, Python... etc. You may simply be starting out in the wrong place because java script is a very high level language. You've suddenly made this giant leap from "fake" programming to bordering "real" programming. Think of it this way - HTML and CSS is like being in a bath tub. The water is calm, it's cool, and you can do things easily. Jumping into Javascript, you're now suddenly in the middle of the ocean during a storm. And you've never been trained for that. That's why you're running into problems.

If you're having problems learning javascript it means that your fundamentals of programming are either non-existent or not very strong. Generally, I'd recommend starting out with any of the languages I listed above (just pick one). Once you sort-of get the grasp on what variables and objects are, you'll be less confused during your javascript coding.

Note: If you're going to do web programming you probably want to start out with something like python. If you're planning on being well-rounded developer who wants to be able to easily transition between languages I'd start out with C. This has been debated here billions of times, and the truth is it doesn't matter where you start - once you learn a language learning others will be easy. But C will give you a much better understanding of how the computer works at a fundamental level, which is what you want if you're looking for a rich career as a developer.

As for resources - it just depends on what you're into. MIT's OpenCourseware has an amazing intro to computer science class, which teaches you python along with giving you a core CS education.


I'm interested in Web design and mabye some back-end programming with it. I'm not interested in gaming, software, or electronics or other things of that nature; just web design. In that case the handful of coding would include HTML5, CSS3, javascript, JQuery (is that the same as JS?), Python, some type of CMS, and mabye Ruby or PHP?

What's hard about javascript is that it's programming (I never compared it to html and css...). I do know that many websites like the combination of html/css/js, which is why I want to learn it because I feel I will be on a much better foundation of web building, and would open up more opportunities for me.

What's difficult for me, personally, is that in the midst of learning javascript, I'm learning the basics of variables, arrays, and objects, but then I come across coding that reads like this:

+ Show Spoiler +
[image loading]


and I think, how the hell do people learn this kind of thing? Are you suggesting I learn Python before javascript?


I understand your confusion. The above is compressed javascript. People have started to write javascript and when done compress it to minimize the file transfer time to the user. You're not supposed to read that.

Example: + Show Spoiler +

Enter the following code to http://closure-compiler.appspot.com/home and click compile.
function test(blabla) {
var test_var = 1 + 2 + 3 + 4 + 5;

test_var = 50*test_var + blabla;

return blabla * test_var;
}

You should get something like
function test(a){return a*(750+a)};



jQuery is a library used within javascript to simplify working with HTML and CSS among other things.

You can learn javascript first. Though I don't know of any good tutorials unfortunately.


I wonder though, is ~30% filesize reduction that significant? I don't think that your .js file should be big to start with (and later alteration/fixing of compressed code is a bitch, unless you keep the uncompressed copy somewhere on the server).


I think the idea behind it is you have some uncompressed file that you do your development work on, and then some script will compress it when you deploy so you don't have to worry about editing the compressed file at all.

As for if it is worth it, it really depends on the application. 30% less file size likely won't make much of a difference for some internal web app, but for someone like Google that adds up to a lot of time loading and bandwidth.


Ok, I get it. That's why you also should compress your page in PHP if you're working on a big project, right? With PHP you can treat the entire view as an object and compress it before sending, this should save some bandwidth too (not sure if it'll compress the .js aswell).

Further reading: http://www.php.net/manual/en/function.ob-gzhandler.php


That's a different type of compression. From what you say, it suggests dynamic compression of view files which will actually slow down your server. Generally you are not bandwidth bound, but bound by the database, and if your database runs on the same server then live compression will just slow down your database and will reduce performance overall.

Generally you never want to be using live compression as it will "freeze the world", compression should be done asynchronously as a low priority process. This means that it can't be used for views, but it can be used for big files like uploads.

Minified or Uglified files are static files that are precompiled during development time. For example I could do all my javascript in coffeescript, but when I push to production these files are compiled and minified. These minified files are then served by the production server instead of the coffee files.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
bangsholt
Profile Joined June 2011
Denmark138 Posts
January 06 2014 21:17 GMT
#8413
Read this small paper, Google paper about latency

If 30% smaller code saves you 5-10 ms it's more than worth it, as users leaves your site if feels slow.
Cyx.
Profile Joined November 2010
Canada806 Posts
January 07 2014 02:04 GMT
#8414
On January 07 2014 04:52 DeltaX wrote:
It would be easier to learn javascript coming from python than coming from css/html, but I don't know if learning python then javascript would be easier than just learning javascript.

Given that you need to learn the basics, it may not be a bad idea to just focus on learning the basics in any language. Then once you understand them and how to use them, you are just a google search away from using them in any language.

As for the code you pasted, everyone is going to have issues understanding code without formatting so I would not worry about that to much. A comparable thing would be to have all your html for a page in one line. Proper code formatting is very important for readability.

One point I'll make in favour of learning Python first is that it has a fucking awesome tutorial for people who've never programmed before in their life. It's how I learned to program by myself as a high school student so I'm maybe biased, but honestly, it runs through things really, REALLY simply, and introduces you to all of the fundamentals of programming in a language that's simple to understand and read.
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
January 07 2014 09:44 GMT
#8415
In fucking matlab, I want to make a list with numbers 1-30. Obviously I don't want to type it out, so what's the easiest command to make this happen? X = {1;2; ....
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Prillan
Profile Joined August 2011
Sweden350 Posts
January 07 2014 10:38 GMT
#8416
On January 07 2014 18:44 Arnstein wrote:
In fucking matlab, I want to make a list with numbers 1-30. Obviously I don't want to type it out, so what's the easiest command to make this happen? X = {1;2; ....

X=1:30
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
January 07 2014 11:01 GMT
#8417
Thanks!
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
FakePseudo
Profile Joined January 2012
Belgium716 Posts
January 07 2014 11:42 GMT
#8418
On January 07 2014 18:44 Arnstein wrote:
In fucking matlab, I want to make a list with numbers 1-30. Obviously I don't want to type it out, so what's the easiest command to make this happen? X = {1;2; ....

List or matrix? altho I don't think it changes a whole lot for single float entries
I am the 0.0007% /forum/viewpost.php?post_id=17208334|| Big Black Women Vocals Is Like Porn to my Ears ||San Antonio Spurs|Boston Celtics||#1EZToss Hater;
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
January 07 2014 12:02 GMT
#8419
On January 07 2014 20:42 FakePseudo wrote:
Show nested quote +
On January 07 2014 18:44 Arnstein wrote:
In fucking matlab, I want to make a list with numbers 1-30. Obviously I don't want to type it out, so what's the easiest command to make this happen? X = {1;2; ....

List or matrix? altho I don't think it changes a whole lot for single float entries


Perhaps both, maybe neither.
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
Last Edited: 2014-01-07 18:18:02
January 07 2014 18:17 GMT
#8420
I was bored, so I just did some random shit in C, but why doesn't it print the sum?
+ Show Spoiler +

#include <stdio.h>
#include <time.h>

int main()
{
int sum = 0;
while ( 1)
{
srand(time(NULL));
sum += rand() % 6 + 1;
printf( "Summen er: \n", sum );
}
}


It shows "Summen er" when I run it, but not the int!
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Prev 1 419 420 421 422 423 1032 Next
Please log in or register to reply.
Live Events Refresh
Kung Fu Cup
11:00
#6
IntoTheiNu 1032
WardiTV877
RotterdaM408
Ryung 319
TKL 254
Rex146
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 408
Ryung 317
TKL 254
Rex 138
Vindicta 19
StarCraft: Brood War
Jaedong 2556
Horang2 1699
Mini 1157
EffOrt 858
Soma 687
firebathero 590
Stork 472
Larva 458
Light 434
Snow 412
[ Show more ]
ggaemo 393
Killer 382
actioN 323
Hyuk 321
ZerO 224
Soulkey 156
Zeus 140
Rush 133
Hyun 97
Sea.KH 67
ToSsGirL 65
PianO 59
Barracks 36
Sexy 35
[sc1f]eonzerg 35
Free 31
sSak 30
HiyA 29
sorry 19
JulyZerg 18
Movie 17
Rock 16
Terrorterran 16
GoRush 14
Sacsri 13
scan(afreeca) 12
Shine 12
yabsab 11
ajuk12(nOOB) 9
SilentControl 9
Icarus 8
Britney 0
Dota 2
Gorgc3904
qojqva1691
BananaSlamJamma106
ODPixel103
Counter-Strike
Fnx 1559
allub432
byalli65
kRYSTAL_34
Other Games
B2W.Neo989
hiko816
Lowko343
crisheroes289
QueenE79
ArmadaUGS23
ZerO(Twitch)10
Organizations
Dota 2
PGL Dota 2 - Main Stream177
StarCraft: Brood War
Kim Chul Min (afreeca) 4
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• StrangeGG 24
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 20
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV359
League of Legends
• Nemesis3763
• TFBlade1599
Upcoming Events
PiGosaur Cup
9h 39m
GSL
19h 9m
Rogue vs Percival
Zoun vs Solar
Replay Cast
1d 9h
GSL
1d 19h
Cure vs TriGGeR
ByuN vs Bunny
KCM Race Survival
1d 19h
Replay Cast
2 days
Replay Cast
2 days
Escore
2 days
OSC
2 days
Replay Cast
3 days
[ Show More ]
Replay Cast
3 days
IPSL
4 days
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
4 days
Replay Cast
4 days
uThermal 2v2 Circuit
4 days
BSL
5 days
IPSL
5 days
eOnzErG vs TBD
G5 vs Nesh
Replay Cast
5 days
Wardi Open
5 days
Afreeca Starleague
5 days
Jaedong vs Light
Monday Night Weeklies
6 days
Replay Cast
6 days
Sparkling Tuna Cup
6 days
Afreeca Starleague
6 days
Snow vs Flash
Liquipedia Results

Completed

Escore Tournament S2: W4
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
StarCraft2 Community Team League 2026 Spring
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
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W5
KK 2v2 League Season 1
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
2026 GSL S1
XSE Pro League 2026
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
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.