Forum Moderators: coopster

Message Too Old, No Replies

What do you do when you don't know?

How To... Level 1

         

mattglet

11:59 pm on Dec 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm an ASP/.NET developer at heart, always will be. However, it really agitates me when I look for a pre-built solution to make my life easier and I find 100 different versions built in PHP/Perl/Not ASP, and nothing VB based. So, I of course download it anyway and try to decipher the alien syntax... always to no avail. For instance, right now I have 75 lines of PHP that are as good as another hole in the head, but I know it's like the Holy Grail -- I decipher it and my life is great!

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? :-)

FalseDawn

1:32 am on Dec 15, 2005 (gmt 0)

10+ Year Member



I'm lucky (or unlucky, however you want to think of it) in that I use ASP professionally and PHP personally for E-commerce, so know both :-)

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?

jatar_k

3:45 pm on Dec 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



trouble is, the same issue doesn't happen the other way. I might find something in perl and I either use it as is or sometimes rewrite it if I don't like the way it is doing something.

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.

coopster

3:57 pm on Dec 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I code in quite a number of different languages and the best thing going is to have the manual(s) handy. I won't sit here and tell you that I can remember all the functions in each language or the exact syntax all the time. I know the function is there, I know relatively close what the name may be, but often times have to grab the man pages to freshen up when reading code or applying it to new code. I used to code in ASP but ditched it long ago. If I have to pick it up today I can stumble through some of it, but without a manual I would be hurting.

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 ;-)

mattglet

4:00 pm on Dec 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...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.

jatar_k

4:05 pm on Dec 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



go for it mattglet

LeChuck

7:10 pm on Dec 15, 2005 (gmt 0)

10+ Year Member



Do it, you know you want to...

whoisgregg

9:08 pm on Dec 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just 75 lines? Definitely go for it. ;)

jatar_k

9:38 pm on Dec 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hehe, rereading the thread title

question: What do you do when you don't know?

answer: post at WebmasterWorld :)

PeteM

11:49 pm on Dec 15, 2005 (gmt 0)

10+ Year Member



If you regard yourself as a programmer you should learn as many languages as possible. I know a few (Cobol, CICS, PL/1, Easytrieve, ISIS Papyrus, M/Text, Dialogue, Basic, OGL, JCL, DB2, HTML) but PHP is one of my favourites.

It has to be said that once you've learnt a few the others are easy.

Pete

mattglet

1:25 am on Dec 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, all this talk of "Do It Yourself" has forced me to swallow my pride and figure it out for myself.

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?

PeteM

7:37 am on Dec 16, 2005 (gmt 0)

10+ Year Member



Personally I'm not keen on php.net. I have some quickstart guides that are far friendlier. Failing that I google for the answer, somebody on some forum has usually had the same problem. If that doens;t work then a question on this forum always gets an answer.

Pete

jatar_k

5:04 pm on Dec 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> 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

ergophobe

5:41 pm on Dec 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wasn't going to answer the original question since the thread seemed to have gone in another direction, but when I need to figure out something in VB (usually VBA actually), I usually muddle around with the documentation the Microsoft site which is pretty good. Failing that I do a google search. And failing that I post a question somewhere.

ramoneguru

1:17 am on Dec 20, 2005 (gmt 0)

10+ Year Member



>>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

I like to do that as well, except in the opposite order. :-)
--Nick