Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Richard Maher Newsgroups: comp.lang.java.programmer Subject: Re: API vc MVC Date: Tue, 28 Jul 2015 11:55:14 +0800 Organization: Aioe.org NNTP Server Lines: 32 Message-ID: References: <6a96955c-6b2a-416e-9be1-8c5bcc12ff3e@googlegroups.com> NNTP-Posting-Host: yEF6Z+aDHq2TGEGPLsvBow.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32176 On 7/28/2015 10:40 AM, Arne Vajhøj wrote: > On 5/11/2015 10:04 PM, Leonan Luppi wrote: >> I have a sad doubt about this subject's. Today what is better? >> >> Use MVC Pattern and consuming request to load my view or just create >> an API which any client can access (my environment, my front-end will >> be AngularJS or any javascript MV* framework). I mean what can be >> more scalable, performatic? > > I would go for the JavaScript application and JAX-RS web services > server side. > > Technically I think it will become a maintenance nightmare for > the client side code, but the reality is that this is the way > the industry is going, so this is the solution that all the young > developers you hire the next 10 years will know. > > Arne > I (and most of the currently coding world) agrees with Arne. Except WRT his other reply: - [API = JavaScript application running client side (using AngularJS or similar framework, could be a single page application) talking to server side API which in Java typical would be JAX-RS based.] Drop this bit: - (using AngularJS or similar framework, could be a single page application)!!! AngularJS, jQuery, BootStrap yada, yada, yadda, are just for JAVA and C# programmers who can't code Javascript and are afraid to try or incapable of learning something new,