News for hackers. Stuff that matters.

gk_brown

Show HN: Kilo – Lightweight REST for Java

https://github.com/HTTP-RPC/Kilo

Kilo is an open-source framework for creating and consuming RESTful and REST-like web services in Java. It is extremely lightweight and requires only a Java runtime environment and a servlet container. The project's name comes from the nautical K or Kilo flag, which means "I wish to communicate with you".Kilo was formerly known as "HTTP-RPC", and was created as an alternative to other...

( Read More... | no comments | 3 points | on HN )
Sierra 1.0 and 1.1 actually took a similar approach - trying to create a DSL based on the standard layout managers.

However, I ultimately found that approach too limiting and went with custom layout managers for version 1.2.

I generally prefer links since otherwise the code and examples can easily get out of sync.
Have you looked into Flutter at all? I admit that I have not, but I know it supports web development in addition to mobile and desktop:

https://flutter.dev/multi-platform/web

Added an example demonstrating how to add an action listener to a button:

https://github.com/HTTP-RPC/Sierra/blob/master/sierra-test/s...

I'm not sure it's exactly what you were looking for, but hopefully it is similar enough.

Sierra is actually inspired by Lima, a UIKit DSL I created in Swift before SwiftUI was announced:

https://github.com/HTTP-RPC/Lima

Thanks for the feedback. I did consider using Kotlin but wanted to make sure it worked at least minimally in Java first.
Take a look at FlatLAF:

https://github.com/JFormDesigner/FlatLaf

They have done a great job bringing a modern appearance to the Swing components.

Agreed. I said as much in my response to this issue that was opened the other day:

https://github.com/HTTP-RPC/Sierra/issues/12

Great question. You can do this with a cell consumer (i.e. the with() method). See OrientationTest for an example (e.g. leftToRightButton, rightToLeftButton):

https://github.com/HTTP-RPC/Sierra/blob/master/sierra-test/s...

I should probably add a better example.

Re:Show HN: Lima, a Swift-based DSL for responsive iOS development on Wednesday November 07, 2018 @06:33PM (#18403251)
UIStackView is a step in the right direction, but it doesn't go far enough. It's still not truly declarative; it requires you to think in terms of content priorities; and it doesn't support z-ordering.
Re:Show HN: Lima, a Swift-based DSL for responsive iOS development on Wednesday November 07, 2018 @06:31PM (#18403242)
Actually, Lima is partly a move away from using XML:

https://gkbrown.org/2018/11/04/introducing-lima/

Re:Show HN: Lima, a Swift-based DSL for responsive iOS development on Wednesday November 07, 2018 @06:30PM (#18403235)
For one, you can't create a hierarchy of UIStackViews and their contents declaratively. But UIStackView also forces you to think in terms of content hugging and compression resistance priorities, which (to me) isn't as natural as widths, heights, or weights.
Re:Show HN: You Don’t Need GraphQL on Thursday October 11, 2018 @11:51AM (#18194515)
I understand the GraphQL pitch - I just don't buy it. From my experience, you don't generally need that level of flexibility. Most callers probably want the full set of data returned by your API. Those that don't can easily ignore it or filter it out client-side. So GraphQL is basically a big, unnecessary hammer.
Re:Show HN: You Don’t Need GraphQL on Wednesday October 10, 2018 @05:21PM (#18189024)
Demonstration of how to create a GraphQL-like API using REST.
Re:Show HN: A Java framework for building microservices? on Thursday June 02, 2016 @02:33PM (#11824932)
Hi all. I'm the author of this project on GitHub. It seems like it might be a good foundation for building microservices in Java. However, I'm not a microservices expert, so I was wondering what others with more experience in this space think. Thanks!

Older »