News for hackers. Stuff that matters.
Re:Show HN: Cross-platform desktop applications with PyQT by papaf on Tuesday February 06, 2018 @03:35PM (#16319345)
creating complex UIs using things like WinForms, QT, GTK, Cocoa, etc SUCKS

I think that this depends on your background. Personally, I would rather do a UI in QT than Javascript. I like that Qt supports high level components such as trees:

  https://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html
With Qt I can also use a lot of the experience that I gained 5 years ago on a UI today. Any Javascript UI experience that I picked up 5 years ago is obsolete.

It annoys me when people say something sucks without taking the time to understand it.

Re:Show HN: Cross-platform desktop applications with PyQT by monkmartinez on Tuesday February 06, 2018 @03:39PM (#16319374)
"Any Javascript UI experience that I picked up 5 years ago is obsolete."

That is only true in the sense that your Python 2.x experience didn't translate into your Python 3.x experience. That is, I think the overlap is similar on a language level. The difference lies in the libs/frameworks.

Re:Show HN: Cross-platform desktop applications with PyQT by papaf on Tuesday February 06, 2018 @03:42PM (#16319401)
No its nothing like a minor language change. This actually happened to me and my Javascript UI experience (Jquery) is obsolete in the world of React and Angular or whatever the flavour of the month is.
Re:Show HN: Cross-platform desktop applications with PyQT by pythonaut_16 on Tuesday February 06, 2018 @04:06PM (#16319663)
If you learned Javascript and not jQuery then your experience is just as relevant today, with the main difference being that Javascript has had a lot of improvements since then (e.g. myArray.includes vs myArray.indexOf(x) != -1).

Even jQuery is still helpful if you think of how it's accessing the DOM rather than just a set of magic functions to make things happen.

If you know Javascript you can learn Angular or React or Vue fairly quickly.

Re:Show HN: Cross-platform desktop applications with PyQT by monkmartinez on Tuesday February 06, 2018 @03:51PM (#16319452)
Python's transition from 2 to 3 was anything but "minor"... further, jquery was designed and developed for a completely different reason than React or Angular at a different time in the evolution of the web. Your jquery knowledge still works I promise... the thing is there are better options.
Re:Show HN: Cross-platform desktop applications with PyQT by pritambaral on Tuesday February 06, 2018 @05:40PM (#16320612)
> Python's transition from 2 to 3 was anything but "minor"

For the purpose of this discussion — carrying learned knowledge forward — it was minor.

Re:Show HN: Cross-platform desktop applications with PyQT by chrisza4 on Tuesday February 06, 2018 @09:17PM (#16321779)
What does obsolte mean actually? Today you still can build web app by jQuery.

Obsolete does not mean you cannot use your knowledge anymore. It means that community are shifting interested into new thing, maybe for better or for worse.

In this case, I do not think stick with JQuery or old framework for 5 years is productive for programming. If that happen to any community I would say that is a downside, not an upside.

Except for that fact that community and newly graduated junior developer are ahead of me in something. I can live with that

Re:Show HN: Cross-platform desktop applications with PyQT by ziftface on Tuesday February 06, 2018 @04:24PM (#16319915)
> I would rather do a UI in QT than Javascript.

This has nothing to do with Javascript. It's much easier to do complicated UI using a web browser's layout engine than it is using one of the above frameworks. For really simple stuff, yes it's about the same, maybe even easier with native UI, but if you ever need to do something outside of buttons and lists, things will get ugly fast. On a browser on the other hand, you can very quickly implement any component you can think of using well-documented CSS rules.

Re:Show HN: Cross-platform desktop applications with PyQT by pjmlp on Wednesday February 07, 2018 @01:58AM (#16322725)
CSS rules still have a lot to improve compared with XAML styles, triggers and best of all, modularity.