• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 12:13
CEST 18:13
KST 01:13
  • 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] Ro8 Preview Pt2: Holding On8Maestros of the Game: Live Finals Preview (RO4)5TL.net Map Contest #21 - Finalists4Team TLMC #5: Vote to Decide Ladder Maps!0[ASL20] Ro8 Preview Pt1: Mile High15
Community News
PartinG joins SteamerZone, returns to SC2 competition(?)105.0.15 Balance Patch Notes (Live version)73$2,500 WardiTV TL Map Contest Tournament 151Stellar Fest: StarCraft II returns to Canada11Weekly Cups (Sept 22-28): MaxPax double, Zerg wins, PTR12
StarCraft 2
General
PartinG joins SteamerZone, returns to SC2 competition(?) 5.0.15 Balance Patch Notes (Live version) ZvT - Army Composition - Slow Lings + Fast Banes Stellar Fest: StarCraft II returns to Canada Had to smile :)
Tourneys
$2,500 WardiTV TL Map Contest Tournament 15 Stellar Fest Sparkling Tuna Cup - Weekly Open Tournament LANified! 37: Groundswell, BYOC LAN, Nov 28-30 2025 Maestros of The Game—$20k event w/ live finals in Paris
Strategy
Custom Maps
External Content
Mutation # 493 Quick Killers Mutation # 492 Get Out More Mutation # 491 Night Drive Mutation # 490 Masters of Midnight
Brood War
General
Question regarding recent ASL Bisu vs Larva game Thoughts on rarely used units [ASL20] Ask the mapmakers — Drop your questions BW General Discussion RepMastered™: replay sharing and analyzer site
Tourneys
[Megathread] Daily Proleagues [ASL20] Ro8 Day 4 [ASL20] Ro8 Day 3 Small VOD Thread 2.0
Strategy
Current Meta I am doing this better than progamers do. Simple Questions, Simple Answers Cliff Jump Revisited (1 in a 1000 strategy)
Other Games
General Games
Dawn of War IV Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Liquipedia App: Now Covering SC2 and Brood War!
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
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
TL Mafia Community Thread
Community
General
US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread MLB/Baseball 2023 Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts The Automated Ban List BarCraft in Tokyo Japan for ASL Season5 Final
Blogs
Mental Health In Esports: Wo…
TrAiDoS
[AI] Sorry, Chill, My Bad :…
Peanutsc
Try to reverse getting fired …
Garnet
[ASL20] Players bad at pi…
pullarius1
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1824 users

My colleagues just reminded me why i quit - Page 3

Blogs > Deleted User 101379
Post a Reply
Prev 1 2 3 All
zatic
Profile Blog Joined September 2007
Zurich15352 Posts
September 12 2012 22:10 GMT
#41
Yeah exactly, there is no security benefit from having stupid people using frameworks over stupid people writing their own code.

You'll have few well published vulnerabilities that won't get fixed over many unpublished vulnerabilities that won't get fixed. Pick your poison.
ModeratorI know Teamliquid is known as a massive building
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
Last Edited: 2012-09-13 11:32:00
September 13 2012 09:12 GMT
#42
--- Nuked ---
Wortie
Profile Joined September 2011
Netherlands212 Posts
Last Edited: 2012-09-13 10:11:32
September 13 2012 10:07 GMT
#43
I had some guys in school too. That wrote if(booleanvariable == true). That fucking makes me cringe. How the fuck can you mess up basic variables? I mean, they're basically the same ones for every language.

btw I'm in my second year of school. So if these guys finished their education they should know this kind of basic shit.
haduken
Profile Blog Joined April 2003
Australia8267 Posts
September 13 2012 11:04 GMT
#44
I sometimes make mistakes like this due to weak fundamentals :/

But I can't understand why a debug step through won't catch errors like that. If you follow the code path, it's pretty hard to miss when you are inside a block when you shouldn't be.
Rillanon.au
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
September 13 2012 13:32 GMT
#45
On September 13 2012 18:12 Inori wrote:
Show nested quote +
On September 13 2012 04:42 obesechicken13 wrote:
On September 13 2012 00:55 Inori wrote:
On September 12 2012 22:15 zatic wrote:
Frameworks are not the solution to shitty programmers though. The same guys will also implement the framework - and do just as much wrong as if they would code stuff themselves.

In the end, you just need able programmers, whether you code from scratch or implement based on a framework.

But they do teach best practices to those that are open to learning.

And worst case scenario with a framework you get semi-working semi-hackish code that at least on some levels is secure and bug-free as opposed to one big security hole, filled with spaghetti code hell that some newbie developers produce.

Some of the vulnerabilities in frameworks become well known whereas with self built code, you don't exactly know the vulnerabilities are. I'm mostly thinking of joomla as a cms because it's written as a framework, and yet it has addons that are vulnerabilities.

I think it's like how people build viruses for Windows.

Frameworks provide a lot of code that you don't have to write though and there are often addons or tutorials to do things in frameworks that are more standardized than starting from scratch. Do you ever find that frameworks are like black boxes though?

Joomla is not a framework, Joomla is a Content Management System.
CMS is a finished product that is limited in extensibility.
Framework is a set of libraries you program the finished product on top of, nearly unlimited extensibility.
You can write sites like google.com, youtube.com, facebook.com with a framework. You can't with a CMS.
CMS: Joomla, Wordpress, Drupal
Framework: Symfony2, ZF2, Laravel

Apples and oranges.

I'm aware that it's not a framework but since it uses a model view control and has default directories and table structrres as well as names, I figure it'd be easier to at least know what's on the backend. So I think joomla as well as all cms, use a framework.

I'm not completely sure if CMS have anything like plugins or addons, but if they do then that's a security vulnerability through commonly used 3rd party code.

I've only dabbled a bit with rails and cakephp and by a bit I mean very little so may be wrong.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
Last Edited: 2012-09-13 13:59:32
September 13 2012 13:56 GMT
#46
--- Nuked ---
zatic
Profile Blog Joined September 2007
Zurich15352 Posts
September 13 2012 14:05 GMT
#47
On September 13 2012 18:12 Inori wrote:
Show nested quote +
On September 13 2012 07:10 zatic wrote:
Yeah exactly, there is no security benefit from having stupid people using frameworks over stupid people writing their own code.

You'll have few well published vulnerabilities that won't get fixed over many unpublished vulnerabilities that won't get fixed. Pick your poison.

No security benefit?
Can't speak for all frameworks, but Symfony2 is secure from XSS, CSRF and SQL injection - 3 most common vulnerabilities, out of the box. By design it forces on a developer security best practices like not storing plaintext passwords, not outputting errors to users, hiding filesystem layout.

No offense, but claiming that there's no benefit to framework compared to own code on any level (and especially on security), even more so to a newbie developer, just means that you didn't look well enough into frameworks. I recommend you do, they're awesome.

I have looked into Symfony2 extensively actually. I like it a lot.

What I am saying is that any frame work can have vulnerabilities (and, stupid people are VERY creative in still doing stupid shit no matter what a frame work teaches them). And once they are published, there are immediately (possibly automated) exploits for them. The same stupid programmers that make stupid code will download their framework exactly once and never update it ever again. So, few published vulerabilities versus many unpublished ones.

It doesn't really matter if they mess up their own shitty code, or other people's code. In the end the stupid people are the problem.
ModeratorI know Teamliquid is known as a massive building
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
September 13 2012 14:19 GMT
#48
--- Nuked ---
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
September 13 2012 16:59 GMT
#49
On September 13 2012 22:56 Inori wrote:
Show nested quote +
On September 13 2012 22:32 obesechicken13 wrote:
On September 13 2012 18:12 Inori wrote:
On September 13 2012 04:42 obesechicken13 wrote:
On September 13 2012 00:55 Inori wrote:
On September 12 2012 22:15 zatic wrote:
Frameworks are not the solution to shitty programmers though. The same guys will also implement the framework - and do just as much wrong as if they would code stuff themselves.

In the end, you just need able programmers, whether you code from scratch or implement based on a framework.

But they do teach best practices to those that are open to learning.

And worst case scenario with a framework you get semi-working semi-hackish code that at least on some levels is secure and bug-free as opposed to one big security hole, filled with spaghetti code hell that some newbie developers produce.

Some of the vulnerabilities in frameworks become well known whereas with self built code, you don't exactly know the vulnerabilities are. I'm mostly thinking of joomla as a cms because it's written as a framework, and yet it has addons that are vulnerabilities.

I think it's like how people build viruses for Windows.

Frameworks provide a lot of code that you don't have to write though and there are often addons or tutorials to do things in frameworks that are more standardized than starting from scratch. Do you ever find that frameworks are like black boxes though?

Joomla is not a framework, Joomla is a Content Management System.
CMS is a finished product that is limited in extensibility.
Framework is a set of libraries you program the finished product on top of, nearly unlimited extensibility.
You can write sites like google.com, youtube.com, facebook.com with a framework. You can't with a CMS.
CMS: Joomla, Wordpress, Drupal
Framework: Symfony2, ZF2, Laravel

Apples and oranges.

I'm aware that it's not a framework but since it uses a model view control and has default directories and table structrres as well as names, I figure it'd be easier to at least know what's on the backend. So I think joomla as well as all cms, use a framework.

Literally LOL, that's the funniest thing I've heard in awhile. Joomla follows MVC? You can not be more wrong :D

Joomla has one of the worst code quality out of open-source solutions I know.
There's a reason why Joomla and Wordpress are often used by fanboys from other languages as an example on why they think PHP sucks and PHP developers are amateurs.

Can you elaborate? They don't follow MVC?

Sorry for the derail btw.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Deleted User 61629
Profile Blog Joined March 2010
1664 Posts
Last Edited: 2012-09-13 17:38:55
September 13 2012 17:36 GMT
#50
--- Nuked ---
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 20 2012 06:34 GMT
#51
I just stumbled over this function:


function dont_return_80($var)
{
return ($var != '80')?true:false;
}


I don't know what it's for, i actually don't even want to know, but i somehow find it funny...
BigFan
Profile Blog Joined December 2010
TLADT24920 Posts
September 20 2012 06:47 GMT
#52
On September 20 2012 15:34 Morfildur wrote:
I just stumbled over this function:


function dont_return_80($var)
{
return ($var != '80')?true:false;
}


I don't know what it's for, i actually don't even want to know, but i somehow find it funny...

Guessing it checks for a value of 80 and returns false if the variable var is 80? At least, that's what it looks like it does lol. I dunno what the program is about but I'm guessing there must be some input from the user and maybe some calculation? I'm totally guessing here lol.
Former BW EiC"Watch Bakemonogatari or I will kill you." -Toad, April 18th, 2017
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
September 20 2012 14:38 GMT
#53
On September 20 2012 15:47 BigFan wrote:
Show nested quote +
On September 20 2012 15:34 Morfildur wrote:
I just stumbled over this function:


function dont_return_80($var)
{
return ($var != '80')?true:false;
}


I don't know what it's for, i actually don't even want to know, but i somehow find it funny...

Guessing it checks for a value of 80 and returns false if the variable var is 80? At least, that's what it looks like it does lol. I dunno what the program is about but I'm guessing there must be some input from the user and maybe some calculation? I'm totally guessing here lol.

Doesn't it return true if it isn't 80?

Could just be a test function in production. Like you want to try something out but you don't know if it'll work right.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Wortie
Profile Joined September 2011
Netherlands212 Posts
September 20 2012 18:04 GMT
#54
On September 20 2012 15:47 BigFan wrote:
Show nested quote +
On September 20 2012 15:34 Morfildur wrote:
I just stumbled over this function:


function dont_return_80($var)
{
return ($var != '80')?true:false;
}


I don't know what it's for, i actually don't even want to know, but i somehow find it funny...

Guessing it checks for a value of 80 and returns false if the variable var is 80? At least, that's what it looks like it does lol. I dunno what the program is about but I'm guessing there must be some input from the user and maybe some calculation? I'm totally guessing here lol.


No he checks if $var contains the string 80.... then it returns either true or false.

I don't actually know PHP, but I think you shouldn't add ' ' signs to variables if you want to store numbers in them rofl.

And even then, a fucking function to check if a variable is 80 is stupid too, because you can just do $var != 80 and it will do EXACTLY the same as this, without using a function.
BigFan
Profile Blog Joined December 2010
TLADT24920 Posts
September 21 2012 01:16 GMT
#55
^ I don't remember much from php so I just guessed that the variable is a number.

On September 20 2012 23:38 obesechicken13 wrote:
Show nested quote +
On September 20 2012 15:47 BigFan wrote:
On September 20 2012 15:34 Morfildur wrote:
I just stumbled over this function:


function dont_return_80($var)
{
return ($var != '80')?true:false;
}


I don't know what it's for, i actually don't even want to know, but i somehow find it funny...

Guessing it checks for a value of 80 and returns false if the variable var is 80? At least, that's what it looks like it does lol. I dunno what the program is about but I'm guessing there must be some input from the user and maybe some calculation? I'm totally guessing here lol.

Doesn't it return true if it isn't 80?

Could just be a test function in production. Like you want to try something out but you don't know if it'll work right.

Isn't that the same as what I wrote? lol.
Former BW EiC"Watch Bakemonogatari or I will kill you." -Toad, April 18th, 2017
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
September 21 2012 02:05 GMT
#56
On September 21 2012 10:16 BigFan wrote:
^ I don't remember much from php so I just guessed that the variable is a number.


Isn't that the same as what I wrote? lol.

On September 20 2012 23:38 obesechicken13 wrote:
Show nested quote +
On September 20 2012 15:47 BigFan wrote:
On September 20 2012 15:34 Morfildur wrote:
I just stumbled over this function:


function dont_return_80($var)
{
return ($var != '80')?true:false;
}


I don't know what it's for, i actually don't even want to know, but i somehow find it funny...

Guessing it checks for a value of 80 and returns false if the variable var is 80? At least, that's what it looks like it does lol. I dunno what the program is about but I'm guessing there must be some input from the user and maybe some calculation? I'm totally guessing here lol.

Doesn't it return true if it isn't 80?

Could just be a test function in production. Like you want to try something out but you don't know if it'll work right.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Disregard
Profile Blog Joined March 2007
China10252 Posts
September 21 2012 04:07 GMT
#57
Not a programmer or have any experience with PHP but did a bit of basic Java coding, are they trying to use a string to represent a boolean operator?
"If I had to take a drug in order to be free, I'm screwed. Freedom exists in the mind, otherwise it doesn't exist."
Prev 1 2 3 All
Please log in or register to reply.
Live Events Refresh
Next event in 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Hui .660
SpeCial 458
TKL 83
Livibee 59
StarCraft: Brood War
Britney 32771
Calm 3974
Bisu 2884
Rain 2002
Light 1034
Horang2 799
Mini 531
Soma 491
Shuttle 488
Stork 377
[ Show more ]
ZerO 341
Snow 295
BeSt 277
firebathero 229
EffOrt 212
Rush 193
ggaemo 192
Hyun 161
Leta 112
Soulkey 98
Barracks 64
Sharp 60
sorry 42
Backho 31
Terrorterran 23
Killer 19
scan(afreeca) 18
Bale 17
Free 13
ajuk12(nOOB) 10
Shine 9
Dota 2
Gorgc6450
qojqva3270
Cr1tdota968
420jenkins277
XcaliburYe187
Fuzer 187
Other Games
tarik_tv4838
FrodaN2496
singsing2367
B2W.Neo1296
KnowMe407
crisheroes383
Beastyqt192
ArmadaUGS118
QueenE89
Trikslyr59
XaKoH 45
NeuroSwarm35
ZerO(Twitch)14
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
• intothetv
• Kozan
StarCraft: Brood War
• HerbMon 17
• FirePhoenix6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 3683
• WagamamaTV543
• Ler74
League of Legends
• Nemesis3952
• Jankos1768
• TFBlade824
Other Games
• Shiphtur263
Upcoming Events
Online Event
47m
TKL 83
Online Event
18h 47m
[BSL 2025] Weekly
1d 1h
Safe House 2
1d 1h
Sparkling Tuna Cup
1d 17h
BSL Team Wars
2 days
Team Bonyth vs Team Dewalt
Dewalt vs kogeT
JDConan vs Tarson
RaNgeD vs DragOn
StRyKeR vs Bonyth
Aeternum vs Hejek
Replay Cast
2 days
Map Test Tournament
3 days
Map Test Tournament
4 days
The PondCast
5 days
[ Show More ]
Map Test Tournament
5 days
Map Test Tournament
6 days
OSC
6 days
Liquipedia Results

Completed

KCM Race Survival 2025 Season 3
Maestros of the Game
HCC Europe

Ongoing

BSL 20 Team Wars
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
Acropolis #4 - TS2
EC S1
ESL Pro League S22
Frag Blocktober 2025
Urban Riga Open #1
FERJEE Rush 2025
Birch Cup 2025
DraculaN #2
LanDaLan #3
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025

Upcoming

IPSL Winter 2025-26
SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
WardiTV TLMC #15
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 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.