William Antônio Siqueira

Ranch Hand
+ Follow
since Jul 08, 2009
I'm a Java Lover!
Brazil
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by William Antônio Siqueira

I know we have a couple of ways to solve this, but I wanted to find the most elegant one.
Let's say we have a file, and after reading X elements we want to do some specific action, and so on.

Let's say X = 3, so:
1
2
3
DoTheAction
4
5
6
DoTheAction
...

What's the best way to achieve that with Stream library? I did the following, but I'm sure it's possible to make a better implementation using Collectors or even the Stream itself...



I also tried to use peak and increment a variable to count the elements, but I can't modify local variables in a lambda expression. I also tried to use count, but it's a terminate operation...

I will appreciate any input!
8 years ago

However more and more companies absorbing HTML5 and jQuery and cloud model. May be next 5 year we will be there.


I agree with you in this part. Sure REST is more suitable for WEB and HTML, JQuery, etc.
10 years ago
Hello,

there's a high criticism to RESTful APIs that are bad designed. For example, I'm right now playing with Steam API (https://developer.valvesoftware.com/wiki/Steam_Web_API) and sadly I'm facing some boring situation. The main topics:

- The xml elements from the API that use the key (please see the URL above) are surrounded by a "response" element in XML representation. Why? We all know that is the response...
- The representation of the resource in a page that use the page open API (try http://steamcommunity.com/id/jesuino?xml=1) has two main issues: 1 - representation information in URL and 2 when you access a non-existing account the reponse from server is simply a new representations instead a 404 (try http://steamcommunity.com/id/NO_EXISTING_ACCOUNT?xml=1).

Today we have the Richardson maturity model and a lot of learned lessons from past, but some APIs still born with issues in design.

While we can consume and we have a lot of clients using an API, it will exist even if it has some design issues. A lot has been done in community to spread the real REST principles, but bad designed APIs are consumable and we can build applications using it.

So what is the best motivation big services have to start to create a really RESTful app?

Sure we can list some advantages of using RESTful, but seems sometimes some RESTful APIs creators think like "it's working as it it,so let's keep this way"


10 years ago
Hello!

I currently use RESTEasy as my JAX-RS implementation. Before it I used Jersey.

For me RESTEasy is the best implementation:

- Powerful client API;
- Interceptors;
- Code easy to read and understand.

But it's been a few years without touch any other JAX-RS implementation. I looked for some comparisson between all implementations and I found it:

http://www.infoq.com/news/2008/10/jaxrs-comparison

but it's old


What is your favorite JAX-RS implementation? Why?

10 years ago
Hello,

Welcome Mark Masse! Good to know we will discuss RESTful this week, I like RESTful and it will be good discuss and watch some good discussions about it.
10 years ago
Hello!

I'm a "RESTful fan" and I have been working and studing it since RESTful WebServices book, which I believe was the book that marks the start of the "RESTful popularization".

Again about RESTful enterprise. Do you believe that REST WS will someday dominate enterprise world?

I mean, I know that REstful WS are now being used in a lot of enterprise products, but we don'thave something like WSRP for REST instead using SOAP (for example).

I also heard about REST-*, something like that, that would the equivalent of the WS-* patterns, but for REST, but it was not very popular (Roy didn't liked that, so the community...)

I also knows that we have books focused in REST real world applications (e.g. REST in Practice), but I still see that the adoption of REST in this field is not very huge as expected.

Developers still likes the stateful model(and rest is entirely stateless) with session, etc,etc

10 years ago

Henry Wong wrote:
This week, we're delighted to have Bill Karwin helping to answer questions about the new book SQL Antipatterns: Avoiding the Pitfalls of Database Programming.

The promotion starts Tuesday, August 31st 2010 and will end on Friday, September 3rd 2010.

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Pragmatic Bookshelf.

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing.



Welcome Bill!

Your book seems great for guys like me which need to use SQL with good practices and to keep the quality of my SQL scripts. Thanks .



"Hinkmond Wong, JavaOne Rockstar, JavaME Champion, and JavaFX Mobile expert will be giving us a detailed talk on the state of the art in the mobile landscape. If you are interested in mobile development, this event will give you the answers."

More details:
http://www.svjugfx.org/calendar/12334837/
12 years ago
Oh, the future of JavaFX is WEB, desktop and Mobile.

Are you a Java programmer? Do you want implements some Java applications with a beautiful look without quit Java World or use another framework? So JavaFX is the Solution!

JavaFX Rules!
12 years ago
Hi,

We can say that the only bridge between Java and Flex is the Framework BlazerDS?

Sorry for my question if incoveniente, cause i just hearing about BlazerDS and Exadel Flamingo Framework.

BTW, is javaFX a straight adversary to flex? The tools to Java - Flex is more limited than JavaFX - Java?

Best Regards


12 years ago

Philippe Lhoste wrote:I am not familiar with existing game frameworks, but I doubt they have a concept of character or enemy, as they are more on the "business logic" end, and are not suited to all games (like Tetris...); they are easy enough to create and customize to your own needs.

Tiled world can be done with the Tile layout and you can scroll it with a ClipView.



I'm speaking about a API like GTGE:

http://www.goldenstudios.or.id/products/GTGE/index.php

GTGE encapsulates some game programming techniques, so you just need worry with your game not with technical aspects from the language used!

12 years ago

Philippe Lhoste wrote:Actually, JavaFX can be seen as a game engine in itself: it manages a scenegraph, you can easily do sprites, and even collision detection, you have a GUI for user information or settings, etc.
You can also plug in a physics engine like JBox2D or Phys2D, etc.
Just don't expect to do 3D games yet.



I was talking about an engine that brings methods and abstractions from the world of games, such as:

- Tiled World
- Character
- Enemy
-...


I was building a cluster of classes that allow this abstraction, but my skills and time does not allow me to move on! I hope one day to finish my project!
12 years ago
From Pentaho's Site:

"Broad data source support including packaged applications, over 30 open source and proprietary database platforms, flat files, Excel documents, and more"

But I don't know if we can have two database or more working on the same time...




I already use GWT on my projects, i didn't knew that Pentaho use GWT! Nice!

Thanks!