The problem is what happens when someone is incorrectly using a function that you then add an extra arg to? Bad things. Example say we have: function happy() { make_everyone_happy(); }. But someone goes and calls it like this: happy(true);. That is completely valid. Then I go and change the function to be function happy($sad=false) { if ($sad) blow_up() else make_everyone_happy(); }. Since it was never erroring before you are likely not to notice that you've just blown things up.
- Benjamin Golub
Basically, it's a good and a bad thing :). I'm just used to languages where you don't have to check all the calls of your function when you add an arg. Now I know you have to be extra careful doing that with PHP.
- Benjamin Golub
Yeah, I just realized I'm thinking of C, not PHP, where you have to explicitly state that you want to use variable arguments. It's like that in PHP for legacy reasons (and it will not throw any warning/notice/error regardless of how you have error reporting set up). I guess it's always assumed with PHP that before calling a function, you'd check to see what the function is going to do...
more...
- Mark Trapp
It's not considered an error on PHP, I've tried it in the past in our codebase and there was no notice we were doing it
- Jorge Escobar
Just like Javascript. Lovely, isn't it?
- Joel Webber
Hahahaha. This is just the beginning. Maybe you should have looked into this stuff *before* getting acquired. :-) (I'm taunting now while Ben can laugh too. A few more discoveries like this and it won't be funny anymore.)
- Bruce Lewis
Benjamin you are my idol from the time of friendfeed. i'm sure you can have a look to php source code and hack something to improve php
- Fabrizio
Of course, if it's that big of an issue for you, you could always build the error handling into each of your functions. Basically, check to see if any arguments are being passed to the function, check to see if each of those arguments makes sense in the context of the function, then throw an error if they don't belong. That way, you would catch the happy(true) issue before changing the function to function happy($sad=false)
- Curtiss Grymala
Curtiss: we both know that doesn't scale (both with the size of the project and the team) especially with an already established code base. This is just the way PHP works and now I know :)
- Benjamin Golub
What's wrong with not being on lists?
- Bryce Roney
Bryce, most regular users are on a good number of lists. Not being on lists is a "tell" for a spam or bot account. You're on 6, so you pass this test
- Louis Gray
"Dear LazyWeb, I'm looking for a usable C++ IDE for Linux and I'm wondering if you've seen one. Before you start giving the normal suggestions (Ecliipse, NetBeans, just-use-vi) let start off by saying that I've tried Eclipse, Netbeans and Code::Blocks and KDevelop several times, and that I normally hack in some combination of vi and emacs. (yes yes, I know I'm supposed to religiously pick one and be rude to the other... consider me a postmodern hacker)"
- imabonehead
from Bookmarklet
We need some more descriptors - especially for female guru-types. Just about everyone is a Queen, Goddess, Diva or Maven. But I think yer right, there, (please excuse faked down-home, upper-midwest accent) about that purported internet-marketing guru-dom, from either sex (I still think gender is something that has to do with grammar in foreign languages.) For one thing, in 2009, what's the diff between internet marketing and plain old marketing?
- MaryB, BrandingBroadOfFF
Aspiring internet marketing guru, SEO expert, social media maven, web startup entrepreneur, venture capitalist, Robert Scoble clone and Nobel Peace Prize
- Michael Slattery
Just occurred to me that if the word 'author' appears in your bio without it referring to a specific multimedia-development or software process, you probably aren't really a writer.
- MaryB, BrandingBroadOfFF
@Tarmo - LOL - not a Brit... just married to a guy who has exposed me to a lot of British TV. :) Just to make you happy though: "I am Arthur, King of the Britons!"
- Fa La La La Lindsay
Yeah, I was just wondering because I wanted to share the Stanley Kubrick interview material page I found and this didn't seem to fit the profile. :)
- Tarmo Aidantausta
I'd go ahead and share it here. People use it for more than just reviews, despite the profile description.
- Jandy, ConcertMaven of FF
how do people usually create an interface from a C++ library to Python and other languages? Do they create a C library of functions that act as wrappers for the C++ classes and methods?
We are Borg. You will be assimilated. Resistance is futile.
- Katy S
yeah not grok'g the wave yet - waiting for my "eddie would go" moment :-p
- mike "glemak" dunn
from iPhone
+1 Katy S, ps, and im sorry youve been asimilated joey, :(
- chaz2b
I'm seriously irritated with this lack of functionality; I don't feel like I can use Wave until it is fixed. If I want to hear from someone, I'll give out my contact info. I love you guys, but that doesn't mean I want to replicate FF in every place I go on the Internet. Sometimes I need some space.
- joey
Send me a Wave invite when you get one and I promise not to wave you! :P
- veo
I can imagine that frustration. I look forward to having this same problem when I'm invited to Wave...
- Mike Lewis
Wave right now is all about showing off the potential. It reminds me very much of when XML was introduced. Everyone was like, 'Okay, yeah, this is really neat. Now what?'
- Akiva Moskovitz
+1. Google Wave is a giant spam vector at the moment: http://friendfeed.com/bgolub.... I think it's because I am on many contact lists because I am active on developer mailing lists (FriendFeed, Tornado, Twitter, etc.) and Google's default is to add me to your contacts if we have ever had a direct exchange, which happens on occasion....
more...
- Benjamin Golub
I'm having the opposite effect- nothing that interesting going on, need to spur some action. the inability to unsub is HUGE, though.
- anna sauce
I waved at you yesterday Anna. That is a little action.... I guess.
- Joe
I'm a fan, but I'm only using it for specific conversations and projects with small sets of people at the moment. If I see a new wave with more than about 20 people on it, I just delete it.
- Ken Sheppardson
Ken, I was trying to use wave for that. It won't let me delete anything. The wave still shows up in my inbox.
- joey
This is Google. You're not allowed to delete things.
- Akiva Moskovitz
I just select the wave in my inbox and hit the "Trash" button or hit the "Trash" button in the right hand view of the note and it goes away, i.e. it goes to your Trash, and you only see it again if you move it back to your inbox.
- Ken Sheppardson
Oh, Akiva, I should have known. They build their ad servers the same way.
- joey
Ken, I've trashed every message on the waves and the waves themselves but it's still in my inbox.
- joey
Actually, I just tried to archive two waves in my inbox and they stayed there, too. Sounds like a bug.
- Akiva Moskovitz
Y'know I just noticed I can only delete a wave if it's the first one listed in my inbox. Er... first in the inbox and with unread blips. Or maybe only on Wednesday. I give up... sometimes it works, sometimes it doesn't. I guess I've just been lucky.
- Ken Sheppardson
The trash-button is totally unpredictable. Sometimes it works like a charm, sometimes you click it 10 times and nothing happens, sometimes the wave disappears 10 minutes later. Annoying.
- Tapio Kulmala
Um isn't this thing still in Beta? So why would anyone expect it to be perfect now?
- Joe
I think there's a big difference between "expecting it to be perfect" and "expecting to be able to easily delete/unsubscribe from stuff."
- s t e v e
I am on the same wave and I want to THANK that person for adding me so I can see how this works!!!!!!!!!!!!
- Joe
Joe, if you think my post is just whining and you want to be passive aggressive and assume what wave I'm talking about, why don't you just hide this thread?
- joey
Joey just read the documentation that says you can mute threads, but alas, I muted that one we're both on, and it popped up again with unread messages. I think this is an official bug.
- anna sauce
I've tried it on three different threads and it isn't working. I'm just taking a break for now.
- joey
Having the same problem. I have a wave that I can't mute, archive or trash. Really frustrating.
- Brian Newman
@Adewale Oshineye Not necessarily. It could be leak from some alpha tester, but I don't believe it really is...
- Lucius Payne
@angrykeyboarder - TivoOS is "a Linux based OS". OpenWRT is "a Linux based OS". Android is "a Linux based OS". The Linux kernel supports a much bigger ecosystem than the traditional Linux distributions represent. ChromeOS could be radically different to any of the distributions you've listed above - and if you read Google's statements carefully I think you'll see there is a good chance it will.
- Nick Lothian
Google has already stated that ChromeOS will be a customized Linux distribution with some differences compared to all other distros: it will be a bit simplified so as to be easier to use and will have a custom Window Manager (which I guess is why Google works together with NVidia). So, yeah, that may not be a final "ChromeOS" per se, but it could be a real "beta version" (like the first betas of Vista that seemed more like an "XP+" version of Windows).
- Darklord
Dude... It's not Google Chrome OS... It says on http://sites.google.com/site... following: Chrome OS is not related to Google. Service provided by SUSE Studio. See the license.
- Tarmo Aidantausta
PHP and Python are both fine, anything but ASP!
- Mike Chelen
Otto, you sound like me before I actually started programming in Python. It rocks.
- Steve "Daddy do it!" Lacy
Python's the best, I've got to agree with the people who dislike the whitespace thing though (It's still the best).
- Hugh Isaacs II
I tried to use Python, then stopped even bothering when I couldn't find a way to manually define my code blocks. It's a stupid design feature that makes the language unusable for me. Mainly, I don't like using "smart" editors or IDEs for simplistic things, and the whitespace issue makes it more or less mandatory to use one of those. They say Lisp is a language of parentheses... Well, Python is a language of the spacebar.
- Otto
Why would you *not* indent your code that way anyway? Is the ability to format your code badly really a feature worth fighting for? Python forces people to pay attention to formatting, which improves readability and maintainability. Pure win.
- Kevin Shaum
The ability to format my code the way I want to format it instead of sticking to some arbitrary specification that, frankly, makes no sense, is a feature that I will not give up, yes. One size does *NOT* fit all, and there is more than one way to do anything. Making code formatting have *programmatic meaning* is an epic fail, in every sense. I will not now, nor ever, use a language that has this "feature". End of discussion.
- Otto
@Otto It doesn't make it a fail if you don't like it. Besides if that's the only flaw you can find in Python it just demonstrates how much you really know about it. ;) There's a saying in Finnish which translates to English something like: You should try everything once, except folk dancing and incest.
- Tarmo Aidantausta
Tarmo: I disagree entirely. I am the only person that matters! HOORAY EGO! HOORAY BEER!
- Otto
Steve: You'd be surprised. Do you have a car made in the last ten years? Well, there's a better than even chance that some of my code is actually inside your car (and a ~85% chance that my code has affected your car in some manner during manufacture). Have a nice drive home. :-)
- Otto
I don't understand the way you guys are responding to Otto - he doesn't like a key aspect of coding in Python; something that touches every line of code he would write - so why should he continue to mess with it? There are plenty of really good languages out there that he can use and get the job done. he tried it, didn't like it, and moved on. If you like using it great - but his not liking it doesn't reflect on your or the language at all; so why be defensive?
- Bill Rawlinson
Otto: distinguishing between formatting and programmatic logic is subjective. in C for example, a new line character has meaning, so "#include <iostream> void main()" would be different than putting them on separate lines.
- Mike Chelen
Bill: The reason is, virtually every programmer responds the same way the first time they look at Python; but most people who stick with it a few days *completely* reverse their opinions. I went months thinking Python was awful before really digging in, and found out I had been missing out on something really cool.
- Kevin Shaum
Kevin: Why should I stick with it? I've read several code examples of it, I see no inherent advantages to using it (especially since virtually every other modern language offers a very similar feature set), and trying to adhere to its annoying and strange formatting standards drives me straight up the damn wall, so no. The hell with it. Python is the only language I've ever seen where...
more...
- Otto
While I do agree with Otto of the ridiculousness of whitespace having an effect on program execution, I disagree with Otto's stance on branding Python as a bad language per se. It is a nice language to ease beginners into writing nicely formatted code, although I shudder to think of writing huge apps with it. As was posted, there is no such thing as a one-size-fits-all language. Me? Oh,...
more...
- Pandu ● IT Optimizer
from fftogo
Otto: my reason for learning python was originally that it was the only language supported by google app engine, which has a certain utility. since they now support java as well, it is more due to seeing some elegant examples in python, and that if from google's point of view any language is somehow comparable to java, there is probably a good reason to learn more about it ;)
- Mike Chelen
Where it published? is there any story with it
- Satya Prakash