• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:51
CEST 15:51
KST 22:51
  • 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
[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris32Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
Greatest Players of All Time: 2025 Update #1: Maru - Greatest Players of All Time A Eulogy for the Six Pool Geoff 'iNcontroL' Robinson has passed away #2: Serral - Greatest Players of All Time
Tourneys
Esports World Cup 2025 Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
No Rain in ASL20? BW General Discussion Post ASL20 Ro24 discussion. BSL Polish World Championship 2025 20-21 September BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL20] Ro24 Group F [Megathread] Daily Proleagues [ASL20] Ro24 Group E [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Muta micro map competition Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2196 users

The Big Programming Thread - Page 187

Forum Index > General Forum
Post a Reply
Prev 1 185 186 187 188 189 1031 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.
white_horse
Profile Joined July 2010
1019 Posts
November 05 2012 19:47 GMT
#3721
thanks for helping me
some really noob mistakes -______________-
Translator
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
November 05 2012 22:47 GMT
#3722

$(document).ready(function(){
$(".triggers").click(function(){
$(".panels").toggle("fast");
$(this).toggleClass("active");
return false;
});

$('.trigger').add('.triggerz').click(function(){
$(".panels").hide();
});

});

$(document).ready(function(){
$(".trigger").click(function(){
$(".panel").toggle("fast");
$(this).toggleClass("active");
return false;
});
$('.triggers').add('.triggerz').click(function(){
$(".panel").hide();
});
});

$(document).ready(function(){
$(".triggerz").click(function(){
$(".panelz").toggle("fast");
$(this).toggleClass("active");
return false;
});
$('.triggers').add('.trigger').click(function(){
$(".panelz").hide();
});
});


Is there anything wrong with this? It works fine in Firefox, Safari and IE, but in Chrome it's acting up. It doesn't run the jQuery. This is the error I get in the JS Developer section of chrome: $ is not defined; but when I look, I don't see anything wrong with my code. All the $ are closed correctly.
Life?
tofucake
Profile Blog Joined October 2009
Hyrule19078 Posts
November 05 2012 22:49 GMT
#3723
try $(window).load instead of $(document).ready
Chrome has issues with firing doc ready.
Liquipediaasante sana squash banana
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
November 05 2012 22:55 GMT
#3724
On November 06 2012 07:49 tofucake wrote:
try $(window).load instead of $(document).ready
Chrome has issues with firing doc ready.


Same issue, hrpmf... Still says $ is not defined.
Life?
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
November 05 2012 22:57 GMT
#3725
On November 06 2012 07:55 ShoCkeyy wrote:
Show nested quote +
On November 06 2012 07:49 tofucake wrote:
try $(window).load instead of $(document).ready
Chrome has issues with firing doc ready.


Same issue, hrpmf... Still says $ is not defined.


That means jQuery is not included. Check your <script> tags.
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
November 05 2012 23:00 GMT
#3726
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
<script type="text/javascript" src="https://www.paydayloandebtassistance.com/test/js/triggers.js"></script>

Can it be I'm using an older version of the jquery library for chrome?
Life?
speknek
Profile Joined February 2012
758 Posts
November 05 2012 23:04 GMT
#3727
Hi, I wanna make some money with coding/programming. What would you recommend me to focus on (and why)? I know it's kind of a vague/broad question, but I'd appreciate any tips. I have "some" experience with scripting in matlab (Mech Eng student) and helping some friends out with random things in java, but I never really learned it properly, just google-engineered everything.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2012-11-05 23:07:46
November 05 2012 23:05 GMT
#3728
On November 06 2012 08:00 ShoCkeyy wrote:
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
<script type="text/javascript" src="https://www.paydayloandebtassistance.com/test/js/triggers.js"></script>

Can it be I'm using an older version of the jquery library for chrome?


The problem seems to be that http://jqueryjs.googlecode.com/files/jquery-1.3.2.js appears to send the file as attachment, not as simple plaintext, so chrome doesn't treat it as javascript. Other browsers seem to be more forgiving. Download the file and put it somewhere else and include it from there.

On November 06 2012 08:04 speknek wrote:
Hi, I wanna make some money with coding/programming. What would you recommend me to focus on (and why)? I know it's kind of a vague/broad question, but I'd appreciate any tips. I have "some" experience with scripting in matlab (Mech Eng student) and helping some friends out with random things in java, but I never really learned it properly, just google-engineered everything.


Programming is no make-money-quick scheme. Spend the next 6 month learning whatever you are interested in (mobile apps, websites, whatever) and if you are still interested, spend another year doing the same until you know enough to start working in the field.
Nihilnovi
Profile Joined May 2010
Sweden696 Posts
Last Edited: 2012-11-05 23:14:01
November 05 2012 23:13 GMT
#3729
On November 06 2012 07:49 tofucake wrote:
try $(window).load instead of $(document).ready
Chrome has issues with firing doc ready.


Almost right.

The issue is with having several doc ready on a page loaded with 1 call.
The reason is there is should never be a situation where you need to enclose logic in more than 1 document ready per dom rendering, its fine to have doc ready in content included at a later stage with XHR. Chrome is funny this way.

Either way, this should fix it. If it doesn't, then you are probably having some caching issues with chrome, try to clear your cache and make sure its actually loaded as js with chrome dev tools, and good luck with your homework/training.



$(document).ready(function(){
$(".triggers").click(function(){
$(".panels").toggle("fast");
$(this).toggleClass("active");
return false;
});

$('.trigger').add('.triggerz').click(function(){
$(".panels").hide();
});


$(".trigger").click(function(){
$(".panel").toggle("fast");
$(this).toggleClass("active");
return false;
});

$('.triggers').add('.triggerz').click(function(){
$(".panel").hide();
});


$(".triggerz").click(function(){
$(".panelz").toggle("fast");
$(this).toggleClass("active");
return false;
});

$('.triggers').add('.trigger').click(function(){
$(".panelz").hide();
});

});
Nihilnovi
Profile Joined May 2010
Sweden696 Posts
November 05 2012 23:18 GMT
#3730
On November 06 2012 08:00 ShoCkeyy wrote:
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
<script type="text/javascript" src="https://www.paydayloandebtassistance.com/test/js/triggers.js"></script>

Can it be I'm using an older version of the jquery library for chrome?


That file is being sent as an attachment and not included a javascript into Chrome, thats why it cant find jQuery! Also thats a REALLY old version.
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
Last Edited: 2012-11-05 23:42:53
November 05 2012 23:19 GMT
#3731
LOL I FIXED IT........ I just needed a https:// in front of my script call. I'm such an idiot - _ -;;;

Thanks for all the help, the most that helped me was moving the jquery to my server. That basically fixed most of the problems. Just needed to add the https in front of it and it was good to go. Thanks all once again!
Life?
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
November 05 2012 23:45 GMT
#3732
Ughfh,
Spend all day at work coding (sort-of, debugging other people's code is considered coding, right?), then try to go home and code my own side project, but just get burnt out incredibly fast and give up because of the poor quality of code generated and no accountability.

Any suggestions for overcoming programming fatigue? Caffeine is nice and all, but see the above comment on poor quality of code generated; sleep deprivation doesn't sound like a good path forward.
Any sufficiently advanced technology is indistinguishable from magic
Hairy
Profile Joined February 2011
United Kingdom1169 Posts
November 05 2012 23:50 GMT
#3733
TDD! :D
Sometimes I sits and thinks, and sometimes I just sits
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
November 05 2012 23:59 GMT
#3734
On November 06 2012 08:50 Hairy wrote:
TDD! :D

Lol that would be excellent... except my side project is for an embedded target, and I don't want to spend my precious energy writing a test-case for "that LED turns on" :/

Agree though TDD is pretty much the choicest of development environments
Any sufficiently advanced technology is indistinguishable from magic
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
November 06 2012 00:01 GMT
#3735
On November 06 2012 08:45 RoyGBiv_13 wrote:
Ughfh,
Spend all day at work coding (sort-of, debugging other people's code is considered coding, right?), then try to go home and code my own side project, but just get burnt out incredibly fast and give up because of the poor quality of code generated and no accountability.

Any suggestions for overcoming programming fatigue? Caffeine is nice and all, but see the above comment on poor quality of code generated; sleep deprivation doesn't sound like a good path forward.


Switch careers.

Working with bad programmers and fixing their stupid bugs every day threw me into a complete burnout that i most likely never will recover from. Even in my private projects i now have a complete "writer's block" and have trouble solving minor problems.

Other than that:
Try to teach others proper programming techniques so you don't have to debug their code all the time. Working with at least a decent codebase is so much less stressful and might make you enjoy it.
I at least got people from writing horrible, messy code to writing horrible but at least properly formatted code that even had proper variable names. I still had to spend 75% of my workday cleaning up their messes but maybe if i had survived another year or two, maybe it would have only been 50% by then.

Bad programmers are the scourge of professional programming, you will never get rid of them since there are too many people similar to the poster a few posts above with "I want to earn money with programming. I don't know anything about programming though."

Hairy
Profile Joined February 2011
United Kingdom1169 Posts
November 06 2012 00:07 GMT
#3736
BTW, I would absolutely 100% recommend these videos:
http://www.cleancoders.com/

Clean Coders from 'Uncle Bob'. We've been watching them at work and they have been both entertaining and massively educational - there's no one thing that we've done through training that has had a greater impact on how we code and how we think about code at our company. Its style is eccentric (and you will be worried about it when you start watching), but you quickly realise that the mad costumes and crazy cuts are there simply to keep you focused and concentrating... and it works.

A good way to passively get better at programming while you give your hands a rest.
Sometimes I sits and thinks, and sometimes I just sits
JeanLuc
Profile Joined September 2010
Canada377 Posts
November 06 2012 00:09 GMT
#3737
On November 06 2012 08:45 RoyGBiv_13 wrote:
Ughfh,
Spend all day at work coding (sort-of, debugging other people's code is considered coding, right?), then try to go home and code my own side project, but just get burnt out incredibly fast and give up because of the poor quality of code generated and no accountability.

Any suggestions for overcoming programming fatigue? Caffeine is nice and all, but see the above comment on poor quality of code generated; sleep deprivation doesn't sound like a good path forward.


Kind of similar situation here. I found what helped incredibly was, when I come home, only concentrating on projects truly meaningful to me. Stuff that I enjoy just for its own sake, rather than stuff "I should learn". Other than that just keep it up, I know you're discouraged but it sounds like you're doing well. Your body will adjust if you persevere.
If you can't find it within yourself to stand up and tell the truth-- you don't deserve to wear that uniform
speknek
Profile Joined February 2012
758 Posts
November 06 2012 00:10 GMT
#3738
On November 06 2012 08:05 Morfildur wrote:
Programming is no make-money-quick scheme. Spend the next 6 month learning whatever you are interested in (mobile apps, websites, whatever) and if you are still interested, spend another year doing the same until you know enough to start working in the field.

Your reply has no content whatsoever, you just said "spend 1.5 yrs learning something".
To clarify, I don't want to work in the field fulltime or learn every in and out about a certain subject, I just want some freelance jobs or make some (web)apps that earn me some money. I helped friends before and released a android app together with a buddy which landed me some decent cash, etc. This was nice and all, but I'm just looking for some advice on where/how I can get some simple projects or other ways that get me some money. I'm not trying to get rich quick or whatever you tried to imply, just wanna get a little extra income.
HowitZer
Profile Joined February 2003
United States1610 Posts
November 06 2012 00:10 GMT
#3739
On November 06 2012 08:45 RoyGBiv_13 wrote:
Ughfh,
Spend all day at work coding (sort-of, debugging other people's code is considered coding, right?), then try to go home and code my own side project, but just get burnt out incredibly fast and give up because of the poor quality of code generated and no accountability.

Any suggestions for overcoming programming fatigue? Caffeine is nice and all, but see the above comment on poor quality of code generated; sleep deprivation doesn't sound like a good path forward.


Improving my fitness and diet worked for me.
Human teleportation, molecular decimation, breakdown and reformation is inherently purging. It makes a man acute.
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
November 06 2012 00:11 GMT
#3740
On November 06 2012 09:01 Morfildur wrote:
Show nested quote +
On November 06 2012 08:45 RoyGBiv_13 wrote:
Ughfh,
Spend all day at work coding (sort-of, debugging other people's code is considered coding, right?), then try to go home and code my own side project, but just get burnt out incredibly fast and give up because of the poor quality of code generated and no accountability.

Any suggestions for overcoming programming fatigue? Caffeine is nice and all, but see the above comment on poor quality of code generated; sleep deprivation doesn't sound like a good path forward.


Switch careers.

Working with bad programmers and fixing their stupid bugs every day threw me into a complete burnout that i most likely never will recover from. Even in my private projects i now have a complete "writer's block" and have trouble solving minor problems.

Other than that:
Try to teach others proper programming techniques so you don't have to debug their code all the time. Working with at least a decent codebase is so much less stressful and might make you enjoy it.
I at least got people from writing horrible, messy code to writing horrible but at least properly formatted code that even had proper variable names. I still had to spend 75% of my workday cleaning up their messes but maybe if i had survived another year or two, maybe it would have only been 50% by then.

Bad programmers are the scourge of professional programming, you will never get rid of them since there are too many people similar to the poster a few posts above with "I want to earn money with programming. I don't know anything about programming though."



Probably worth mentioning that I work in support for an embedded toolchain company. My coworkers are probably some of the brightest code magicians I've had the pleasure of working with.

It's in my job description to help customers though, and my greatest fear is not debugging a stupid customer's code, but rather, the one who manages to break the OS in a new and spectacular way. I rarely come across poorly written/designed code (unless I'm dealing with gov't contractors...).

I think its most just the 24/7 aspect of programming. I suppose its time to go spin things in the park before getting back to work
Any sufficiently advanced technology is indistinguishable from magic
Prev 1 185 186 187 188 189 1031 Next
Please log in or register to reply.
Live Events Refresh
WardiTV Summer Champion…
11:00
Playoffs Day 3
Clem vs MaxPaxLIVE!
Classic vs TBD
WardiTV980
TKL 284
IndyStarCraft 185
Rex138
IntoTheiNu 29
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko291
TKL 284
IndyStarCraft 185
Rex 138
SC2_NightMare 22
mcanning 15
StarCraft: Brood War
Britney 70059
Calm 5197
Sea 2406
Jaedong 1856
Horang2 1838
Flash 1811
Bisu 1568
Rain 1533
firebathero 777
ggaemo 747
[ Show more ]
Mini 725
EffOrt 544
Larva 486
Stork 397
BeSt 389
Light 244
hero 220
Zeus 203
Snow 202
Last 171
Soulkey 160
Nal_rA 159
Soma 124
TY 114
Mong 103
NaDa 102
Hyuk 96
Mind 85
Aegong 81
Rush 76
ZerO 65
Movie 51
[sc1f]eonzerg 48
Sharp 47
JulyZerg 46
Sea.KH 41
PianO 35
Sacsri 30
Terrorterran 18
IntoTheRainbow 16
HiyA 14
scan(afreeca) 14
ajuk12(nOOB) 13
Sexy 12
Noble 12
Bale 10
ivOry 3
Dota 2
Gorgc4388
Dendi1251
qojqva1092
420jenkins261
XcaliburYe261
syndereN161
XaKoH 126
Counter-Strike
fl0m2258
olofmeister2061
byalli253
markeloff112
Other Games
singsing2143
B2W.Neo1442
hiko782
DeMusliM357
Fuzer 314
crisheroes313
Hui .248
Happy118
RotterdaM98
ArmadaUGS59
ZerO(Twitch)19
Organizations
Other Games
Algost 5
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1010
• WagamamaTV527
League of Legends
• Jankos1733
Upcoming Events
Replay Cast
10h 9m
LiuLi Cup
21h 9m
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
1d 2h
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
Big Brain Bouts
1d 2h
Iba vs GgMaChine
TriGGeR vs Bunny
Reynor vs Classic
Serral vs Clem
BSL Team Wars
1d 5h
Team Hawk vs Team Dewalt
BSL Team Wars
1d 5h
Team Hawk vs Team Bonyth
SC Evo League
1d 22h
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
2 days
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
2 days
SC Evo League
2 days
[ Show More ]
Maestros of the Game
3 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
3 days
Team Bonyth vs Team Sziky
BSL Team Wars
3 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
4 days
Replay Cast
6 days
The PondCast
6 days
RSL Revival
6 days
Maru vs SHIN
MaNa vs MaxPax
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
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 © 2025 TLnet. All Rights Reserved.