News for hackers. Stuff that matters.
Re:Show HN: Cross-platform desktop applications with PyQT by jancsika on Tuesday February 06, 2018 @04:19PM (#16319844)
At least in nw.js which is a similar toolkit to Electron:

{ "name": "helloworld", "main": "index.html" }

And index.html is just whatever HTML web page you want, like "<html><herd><title>Hello World</title></herd><body>Hello World</body></html>". You could also use a javascript file as your "main" file if you want.

Even when you screw up the HTML it will still load, which won't happen if you get your underscores wrong in your example.

Edit: removed erroneous formatting

Re:Show HN: Cross-platform desktop applications with PyQT by kelnos on Tuesday February 06, 2018 @04:34PM (#16320033)
> Even when you screw up the HTML it will still load

And this is why we have the wasteland of browser incompatibility that we're (still!) in. If something is wrong, it shoudn't work. Why are our standards so low that mistyping "head" as "herd" is considered something that heuristics should fix, rather than causing an error?

I mean, really, though, any decent IDE should flag that error for you in-line, anyway.

Re:Show HN: Cross-platform desktop applications with PyQT by aldarn on Thursday February 08, 2018 @01:55AM (#16330677)
Please tell me you're trolling... you actually want your software to run when there're errors and not have it blow up in your face? I don't even... ah screw it.
Re:Show HN: Cross-platform desktop applications with PyQT by Rotareti on Tuesday February 06, 2018 @06:15PM (#16320876)
> Even when you screw up the HTML it will still load, which won't happen if you get your underscores wrong in your example.

> Edit: removed erroneous formatting

This is beautiful!