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
This table on interesting interactions with == is probably the most striking part though.
Although that
$arg = 'T'; $vehicle = ( ( $arg == 'B' ) ? 'bus' : ( $arg == 'A' ) ? 'airplane' : ( $arg == 'T' ) ? 'train' : ( $arg == 'C' ) ? 'car' : ( $arg == 'H' ) ? 'horse' : 'feet' ); echo $vehicle;prints horse is just as good.
That seems like a good example of why not to use flash for your website, especially if it is the entirety of your website interface. I have no idea what page you were actually trying to link, but I can only assume it is somewhere in there.
No, just me using the wrong clipboard for pasting links then not checking what's being linked to. Thanks for catching it.
That's right. The value will have already overflowed. The expression "i > INT_MAX" should never evaluate to true.
Oh, I agree that it's perfectly possible to create sane PHP code. I work with the language pretty often, much to my chagrin, and I've developed conventions to keep it sane.
I'm not saying it should be avoided, because it can't be avoided. I just think, as that page says, that computer science is a very young discipline, and it can be helpful (and amusing) to identify and analyze the things we do wrong. In this particular case, the thing we did wrong was the majority of a language.
heh
the flash made me think it really was the right website and I couldn't find what you were talking about because it'd be hard to actually directly link
hm, that's the same site someone else linked earlier. it's pretty illustrative of the problems php has though
Ooo, apparently we've already covered the thing I linked to. Ooops. My bad.
His points up top about predictability and consistency are especially important, and probably the #1 thing that makes PHP terrible to use.
I don't think he's written any such article. Some people were talking about C# only running on Windows in the comments, but he wasn't involved.
Ah, fair enough. Doesn't shock me that any sort of programming blog turns in to a language religious war in the comments section.
Sorry but I read this and had to ask... were you ever really like, 'hey let's throw up?'
Going on four days now without hearing from one of my employees, good job dude.
Hah was this what I said when I was talking about MFC?
Four days? What in the fuck...why do people think this kind of stuff is okay?
If something that major in your life happened that you need to be gone for four days, maybe call your boss and at least give them a heads up?
I mean, I'm hoping the guy is alright, but if he is alright, someone needs to teach him about the real world.
It doesn't need to be open sourced. WPF is just a combination of XAML + Avalon. The issue with WPF on other platforms is the Avalon bit, not the XAML bit. In fact, Mono already has System.Xaml.
Mono is working on an Avalon-esque system that piggy backs on DRI, but DRI is still flaky as shit on most Linux platforms, so there is no telling if it ever comes to fruition...but that is a pre-requisite to ever seeing 'WPF' on a non-Windows platform.
i've had a couple of run in's with this type of behavior... once it was a guy who got himself arrested, once it was a guy who managed to get himself hired only to take advantage of the dental plan... my boss hated dealing with HR so much it took him like 3-4 months of not showing up 80% of the time to be let go.
The latest time one of my guys went missing on me was because he killed himself. Pretty please, check that this isn't the case, and if it unfortunately is, PM me, and I'll point you in direction for resources with how to deal.
Joe's Stream.
I can't even wrap my head around that even after reading more about right vs left associative ternary operators.
http://stackoverflow.com/questions/7407273/why-is-the-conditional-operator-right-associative
WTF
Diablo 3 Profile
talk to HR, tell them the situation and get his contact/next of kin contacts. start making calls. hopefully with no nasty surprises.
Joe's Stream.
If he's there he'll probably be like "uh yeah sorry I'm not dying or in jail or anything." Plus they can usually tell you if he's been booked for something too.
Well, sort of, I'm getting paid to do my normal tech support job but I'll be off the phone for a few minutes to tomorrow to write a python script to save us from a (likely one-time) boring, monotonous task.
In any case, I can put it on a resume
GOSUB 9990 10 BLAH .... 100 BLAHMORE! 9990 ... CODE HERE IF ART EQ 2 THEN RETURN TO 100 RETURNUnofficial PA IRC chat: #paforums at irc.slashnet.org
Not quite. Avalon is a low level vector drawing API in Windows, that is backed by hardware acceleration through WDMI drivers (the driver architecture introduced in Windows Vista).
WPF is a class library wrapped around that low level drawing API which uses XAML to express layered object hierarchies. You can write low level Avalon code and you aren't writing "WPF". You can certainly do WPF without XAML, but there is no point really. Having the view layer expressed separately from the logic layer is a key factor in what makes WPF....WPF. You could do this with partial classes or aggregate proxies, but it wouldn't be nearly as clean.
The reason WPF does not exist in Mono is not because Mono is incapable of presenting the WPF API, but because it has no ubiquitous vector graphics API to connect to. Things like Berlin are trying to make vector graphics ubiquitous at the driver level in Linux, but it isn't quite there yet.
Every task can be done functionally though. ^_^
(And for the record, my intro cs class this summer is using python. I'm still developing the class, but if people that are learning about programming/cs are interested in previewing materials, let me know.)
Five years ago, learning PHP was a nightmare in school because we did it with Notepad and Dreamweaver, and debugging that shit boiled down to uploading it and checking the php error your browser spat at you. I got mad and jealous when an internship used nothing but Zend Studio and wow, what a difference.
After a five year hiatus due to ROTC, for that senior design project I just finished, I noticed Dreamweaver caught up with PHP error detection alongside Zend Studio where dropping the extra $270 was not necessary.
EDIT - These Java enums are pretty badass. I'm just wrestling with making that hierarchy tree example.
Uhhh, Moonlight is a Silverlight thing. Silverlight != WPF. While Silverlight is a subset of WPF, they are actually different internal code bases with completely different rendering backends.
e: Here is the list of Moonlight dependencies:
Gtk+ 2.0 development package
XULRunner development package
for example: mozilla-xulrunner190-devel for firefox 3, mozilla-xulrunner181-devel for firefox 2
Alsa and/or PulseAudio development packages
Nothing in there is vector or 3D. It doesn't implement a full vectored/scalar transform backend like WPF requires to function. It's a subset, just as it should be.
Dude, PhpStorm. You'll thank me later.
Stack Exchange | http://www.mpdevblog.blogspot.com
You're pretty dedicated to this whole being wrong thing.
Miguel de Icaza has at least never pointed to lack of vector or 3D support as a reason not to tackle WPF. He always points to the complexity of the entire stack. WPF is mostly managed. If the managed parts were opened source the only thing left would be to reimplement milcore.
edit: wait, I want to try more stuff before I complain about this