|
I think php is basically what you get when you just slap a bunch of things together without sitting back down to look at what you've done. Then add even more poorly thought out poo poo on to that base of poo poo for another 16 years.
|
# ? Nov 3, 2011 21:48 |
|
|
# ? Jun 5, 2024 23:03 |
|
Optimus Prime Ribs posted:I have to wonder: is Ramsus just a gigantic meat-head or is PHP an elaborate troll? Rasmus Lerdof posted:I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests. Rasmus Lerdof posted:I don't know how to stop it, there was never any intent to write a programming language [...] I have absolutely no idea how to write a programming language, I just kept adding the next logical step on the way.
|
# ? Nov 3, 2011 21:50 |
|
Rasmus Lerdof posted:I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests. Did he seriously say this?
|
# ? Nov 3, 2011 22:33 |
|
Optimus Prime Ribs posted:Did he seriously say this? Ya, it is a very famous quote. (Well, famous as far programming language creator quotes go) http://en.wikiquote.org/wiki/Rasmus_Lerdorf
|
# ? Nov 3, 2011 22:40 |
|
The real horror is people who took a lightweight templating language and decided to hack it into a full web development language by copy-pasting all the C apis for stuff.
|
# ? Nov 3, 2011 22:50 |
|
PHP is as much an approach to engineering and problem solving as it is a language.
|
# ? Nov 3, 2011 23:05 |
|
Jabor posted:The real horror is people who took a lightweight templating language and decided to hack it into a full web development language by copy-pasting all the C apis for stuff. creating a sensible library for your language is way too much work compared to just writing thin wrappers around c apis
|
# ? Nov 3, 2011 23:11 |
|
Internet Janitor posted:PHP is as much an approach to engineering and problem solving as it is a language.
|
# ? Nov 4, 2011 00:36 |
|
TRex EaterofCars posted:I think php is basically what you get when you just slap a bunch of things together without sitting back down to look at what you've done. Then add even more poorly thought out poo poo on to that base of poo poo for another 16 years. The Star Trek of languages.
|
# ? Nov 4, 2011 00:41 |
|
Who'd have guessed Calibre has terrible developers? https://bugs.launchpad.net/calibre/+bug/885027
|
# ? Nov 4, 2011 01:33 |
|
Worse is better.
|
# ? Nov 4, 2011 01:35 |
|
For better or worse.
|
# ? Nov 4, 2011 01:36 |
|
Sewer Adventure posted:Who'd have guessed Calibre has terrible developers? That thread went downhill faster than a tobogganist with diarrhea. So, anyone got a good CLI alternative for Calibre?
|
# ? Nov 4, 2011 03:05 |
|
quote:FWIW I didn't know anything about calibre before reading this. I read this because it was handed to me as an example of how not to handle a bug report. As I read through it, and the argument about whether having an application that lets anyone mount anything anywhere, a realization slowly dawned on me...
|
# ? Nov 4, 2011 06:25 |
|
Sewer Adventure posted:Who'd have guessed Calibre has terrible developers? Reading this made my day, thanks!
|
# ? Nov 4, 2011 07:54 |
|
Haha, incredible.quote:You mean that a program designed to let an unprivileged user You mean redefining a massive security vulnerability as a feature doesn't make it any less insecure? I'm shocked. e: awww this is just cute quote:I'm not sure this is actually exploitable...the posted exploit fails on my GNU/kFreeBSD box: Jonnty fucked around with this message at 14:00 on Nov 4, 2011 |
# ? Nov 4, 2011 13:49 |
|
It's amusing how many times the developer claims something is fixed, followed by someone posting an exploit to prove it's not. I don't understand why he got mad at that Dan Rosenberg guy, other than bruised ego.
|
# ? Nov 4, 2011 18:01 |
|
it's more along the lines of 'no, you see I made bash suid on purpose, you stupid security person'
|
# ? Nov 4, 2011 18:06 |
|
Toady posted:It's amusing how many times the developer claims something is fixed, followed by someone posting an exploit to prove it's not. I don't understand why he got mad at that Dan Rosenberg guy, other than bruised ego. Yeah what the gently caress was up with kovid's "final warning" to Rosenberg? As far as I can tell Rosenberg's been cordial the entire thread.
|
# ? Nov 4, 2011 19:12 |
|
Not to mention helped him out of severe future embarrassment. I don't think he realizes that this is finding security holes in your project done via the easy way. No, instead it's this defensive, adversarial attitude, "Go on, just try and see if you can find yet another glaring security hole in my program for me. I'll just fix it Otherwise, I'll ignore you "
Bhaal fucked around with this message at 19:47 on Nov 4, 2011 |
# ? Nov 4, 2011 19:45 |
|
He admitted he actually put Rosenberg on ignore, causing him to miss one of Rosenberg's exploit reports.Jonnty posted:e: awww this is just cute It's a tongue-in-cheek reference to this: http://www.exploit-db.com/exploits/15704/ Toady fucked around with this message at 23:26 on Nov 4, 2011 |
# ? Nov 4, 2011 22:00 |
|
code:
The Zen of Python posted:Explicit is better than implicit. follow your own advice. For context, to set the default unicode encoding in python you apparently need to edit the site.py file for ALL of python everywhere, and if 0 is how they choose to do it (you could also use an essentially undocumented feature in 'sitecustomize' which is what I did instead) Lurchington fucked around with this message at 01:37 on Nov 5, 2011 |
# ? Nov 5, 2011 01:34 |
|
Toady posted:He admitted he actually put Rosenberg on ignore, causing him to miss one of Rosenberg's exploit reports. Oh whoops, didn't actually see the name there somehow.
|
# ? Nov 5, 2011 14:00 |
|
Lurchington posted:
Can't you just redefine that method in your own code?
|
# ? Nov 5, 2011 22:20 |
|
Found something I think is horrible; the framework for an e-commerce site I'm doing work on generates its pages based on where certain comments are, which caused me a certain amount of difficulty when certain of those comments were duplicated. It might just be that I learned to program with languages that actually respect comments, but this is madness. It's like building a mansion with a marble frieze spelling out "The Owner is a twit", just because somebody scribbled a note on the plans. Comments are for people, not programs.
|
# ? Nov 6, 2011 03:29 |
|
darthbob88 posted:Found something I think is horrible; the framework for an e-commerce site I'm doing work on generates its pages based on where certain comments are, which caused me a certain amount of difficulty when certain of those comments were duplicated. It might just be that I learned to program with languages that actually respect comments, but this is madness. It's like building a mansion with a marble frieze spelling out "The Owner is a twit", just because somebody scribbled a note on the plans. Comments are for people, not programs. So basically someone's recreated IFDEF in...what, PHP? Except with comments instead of, you know, ifdef. Fantastic. Let me guess, they have a file that reads other PHP files and evals code based on comments? It seems like one of those "I wonder if PHP can do this..." ideas that got out of hand
|
# ? Nov 6, 2011 03:33 |
|
BonzoESC posted:Can't you just redefine that method in your own code? I was trying to make the default unicode encoding for my project UTF-8, and along the way found out more than I really wanted to know how python does that. Short version is that there is a sys.setdefaultencoding method, that's DELETED by site.py when the interpreter is activated. The function I pasted in is from site.py and is used to set the default unicode encoding to ascii. So, while you could redefine, or even monkeypatch the original method, the site.py one is going to get called first. The way you're supposed to do it define a 'sitecustomize' module that does what you want, and tha's what I'm doing
|
# ? Nov 6, 2011 06:56 |
|
OriginalPseudonym posted:So basically someone's recreated IFDEF in...what, PHP? Except with comments instead of, you know, ifdef. Honestly don't know much about the system; I'm doing some simple work on a website which uses that framework, some simple Javascript and CSS work. Apparently it might be written in ASP.
|
# ? Nov 6, 2011 07:33 |
|
Lurchington posted:I was trying to make the default unicode encoding for my project UTF-8 This will only cause endless suffering Try using python 3 if you have unsatiated cravings for unicode.
|
# ? Nov 6, 2011 08:55 |
|
tef posted:This will only cause endless suffering Python 3's the "right" one to use for new work, just like Ruby 1.9.3 is the "right" ruby, right?
|
# ? Nov 6, 2011 16:09 |
|
tef posted:This will only cause endless suffering We deploy on centos, so this project is first one we've got buy-in for 2.7 (from 2.6). We'll probably make the jump when 3.3 goes final, so we're prepping for the switch now by doing a lot of the future imports like unicode_literals. Unicode literals being the thing that showed that logging non-ascii data is a gigantic pain unless you manually encode as something else, which led to my search for default encoding. e.g. code:
despite being a unicode string, that won't log right if username is 'andré' because the default unicode encoding is ascii. The formatting comment (link) in your module won't help here, since the string would need to be implicitly encoded to utf-8 in the logging module, which doesn't have the comment. All of this is pretty much the exact same in Python 3. The main change is that everything's unicode, not that encodings are suddenly handled better.
|
# ? Nov 6, 2011 22:38 |
|
BonzoESC posted:Python 3's the "right" one to use for new work, just like Ruby 1.9.3 is the "right" ruby, right? My personal policy is python 3 unless I'm making something that uses 2.x.
|
# ? Nov 7, 2011 07:27 |
|
Ditto for ruby 1.9, and I honestly don't remember the last time I used a 1.8-only library.
|
# ? Nov 7, 2011 07:50 |
|
pokeyman posted:Ditto for ruby 1.9, and I honestly don't remember the last time I used a 1.8-only library. You won't find it in one of mine: s.required_ruby_version = '~> 1.9.2'
|
# ? Nov 7, 2011 11:46 |
|
How often does a new Ruby or Python update gently caress up your code, either directly or indirectly through incompatible libraries? I usually have enough of a library hell in C/C++, Java and in lesser degree Common Lisp.
|
# ? Nov 7, 2011 13:05 |
|
Beef posted:How often does a new Ruby or Python update gently caress up your code, either directly or indirectly through incompatible libraries? I usually have enough of a library hell in C/C++, Java and in lesser degree Common Lisp. Most utility or API libraries that don't do weird interpreter stuf don't have problems. The kind of version conflict I run in to most is Gem A depending on rack ~> 1.3, and Gem B depending on rack ~> 1.2.4.
|
# ? Nov 7, 2011 14:52 |
|
Beef posted:How often does a new Ruby or Python update gently caress up your code, either directly or indirectly through incompatible libraries? I usually have enough of a library hell in C/C++, Java and in lesser degree Common Lisp. Python 2 releases: typically not much. You might see some breakage if you were using strings as exceptions: code:
code:
Python 2.x -> 3, though: (Actually it's not that bad. Run the code through 2to3.py, fix anything that it couldn't, remove some unnecessary calls to list that it isn't smart enough to omit, and you'll probably be fine. This is only for pure Python code: I don't think there's an automated way to update extension modules written in C.)
|
# ? Nov 7, 2011 14:59 |
|
Lurchington posted:We deploy on centos, so this project is first one we've got buy-in for 2.7 (from 2.6). We'll probably make the jump when 3.3 goes final, so we're prepping for the switch now by doing a lot of the future imports like unicode_literals. I would suggest: code:
|
# ? Nov 8, 2011 14:12 |
|
that's a really useful way to get around this kind of thing, but this quest was started because of the fact that so much of our data really was UTF-8, so were pasting that decode method around most log lines. Thanks for the reminder though
|
# ? Nov 8, 2011 15:37 |
|
|
# ? Jun 5, 2024 23:03 |
|
quote:filedesc://IA-001102.arc 0.0.0.0 19960923142103 text/plain 200 - - 0 yup, the names of the headers are in the body of the record
|
# ? Nov 9, 2011 02:37 |