Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
18 crawler(s) on-line.
 115 guest(s) on-line.
 1 member(s) on-line.


 A1200

You are an anonymous user.
Register Now!
 A1200:  1 min ago
 pixie:  13 mins ago
 retrofaza:  14 mins ago
 DiscreetFX:  35 mins ago
 OlafS25:  1 hr 10 mins ago
 BigD:  1 hr 11 mins ago
 zErec:  1 hr 18 mins ago
 amigakit:  1 hr 21 mins ago
 kolla:  2 hrs 4 mins ago
 edwardsjethro:  2 hrs 56 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  What's with all these program needing WGet?
Register To Post

Goto page ( Previous Page 1 | 2 | 3 )
PosterThread
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 14:59:45
#41 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@Xenic

Quote:
Why load a library just to call one simple function in that library instead of spending the day duplicating the function in your own code?


Because using the library would mean less time! If only one function is used then it suits its purpose.

Quote:
Why would you use datatyes to play a sound when you can use ahi directly?


Because once you know how to program it datatypes is a lot easier then using AHI! And AHI is backwards, the library is low level and the device high level. In any case it's a lot easier using dayatypes to load and play a sound that using AHI.

Case in point: I was porting a sound player over to AHI. With the hours it took to convert audio.device to AHI including the bufferng routines I had duplicated the process with datatyoews in much less time!

I can see this is missing the point but you did mention library.

Quote:
Does that include 3rd party SOBJs? They all get loaded external to the main program.


As with libraries, any third party SOBJS should be included with the program.

Quote:
Documentation??


I found it outside of the SDK on the Workbench. But it doesn't say how to program TCP.

Quote:
Loading WGet every time the Internet is checked would be unnecessary if OS4 included a reentrant (pure) version of WGet or Curl (or similar command) that could be made "RESIDENT" using the Resident command in the startup-sequence.


Sure but it's still an external command.

 Status: Offline
Profile     Report this post  
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 15:02:03
#42 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@Chris_Y

Quote:
A library version would be something completely different, for a start you'd lose the ease of just opening and reading files. For example, in ARexx with http-handler you can do this to show a file:


I see your point. Of course, if HTTP-Handler were part of the OS this would be easier to deal with.

 Status: Offline
Profile     Report this post  
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 15:09:33
#43 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@Tomas

Quote:
Why go through the trouble of coding something twice when you can just use wget which works very well for this purpose?


Because that is missing the point. Let me lay it on the line. WGet is a CLI command, An executable binary should not be using a CLI command to perform a function such as reading data off a medium. That makes it looks sloppy and unprofessional. Only in isolated cases should a CLI command be called.

What should be done is to use a static or shared library.

Quote:
But i guess you rather want the little developing resources we have be wasted on this instead


No, I want those resources to be used properly.

 Status: Offline
Profile     Report this post  
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 15:10:53
#44 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@salass00

Quote:
I'm surprised no-one else has mentioned it yet, but there is also Chris Young's excellent http-handler:


I thought Chris already had.

 Status: Offline
Profile     Report this post  
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 15:17:10
#45 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@Arko

Quote:
Because nothing like this is available under C:


I don't want anything used from C: in this case.

Quote:
You are asking every program inluding its own wget implementation, most programmers are glad if they can use something ready.


What is being used is intended for shell scripts and CLI. Not for programs.

 Status: Offline
Profile     Report this post  
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 15:19:20
#46 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@djrikki

'Quote:
I too share the opinion of Olsen who explains all very clearly. Why reinvent the wheel? If there are tried-and-tested tools out there already then no-one should be afraid to use them in their own developments.


Tried and tested tools, yes. Not tried and tested functiions to be used "inside" programs.

 Status: Offline
Profile     Report this post  
Hypex 
Re: What's with all these program needing WGet?
Posted on 29-Feb-2012 15:22:03
#47 ]
Elite Member
Joined: 6-May-2007
Posts: 11180
From: Greensborough, Australia

@Fab

Quote:
I don't think calling an external command from a program is very elegant, actually (especially if the said command not integrated in the OS and that various versions are available). For scripts, it's another matter, of course, nothing wrong there.


Thankyou! Finally someone who gets the point. And with whom I agree with.

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle