• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:07
CET 18:07
KST 02:07
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA14
StarCraft 2
General
SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3: RO16 results & RO8 bracket RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
2v2 maps which are SC2 style with teams together? BGH Auto Balance -> http://bghmmr.eu/ Data analysis on 70 million replays soO on: FanTaSy's Potential Return to StarCraft A cwal.gg Extension - Easily keep track of anyone
Tourneys
[BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile Nintendo Switch Thread Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2051 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
Zurich15355 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
Zurich15355 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 2h 53m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 574
IndyStarCraft 128
BRAT_OK 62
MindelVK 24
StarCraft: Brood War
Britney 28624
Calm 3413
Rain 2695
GuemChi 643
actioN 272
firebathero 248
BeSt 142
Backho 66
Oya187 52
Killer 50
[ Show more ]
Barracks 31
zelot 23
ToSsGirL 21
scan(afreeca) 20
JulyZerg 13
SilentControl 9
HiyA 9
Sacsri 8
Shine 8
Bale 6
Dota 2
Gorgc8615
qojqva2765
singsing2174
Dendi801
League of Legends
rGuardiaN38
Counter-Strike
ScreaM1744
pashabiceps1082
byalli620
allub266
oskar131
Heroes of the Storm
Khaldor680
Other Games
FrodaN2256
Hui .354
Fuzer 294
KnowMe119
XaKoH 104
ArmadaUGS76
mouzStarbuck74
Organizations
Dota 2
PGL Dota 2 - Main Stream27208
Other Games
EGCTV1658
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH182
• poizon28 25
• IndyKCrew
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Pr0nogo 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2282
• WagamamaTV451
League of Legends
• Nemesis3172
Other Games
• tFFMrPink 18
Upcoming Events
IPSL
2h 53m
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
2h 53m
StRyKeR vs Artosis
OyAji vs KameZerg
OSC
5h 53m
OSC
15h 53m
Wardi Open
18h 53m
Monday Night Weeklies
23h 53m
OSC
1d 5h
Wardi Open
1d 18h
Replay Cast
2 days
Wardi Open
2 days
[ Show More ]
Tenacious Turtle Tussle
3 days
The PondCast
3 days
Replay Cast
4 days
LAN Event
5 days
Replay Cast
5 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-11-21
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 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.