• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:22
CEST 04:22
KST 11:22
  • 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
Power Rank - Esports World Cup 202561RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16
Community News
BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams10Weekly Cups (July 14-20): Final Check-up0Esports World Cup 2025 - Brackets Revealed19Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission re-extension5
StarCraft 2
General
Team TLMC #5 - Submission re-extension Greatest Players of All Time: 2025 Update The StarCraft 2 GOAT - An in-depth analysis The GOAT ranking of GOAT rankings #1: Maru - Greatest Players of All Time
Tourneys
Esports World Cup 2025 FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Sea Duckling Open (Global, Bronze-Diamond)
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Ginuda's JaeDong Interview Series [Update] ShieldBattery: 2025 Redesign BW General Discussion Dewalt's Show Matches in China
Tourneys
[Megathread] Daily Proleagues [BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational [CSLPRO] It's CSLAN Season! - Last Chance
Strategy
[G] Mineral Boosting Does 1 second matter in StarCraft? Simple Questions, Simple Answers
Other Games
General Games
Total Annihilation Server - TAForever Stormgate/Frost Giant Megathread Nintendo Switch Thread [MMORPG] Tree of Savior (Successor of Ragnarok) 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
Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread Post Pic of your Favorite Food!
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
[\m/] Heavy Metal Thread Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2025 Football Thread TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Socialism Anyone?
GreenHorizons
Eight Anniversary as a TL…
Mizenhauer
Customize Sidebar...

Website Feedback

Closed Threads



Active: 657 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
Zurich15326 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
Zurich15326 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 7h 38m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 167
RuFF_SC2 133
NoRegreT_ 43
StarCraft: Brood War
Sea 4551
Sexy 56
NaDa 44
Terrorterran 19
Icarus 6
Dota 2
monkeys_forever810
LuMiX0
Counter-Strike
Stewie2K921
Super Smash Bros
Mew2King138
Other Games
summit1g12667
tarik_tv9770
shahzam690
JimRising 349
C9.Mang0213
ViBE182
Organizations
Other Games
gamesdonequick1064
BasetradeTV16
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 80
• davetesta37
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 60
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4957
• Lourlo469
• Stunt257
Upcoming Events
CranKy Ducklings
7h 38m
BSL20 Non-Korean Champi…
11h 38m
CSO Cup
13h 38m
BSL20 Non-Korean Champi…
15h 38m
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
FEL
1d 6h
BSL20 Non-Korean Champi…
1d 11h
BSL20 Non-Korean Champi…
1d 15h
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Sparkling Tuna Cup
3 days
Online Event
3 days
uThermal 2v2 Circuit
4 days
[ Show More ]
The PondCast
5 days
Replay Cast
5 days
Liquipedia Results

Completed

CSL Xiamen Invitational
Esports World Cup 2025
Murky Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
CSLPRO Last Chance 2025
CC Div. A S7
Underdog Cup #2
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

ASL Season 20: Qualifier #1
ASL Season 20: Qualifier #2
ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
HCC Europe
ESL Pro League S22
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
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.