![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
Developers -- What do you use for APIs?
Obviously it depends on the project, but in general, what methodology do you prefer for developing APIs? Just simple HTTP POST / GET, XML, SOAP, REST, or? And in what format do you return the results? Raw text, name/value pairs, XML, JSON, serialized array?
I used to just pass XML request back and forth, and thought that was great. Then this young, ambitious, intelligent russian who now works for Microsoft convinced me to use SOAP for a large project we were doing together. Absolutely hated it at first, and couldn't think of a more complex way to send data between servers. Once you get the WSDL and everything in place though, it's actually great, as you don't even have to worry about the data transfer part. It's all just functions, plus it can easily be used across multiple platforms (PHP, Java, .NET, etc.). On to REST right now, with returning either JSON or serialized arrays, depending what they want. Gotta say, I think I found a winner! ![]() How about you other developers? What do you use for APIs, and why?
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Compiled C++ API's?
To interpreter languages a simple query string. Sometimes, I think programmers/coders get paid by the line — they create overcomplexity. TMTOWTDI |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Quote:
![]()
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Mar 2001
Location: Murrieta, CA
Posts: 3,620
|
We are using both SOAP, HTTP POST / GET, SMPP and some XML feeds.
I like HTTP as then I'm able to see exactly what's going on too ![]() ![]() SOAP appears to be very stable
__________________
I buy plugs Skype: Due_Global /Due |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
SOAP is great in ways, but a pain in the ass to setup. If you've ever opened up Notepad, and wrote a WSDL file from scratch, you'll know what I mean. Has its benefits though. Once setup, you don't even know data is being passed between servers, and it's the same as calling any function within the software. Great concept, but unfortunately developed by Microsoft, so of course it's overly complex for no reason whatsoever.
Nonetheless, for larger APIs, I think I'm going withe REST from now on. Much nicer, and better to work with. ![]()
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
Let me take a wild guess. You're 40+ years old, correct?
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: May 2008
Posts: 3,406
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
Quote:
Code:
require_once(SOME_LIBRARY); Code:
$client = new SOAPClient(SOME_WSDL); Still overly complex though, and a pain though. ![]()
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Yep — that means?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
Ever since I started in this field, back when I was 19, I've always pinned a developer's shelf life at 35 years old. After that, the creativity and innovation disappears, plus they can't competently keep their mind wrapped around 2000 different things at once, which is what's required in a good developer. I've always told my clients to stay away from hiring developers 35+ years old, as they're not going to be providing you with the most innovative, creative, and cutting-edge solutions, which is what's required to succeed as a business.
That means I have about another 5.5 years to get myself in a management position, where I never have to type a single line of code again.
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Sep 2007
Posts: 766
|
Quote:
I remember one guy that was offered countless times to take a management position. He did not want to: he just had more fun writing code. He may not have been the fastest in jotting down lines, but what he did was clean and *worked*. He had a singular gift for writing almost bugless code. We could have released his stuff with no beta testing.
__________________
-- |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
I am a Web Developer. I suppose that is like an Executive Producer in the motion picture industry (similar in function.)
Just for the record, SOAP is not exactly new ... I suppose the "how" part depends on what is needed to be achieved. If you define a "developer" as someone who develops necessary programmatic code ? I am the guy that specifies the necessary end result. Seeing how what you do fits into the greater picture is what really counts. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
@alf6300: There are exceptions to every rule.
![]()
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Registered User
Industry Role:
Join Date: Apr 2010
Posts: 61
|
We do the most in XML, we have for the eritoc partys and swingerclubs a XML feed to all pages, clubs, event companys, provider... most of them in plain PHP script.
the ticked system (book a place on a party, show, event...) is a mix of SOAP, php and shell sripting. we have a server only for the event reservation. on the webserver at the client side we run php script that puts a XML file on the drive without any database and crap, easy to run it on the remote server (club owner, event...). a shell sript checks every hour with a http request (wget/curl) the XML pages on the remote system, put them on a tmp folder and make a short check with a awk script, after them a php script put the informations into the database. steady customer have a direct access to the XML interface the send a POST request to the server like: <event>freefuck 2011</> <do>reservation</> <person>female:1 male:3</> with a easy fsockopen and fput php scriot. i dont like to code 200 include files and 500 php classes for a easy operation :-) here in germany we have ppl they are "HTML software architect" the need at least 2 inluce files and 5 classes for a "hello world" php script. Very funny is to see a php script that starts with: PHP Code:
__________________
ICQ:#633||956||998 CapitolGangBang Real german gangbang partys and erotic events. [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Mar 2008
Location: olde europa
Posts: 199
|
SOAP is a pain with PHP when you want to add authentication to it "by yourself", ie. without using any other library.
For the REST part, I do like JSONP for its protection against XSS (no direct eval of JSON code here).
__________________
I like sexy porn |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
The "devil" we know best is generally the "devil" we rely upon. This would explain much of the "swiss army knife" approach. The most simplistic (and generally the least lines, classes, modules, what have you) code that you can use, that will accomplish the task, is generally best ... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
|
Quote:
__________________
The Only Time When Success Comes Before Work Is In A Dictionary. Did you ever notice: When you put the 2 words 'The' and 'IRS' together it spells 'Theirs.' |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
I prefer to keep things simple:
HTTP POST / GET. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Registered User
Industry Role:
Join Date: Apr 2010
Posts: 61
|
Right, perl rocks, and its easy like PHP.
__________________
ICQ:#633||956||998 CapitolGangBang Real german gangbang partys and erotic events. [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
Confirmed User
Industry Role:
Join Date: Oct 2007
Posts: 1,448
|
Quote:
EDIT: Sorry, Larry Wall developed Perl when he was 33, so I'm a little off with the under 30 remark.
__________________
xMarkPro -- Ultimate Blog Network Management Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Right, as we age we understand our errors
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
Soap and xml sucks, way to much data for comm.
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |