Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Other Topics > Programming

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 04-17-2012, 10:26 PM   #3346
veteran
 
Join Date: Sep 2004
Posts: 2,816
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I'm not even sure it's fair to say that FB uses PHP.

Their hand written PHP turns into c++ from a home grown compiler which gets compiled and served as g++. The entire FB site gets served as a single 1GB+ binary (minus static content obviously).

That's a much different PHP than joe blow's PHP which is running on a $4/month shared host.
Shoe Lace is offline   Reply With Quote
Old 04-17-2012, 10:42 PM   #3347
Pooh-Bah
 
Join Date: Jul 2005
Posts: 4,001
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

If they write their site in PHP then they are clearly "using" the PHP language. I don't see how compiling it to something else changes that fact.
Neko is offline   Reply With Quote
Old 04-18-2012, 12:49 AM   #3348
rt1
adept
 
Join Date: Jun 2004
Location: just one rt
Posts: 1,099
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

The funny about people that complain about PHP is they often write awful code. They'll move to languages like Ruby/Python and write slightly better code, because those languages do force better design decisions, but the new code is still very awful... just less awful. Eventually they'll quit writing Rails apps because it's a "bad framework" and move onto the next thing.

I find it interesting how the programming world rarely practices self evaluation and often blames the language for any mistakes that arise.
rt1 is offline   Reply With Quote
Old 04-18-2012, 01:01 AM   #3349
Carpal \'Tunnel
 
Ryanb9's Avatar
 
Join Date: Aug 2006
Location: NEVA!
Posts: 6,372
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

looking for some random quick advice. im on VC++ express2010 and trying to switch from SDL to SFML and just got the binary or w/e you call it form the SFML website and when opening a sample project visual studio is saying "You should only open projects form a trustworth source. The project sfml-audio could present a security risk by executing custom build steps when opened in MSVC that could cause damage or compromise personal information"

And idk what to do.
Ryanb9 is offline   Reply With Quote
Old 04-18-2012, 03:04 AM   #3350
Carpal \'Tunnel
 
clowntable's Avatar
 
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,784
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by myNameIsInga View Post
Well I'm not really looking to do anything with it right now. I come from a background of coding microcontrollers in C/C++ and Assembly language, and just feel like a complete idiot when people talk about web development and stuff so I was looking to educate myself and get a feel for it. I thought PHP was THE language for web stuff so am thankful you guys are educating me on the issue
Which reminds me...Raspberry Pie is shipping, right? I'll probably get one in half a year or so to play around with it. Probably going to try to write an OS or something

Quote:
Originally Posted by Shoe Lace View Post
I'm not even sure it's fair to say that FB uses PHP.

Their hand written PHP turns into c++ from a home grown compiler which gets compiled and served as g++. The entire FB site gets served as a single 1GB+ binary (minus static content obviously).

That's a much different PHP than joe blow's PHP which is running on a $4/month shared host.
They also use other languages i.e. Erlang for the chat thingy iirc
clowntable is offline   Reply With Quote
Old 04-18-2012, 06:27 AM   #3351
adept
 
Join Date: Apr 2010
Location: Deep end of the player pool
Posts: 733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by clowntable View Post
Which reminds me...Raspberry Pie is shipping, right? I'll probably get one in half a year or so to play around with it. Probably going to try to write an OS or something


They also use other languages i.e. Erlang for the chat thingy iirc
Raspberry Pi you mean? From what ive read they are taking orders but im not sure they have started shipping. They got delayed because of some faulty port of some kind. Might get one when I have the time to play around with it, they seem cheap enough
myNameIsInga is offline   Reply With Quote
Old 04-18-2012, 08:55 AM   #3352
veteran
 
Join Date: Sep 2004
Posts: 2,816
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Neko View Post
If they write their site in PHP then they are clearly "using" the PHP language. I don't see how compiling it to something else changes that fact.
What they "wrote it in" is much less relevant than "what they are executing when people actually visit their site". DUCY?
Shoe Lace is offline   Reply With Quote
Old 04-18-2012, 08:58 AM   #3353
lolcat
 
kerowo's Avatar
 
Join Date: Nov 2005
Posts: 20,770
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by rt1 View Post
The funny about people that complain about PHP is they often write awful code. They'll move to languages like Ruby/Python and write slightly better code, because those languages do force better design decisions, but the new code is still very awful... just less awful. Eventually they'll quit writing Rails apps because it's a "bad framework" and move onto the next thing.

I find it interesting how the programming world rarely practices self evaluation and often blames the language for any mistakes that arise.
Isn't that just the “good developers can write good code in any language” argument?
kerowo is online now   Reply With Quote
Old 04-18-2012, 11:53 AM   #3354
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 13,918
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

some of you are really bad at reading and/or really good at getting trolled. i wonder where these quotes came from?

Quote:
Do not tell me that “good developers can write good code in any language”, or bad developers blah blah. That doesn’t mean anything. A good carpenter can drive in a nail with either a rock or a hammer, but how many carpenters do you see bashing stuff with rocks? Part of what makes a good developer is the ability to choose the tools that work best.
Quote:
Do not tell me that Facebook and Wikipedia are built in PHP. I’m aware! They could also be written in Brain****, but as long as there are smart enough people wrangling the things, they can overcome problems with the platform. For all we know, development time could be halved or doubled if these products were written in some other language; this data point alone means nothing.
pretty sure "compiling our php code to a giant monolithic compiled executable" counts as "overcoming problems with the platform".
tyler_cracker is offline   Reply With Quote
Old 04-18-2012, 12:30 PM   #3355
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: Why didn't I use Clojure instead?
Posts: 16,829
Quote:
Originally Posted by tyler_cracker View Post
on to the next troll. this one is about php!

http://me.veekun.com/blog/2012/04/09...of-bad-design/

(i know the author. apparently this article caused quite a ruckus on HN. not as entertaining as the wat talk, but a LOT more thorough.)
are you Mel?
daveT is offline   Reply With Quote
Old 04-18-2012, 01:27 PM   #3356
Carpal \'Tunnel
 
Xhad's Avatar
 
Join Date: Jul 2005
Location: hatredcopter
Posts: 10,195
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Shoe Lace View Post
What they "wrote it in" is much less relevant than "what they are executing when people actually visit their site". DUCY?
Why would what they "wrote it in" be less relevant when nearly the entire list of complaints is about why the author hates writing in the language?
Xhad is online now   Reply With Quote
Old 04-18-2012, 04:05 PM   #3357
Pooh-Bah
 
Join Date: Mar 2008
Posts: 3,665
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by myNameIsInga View Post
Thanks, will do that
I have been working on ruby on rails for the last 2.5 months after having not done any web stuff in 10+ years or programming in a long time (and never at a high level). Since I had to learn a bunch of different stuff at once, as well as getting used to linux (never used anything but windows) it was a steep learning curve, but now I am learning quite quickly and having a good time.

I figure I'll just throw out all the resources I've used to anyone on these forums that is interested in RoR.

Setup: I'm running ubuntu 11.10 on a virtualbox with a windows 7 64 host. Plenty of tutorials on how to setup a virtualbox, and how to setup RoR on ubuntu using RVM (just do this, it'll make your life easier. Don't try to use RoR on windows, it's just more of a hassle than it's worth). Macs are also perfect to work on as well. I then connect to it through a host-only adapter, and do my editing on windows using sublime 2 (which is a nice lightweight text editor). If anyone is interested in using this setup just PM me and I can walk you through it, as I wasted a lot of time trying to figure out why I was being a moron. I run console commands either in the virtualbox or using putty.

Resources:

codeschool.com is pretty awesome actually. Rails for zombies is a free intro course, as well as "try ruby", both of which have screencasts followed by in browser code challenges. They also have a bunch of pay classes on html/css/jquery/intermediate rails stuff, which is only like $20/month and you get prizes like free peepcasts (pretty cool stuff on there) or a free month of pro subscriptions on railscasts.

The best resource by far was the book Rails 3 tutorial by Michael Hartl. You basically build twitter from scratch using RSpec (testing framework), git (version control), both of which are great to learn. There's enough good CSS/HTML in there to help you along if you're stuck with that as well, and it's great to see stuff like authentication written from scratch. I also loved the screencasts of the book, which were something like $80 but well worth it. 15+ hours of him talking through the creation process which is super helpful. I think there's a new version of the book/screencasts coming out, so check to see that it's the 3.1+ version before getting it at this point.

Learning how to do test driven development (TDD) with rspec is just huge. I haven't found another resource that's 1/2 as useful as that book. It's just a practice you should adopt if you want to develop in RoR.

railscasts is a great resource, and once you start working on your own you should just check to see if there is a cast up for the problem you're working on. Saves a lot of time, though he does neglect to test in them (for time constraints).

safaribooksonline is well worth the money to get access to tons of books on programming for something like $20/month.

I'd start by doing the sample twitter app a few times until you 100% understand everything that's going on in there, including git and rspec (you should probably skip the tests the first time through, but make sure to go back and learn them). Then start adding stuff to site like comment support, private messaging, an API, etc to learn. Then build your own site from scratch. Doing is the best way to learn once you get a handle on stuff.

When you start really make sure you get a handle on the MVC (model view controller) logic, and also making sure you understand about REST is important too. Most intro sites/books go into these, but don't just gloss over them as the sooner you understand them, the sooner you'll start getting the big picture.

And if you ever get bugs just google them, there's usually a solution on stackoverflow (or search that site) and you'll get unstuck very quickly.

Hope this helps someone at some point.
Nchabazam is offline   Reply With Quote
Old 04-18-2012, 04:12 PM   #3358
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 11,951
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

interesting article about cracking lottery scratcher tickets:

http://www.wired.com/magazine/2011/01/ff_lottery/
gaming_mouse is offline   Reply With Quote
Old 04-18-2012, 04:45 PM   #3359
Is Right
 
NoahSD's Avatar
 
Join Date: Aug 2005
Posts: 18,795
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by gaming_mouse View Post
interesting article about cracking lottery scratcher tickets:

http://www.wired.com/magazine/2011/01/ff_lottery/
Nice read.

Here's something similar, with a bit more mystery: http://www.dailymail.co.uk/femail/ar...t-4-times.html

Last edited by NoahSD; 04-18-2012 at 04:56 PM.
NoahSD is offline   Reply With Quote
Old 04-18-2012, 04:52 PM   #3360
adept
 
Join Date: Apr 2010
Location: Deep end of the player pool
Posts: 733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Nchabazam, appreciate the advice. Thanks!
myNameIsInga is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 09:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive