hi,

woot, looked at the API docs and its way too ugly... its Java, I
prefer sane programming languages like Python, perhaps Haskell,
SmallTalk, Lisp... (which I'll like to learn..)

Any an API, - and I'm speaking generically, as I don't know Java, and
probably will never learn it..., is nothing more than a standard way
for 2 programs to talk to each other. It basically define functions,
or in OOP, classes & methods and how you call them, ie: what are the
arguments/parameters to pass etc...

Also APIs are used differently depending on wether you are using a
framework or a library.

In a library, your code calls the libarry code using the 'rules' laid
out in the API, call a function, or you instantiate a library's class
and make use of it. So in this case, you can write/organize your code
anyway you want, so long as you just make sure you pass the correct
types of arguments etc... then you are OK.

When using a framework, its the other way around, the framework calls
your code! Hence you have to write your code to conform to the API
that the framework demands. ie: your class (if its OOP, like Java)
must have a specific name, or it must have specific methods that take
certain types of arguments. So you have a lot more restrictions on how
to write your code! But its suppose to be good for you, as the
framework designer knows best and is probably smarter, wiser etc...

And in 'strongly typed languages' it gets more complicated because all
the types have to match, either that or you do 'cast'/conversion and
adaptations, kind of messy.

BTW from what I read up the VineToolkit is a sort of MVC (Model View
Controller) framework (Wikipedia).... and "portlets" are dynamic
objects that render part of a page, that then get aggregated and
served out to form the whole page (using Flex?! why?). - it looks like
a very complicated way to do things ;-)

 Can probably do the same thing with less effort with PHP and JS,
and I do it pretty much simpler with Python.

..can't help more than that, sorry ;-)


On Fri, Apr 8, 2011 at 12:58 PM, Nor Arlina Amirah Ahmad Ghani
<[email protected]> wrote:
> okay my bad. The portal framework is Gridsphere. VT is actually one of the
> grid components to support the grid middleware.
>
> after much fiddling, hair-pulling, and Starcrafting, I managed to get a
> workaround to my problem. But the API thing is still unresolvable.
>
> I see API as a sort of library that can be used during our project
> development. If I want a certain function to work on my project, I still
> refer to the API and use the packages available. Is this a good reflection
> of what API is? How do you people use API?
>
> Please correct me if I am wrong.
>
>
>
> ◄----------------------------------------------------------------►
> Nor Arlina Amirah Ahmad Ghani (Ann) AC080144
> (3SCB) Bsc Computer Science (Bioinformatics)
> FACULTY OF COMPUTER SCIENCE AND INFORMATION SYSTEMS
> UNIVERSITY OF TECHNOLOGY MALAYSIA
> 012-5934575
>
>
>
>
> ________________________________
> Date: Fri, 8 Apr 2011 11:34:09 +0800
> Subject: Re: [osdcmy] API - how to use it in your portlet development
> From: [email protected]
> To: [email protected]
>
> ok i am trying to guess what you are trying to do
>
> vine toolkit is not really a framework ! it's a library to give you nice
> grids : http://fury.man.poznan.pl/vinetoolkit/ - think of it like jquery ui
> flex is a framework : http://www.adobe.com/products/flex/
> look at demo using liferay as the portal framework :
> http://vinetoolkit.org/content/vine-and-liferay
> liferay has a lot more documentation, so use it to create your portlet, then
> only put the vine toolkit layer on top of it.
> if you are using the flex ide, consider using eclipse or netbeans or
> intellij or something ....
>
> i dont use liferay, nor do i use flex. this is the first time i am looking
> at vine.
>
> spend time learning and using web application frameworks like liferay,
> grails, adempiere,.... then if anything goes wrong, blame it on the
> framework !
>
> would be really cool if you could write about how to use the api in
> adempiere. maybe you can create a blogging website or forum using adempiere.
>
>
>
>
>
> On Fri, Apr 8, 2011 at 8:26 AM, Harisfazillah Jamel
> <[email protected]> wrote:
>
> Anyone can help her on this?
>
> On Tue, Apr 5, 2011 at 11:41 PM, Nor Arlina Amirah Ahmad Ghani
> <[email protected]> wrote:
>> Assalamualaikum and hi everyone
>>
>>
>>
>> Despite the subject, I'm very much stressed out right now. How do I use an
>> API (in my case, Vine Toolkit API?
>> http://fury.man.poznan.pl/vinetoolkit/docs/javadoc/index.html)
>>
>> I've been staring at the classes methods whatever only to find myself
>> getting into this very deep confusion and tense.
>>
>> I have to come up with a portlet (Flex and Java based), and Vine Toolkit
>> is
>> the framework on which this portlet is deployed to. I've been searching
>> directories and files without really knowing what am I doing.
>>
>> Call me noob whatever, I'm still learning, so much apologize for the
>> question. I'm divorcing Google.
>>
>
> --
> To unsubscribe from and detail about this group
> http://portal.mosc.my/osdc-my-mailing-list-information
>
> MOSC2011 http://fb.me/mosc2011 and http://portal.mosc.my/
>
>
> --
> To unsubscribe from and detail about this group
> http://portal.mosc.my/osdc-my-mailing-list-information
>
> MOSC2011 http://fb.me/mosc2011 and http://portal.mosc.my/
>
> --
> To unsubscribe from and detail about this group
> http://portal.mosc.my/osdc-my-mailing-list-information
>
> MOSC2011 http://fb.me/mosc2011 and http://portal.mosc.my/
>



-- 
#-------
regds,

Boh Heong, Yap

-- 
To unsubscribe from and detail about this group 
http://portal.mosc.my/osdc-my-mailing-list-information

MOSC2011 http://fb.me/mosc2011 and http://portal.mosc.my/

Kirim email ke