Forum Moderators: coopster
Which brings me to my main thought: what do you do as a PHP developer when you come across VB based code that you know does exactly what you need, but you can't decipher how it's being done so you can port it over? Do you have VB friends? Do you come to WebmasterWorld and beg someone in the ASP forum for help? Do you give up and waste 20 more hours researching every link on page 72 of the Google SERPs? Are there services out there where people regularly go, and I just don't know about?
So does anyone want to translate 75 lines of code into english (I don't even need it in ASP, just an explanation as to what exactly is happening!) so I can port the process over to ASP? :-)
I'm surprised that you can't decipher the PHP, though - unless it is written in an obscure way, or doing something particularly complex, I find PHP a lot more logical and easier to decipher than ASP.
Any reason why you can't post the PHP here?
I have never found something in asp that I needed.
I also agree with FalseDawn, most of the time php scripts are pretty straight forward.
As far as reading through code and understanding what it is doing it certainly helps when the code uses well-named variables/functions and well-structured code. And if it isn't commented to the hilt then shame on the programmer ;-)
...most of the time ...
Ah yes, the key phrase ;) It might be my ignorance, but this block seems to be above average in relation to complexity.
certainly helps when the code uses well-named variables/functions and well-structured code. And if it isn't commented to the hilt then shame on the programmer
Shame on this programmer for sure ;)
I wasn't going to just drop 75 lines of code in the forum, especially in the first post, and request a description (IMO that's rude). Although, if you want to take a stab, I'll do so.
Re: the talk of knowing multiple languages... I commend all of you for having that vast knowledge of those things, but I'm honestly not in a position where I *NEED* to know multiple languages. My job, which is very stable and very very enjoyable, is to be a classic ASP and .NET developer, in which I do an above average job at. So, I've just never had the need nor the want to dip my fingers in anything else. Instead I just bug you guys when I need to. ;)
Anyway, I'm going to tackle this guy and come back as needed. I think I can do it, there's just some syntax that's a little foreign. PHP.net looks like a good reference though.
What do you do when you don't know?
A: Wait until people call you out and you feel like you should do it yourself ;)
Seriously though, what DO you do when you run into languages you have no experience with and need to get a solution sooner than later?
I do 1 of 2 things (most often #1)
1. muddle around with it until it works, I can usually figure it out, I have books or sites for most languages so I just read up. I very very seldom use other scripts and, as I said, I never even try to use a scipt in a language I have no clue about, I just keep looking.
2. post at WebmasterWorld
>>1. muddle around with it until it works, I can usually figure it out, I have books or sites for most languages so I just read up. I very very >>seldom use other scripts and, as I said, I never even try to use a scipt in a language I have no clue about, I just keep looking.
>>2. post at WebmasterWorld
I like to do that as well, except in the opposite order. :-)
--Nick