Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it,
follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given
their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!
SELECT * FROM posts WHERE tid = 'PA PROGRAMMING THREAD'
Posts
Go PHP go!
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
JSP and STRUTS? Nuke it from orbit. Only way to be sure.
Joe's Stream.
I'm playing around with a stupid simple HTML5 front end, using Canvas for simple 2D drawing, and I want to try some server side communication. This is completely a toy project, will never make it beyond a week or two of me playing with it.
I was thinking of doing an ASP.NET MVC4 backend and just doing RESTful AJAX calls for the server side communication, but that requires an async challenge/response architecture which doesn't seem great even for a simple game. WebSockets allowing UDP style burst/multicast packet communication between a web page and a web server.
Stack Exchange | http://www.mpdevblog.blogspot.com
I suppose I could? Most browsers get very cranky when you try and open raw sockets in JavaScript. It's a huge security red flag.
e: Question answered: .NET 4.5 has WebSockets built in to ASP.NET. This is good, since I am doing all this with VS 11/.NET 4.5/ASP.NET MVC 4.
You should still be able to use websockets client side and then server side whatever combination you want? If I'm understanding you right.
MVC is a design pattern, and JSP/Struts/Beans sorta kinda did it... As did plain old ASP. As did most "good" client server apps...
Joe's Stream.
I am aware of what MVC is, I do MVC/MVVM/MVP all day, every day, at work. The point is there are frameworks built around the concept, that make it a breeze to do. Classic ASP did not do this, nor did ASP.NET, nor does JSP/Struts/Beans.
Go look at a serious MVC framework like Rails and see everything that it does to make it "real MVC". It's more than just a way to structure code.
My question wasn't "Can you do MVC with Java", it was "Has the Java world provided a competent MVC framework yet".
Stack Exchange | http://www.mpdevblog.blogspot.com
WebSockets aren't regular sockets, you don't connect to an IP and a port. You make calls to a web URL. The server either has to support that at some level, or you have to do some crazy URL re-writing magic to route the calls (which is certainly possible, and very likely what Node and ASP.NET 4.5 do on the backside).
I think Play! is the goto java (and scala) Django/Rails/.Net MVC like solution. I haven't used it, but have heard good things about it. Some day I'm going to tinker with it using their Scala API.
The Play! framework does a pretty good job of this. Of course, it leans heavily on scala, and the 1.x series had a python pre-compiler to turn your scala into java, but hey, whatever, its a reasonable Java based framework.
Joe's Stream.
Cool. I hate Java, but I will look in to this anyway, because I like to at least glance at every MV* framework out there, as they all have little tricks and such that the others don't do. Since I maintain our MVVM framework at work, it's cool to see the stuff other people do so I can roll that in to the next public release of our framework to the rest of the agency.
It's still a bit different than you're thinking, but it's kind of moot, because ASP.NET 4.5 has WebSocket support, so we're good.
Now to learn HTML5 Canvas...
well, I hate java too, and apparently the Play! guys do as well, which is why it's all scala based.
Joe's Stream.
TDY = '31ý28ý31ý30ý31ý30ý31ý31ý30ý31ý30ý31' DATX = OCONV(DATC,'D2-') LYR = OCONV(DATC,'DY') LYF = REM(LYR,4) IF LYF EQ 0 THEN TDY<1,2> = '29'A shitload of nitpicking on that page to go with a lot of awful design issues. Still, the wide access, ease of installation and the quantity of code currently in use will keep it near the top in popularity for a while.
Saying "It's bad, don't learn about it." is not a good idea and should rather be "Don't learn from it.".
It is still possible to produce sensible PHP code as long as you establish consistent development conventions and environment. Using it as instructional tool? No. Using it as production tool? Not such an obvious scratch.
I mean, I used PHP.net as a resource a lot to look up functions and the comments usually had something relating to what I was trying to do in them. Which is a good thing because typically I'd see that, oh, there's another random exception to the way this function works.
And I definitely noticed all the functions that do the same thing but are named slightly differently, very annoying to try to figure out which one is the proper one to use, typically you could figure it out by seeing which had the most recent comments, though not always.
I had started to look into OO PHP earlier in the year and the info I could find on that was somewhat sparse and confusing.
I'm learning C# at present, and the further I get into it, the more it makes sense. The Head First book is really quite nice, though I'll have to start thinking of what books to go for next after I finish this one.
So just a question regarding that. I thought the websocket support in ASP.NET 4.5 is reliant on IIS 8? So are you running Windows 8 or Windows 8 server beta then to do this new development work?
Diablo 3 Profile
For production it does, but for development, the VS11 dev server supports it out of the box.
Ah so you are just targeting the build to VS11's self hosting facility... I always forget about that because we just setup IIS on all of our dev machines.
Diablo 3 Profile
Looks like it screws up the % 100 (and not % 400) case, Microsoft style!
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
I can't accept don't learn X for valid advice, especially towards young programmers, when we are talking about one of the most heavily represented languages on the job market. Kudos to anybody who can.
Well, this is at home. I'm just playing with it, so yeah. I am not going to install Windows 8 just to get websockets on a toy project, hehe.
Like getting angry because you use C and fuck those guys using C++.
I mean, it's not like it's Java or something, seriously.
I mean, I love that C# hides a lot of low level details from me, because I can spend more time on actual app code...but I still understand those low level details, and I understand how to avoid issues in closer to the metal languages.
PHP is a kiddie toy, and the 3 top in use languages are C, Java, C++. It's a shame that Java is there, as I think it teaches poor practices as well.
PHP falls in the catoegory of "meh, i'd prefer not to, but i'm sure that i can make a mod for you in it" category... It's not really worth "studying", and there are better techs out there. No, it doesn't have that big of an extension base, no it's community isn't that big, why haven't they made the language sensible yet?
If I were *teaching* programming (not computer science), pre-college, I would prbly start off with Python. If you're in a tech college/eng program, C for you.
And if you're @Kambing, I'll be sure to refer them to you as the crazy old professor who swears that every programming task can be done functionally.
Joe's Stream.