Live data from Hacker News

Tcl Programming/Tk Examples

en.wikibooks.org

11–20 of 23 posts

Re: Tcl Programming/Tk Examples

#11
post #3

I’ve said it before, but I’d love to see a best-practices CRUD app done in tcl, tk, and SQLite along the lines of the north winds thing from Microsoft. The SQLite interface in tcl is a thing of beauty to rival tk.

Not too surprising since D. Richard Hipp is both contributing to SQLite and Tcl.

Re: Tcl Programming/Tk Examples

#12
post #6

Tcl/Tk is cool. Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way. This matters to users whether we like it or not. It would be a very niche commercial software project that used it for its UI no matter how beautifully elegant the functionality of its UI. Best ever UI will still elicit an "Ew, yuk." From the majority of its users. Graphical UIs have been de rigeur for what, 30+ ye…

I remember 20 years ago that half of Linux GUI apps were Tcl/Tk. Yes, people made fun of them for not being "native", but I'd much prefer a Tcl/Tk app over a modern Electron one.

Re: Tcl Programming/Tk Examples

#13
post #3

I’ve said it before, but I’d love to see a best-practices CRUD app done in tcl, tk, and SQLite along the lines of the north winds thing from Microsoft. The SQLite interface in tcl is a thing of beauty to rival tk.

Besides AOLServer, there were Safelayer and Vignette.

However you will only get to see AOLServer's source code, as the latter two were proprietary.

Re: Tcl Programming/Tk Examples

#14
post #6

Tcl/Tk is cool. Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way. This matters to users whether we like it or not. It would be a very niche commercial software project that used it for its UI no matter how beautifully elegant the functionality of its UI. Best ever UI will still elicit an "Ew, yuk." From the majority of its users. Graphical UIs have been de rigeur for what, 30+ ye…

> Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way.

Yes, and they are thousand time more usable that the "modern" crap.

GUI design is going backwards since 10 years.

Re: Tcl Programming/Tk Examples

#15
post #14
post #6

Tcl/Tk is cool. Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way. This matters to users whether we like it or not. It would be a very niche commercial software project that used it for its UI no matter how beautifully elegant the functionality of its UI. Best ever UI will still elicit an "Ew, yuk." From the majority of its users. Graphical UIs have been de rigeur for what, 30+ ye…

> Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way. Yes, and they are thousand time more usable that the "modern" crap. GUI design is going backwards since 10 years.

survivor bias. Nothing magical about tcl/tk (cool as it is) that makes guis more usable, sadly. Nothing in modern gui libraries that prevents good usability design either.

Guis have always been more discoverable and just better for certain tasks, usually where you want to see something with immediate updatable feedback but the gui libraries have always been terrible. They were terrible 30 years ago, and 20 and 10 and still today.

I don't have answers.

Re: Tcl Programming/Tk Examples

#16
post #6

Tcl/Tk is cool. Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way. This matters to users whether we like it or not. It would be a very niche commercial software project that used it for its UI no matter how beautifully elegant the functionality of its UI. Best ever UI will still elicit an "Ew, yuk." From the majority of its users. Graphical UIs have been de rigeur for what, 30+ ye…

I remember 20 years ago that half of Linux GUI apps were Tcl/Tk. Yes, people made fun of them for not being "native", but I'd much prefer a Tcl/Tk app over a modern Electron one.

I hear you. Don't you think it's a shame that in 20 years we haven't got anything that is actually better? Easier to program? Easier to design for usability? Better looking? I would have guessed we would have. Delphi/kylix, VB, gtk+, qt, win-whatever, mac-whatever, wx, electron. All of them. Not really the thing huh?

Re: Tcl Programming/Tk Examples

#17
post #15
post #14

Earlier quoted context omitted.

> Tcl/Tk makes UI's that jar in an ugly, immediately recognisable as "old-fashioned" way. Yes, and they are thousand time more usable that the "modern" crap. GUI design is going backwards since 10 years.

survivor bias. Nothing magical about tcl/tk (cool as it is) that makes guis more usable, sadly. Nothing in modern gui libraries that prevents good usability design either. Guis have always been more discoverable and just better for certain tasks, usually where you want to see something with immediate updatable feedback but the gui libraries have always been terrible. They were terrible 30 years ago, and 20 and 10 and…

WRT what hulitu refers to (as i understand it), it isn't Tcl/Tk that makes the GUIs more usable, it is more that the modern trends that largely came out of small touch screens and often use flat(ish) themes with a lot of padding and unused screen real estate that make desktop applications less usable.

Tcl/Tk just makes it harder (though not impossible) to make such GUIs because its defaults were made before those trends, but it isn't unique to it - the same applies, e.g., to applications made with Qt Widgets. Note that here i do not refer to how easy it is to make the GUI, just on how usable applications are from a desktop user's perspective when using the default look and feel.

This particular problem is largely a matter of trends - some libraries/technologies make it easy to follow those trends, others harder, however the root issue isn't so much the libraries/technologies in question but the trends themselves.

Re: Tcl Programming/Tk Examples

#18
post #4
post #3

I’ve said it before, but I’d love to see a best-practices CRUD app done in tcl, tk, and SQLite along the lines of the north winds thing from Microsoft. The SQLite interface in tcl is a thing of beauty to rival tk.

Look at AOLServer, yes that AOL. https://aolserver.github.io/

Sure, desktop CRUD apps have been obsolete for 25 years, but I meant a desktop application in tk. Also, an example application like Northwinds, not a framework.

Not exactly what I’m thinking either, but look at how concise pgaccess (for postgresql) was.

Re: Tcl Programming/Tk Examples

#19
post #10

What Tcl needs 1. a package manager 2. language server 3. a vs code plugin or an emacs mode for the language server

I know there was a (somewhat?) successful package repository and manager called Teapot and Teacup [0] respectively that was run by ActiveState but I don't believe it's actively having packages added to it. I really wish there was some new development along these lines to allow for github repos to be imported (I think I've seen this in Golang). As far as the language server goes, I'm guessing that would be really difficult to implement for Tcl since each command can essentially implement its own DSL.

[0] https://wiki.tcl-lang.org/page/Tcl+Extension+Archive

Re: Tcl Programming/Tk Examples

#20
post #3

I’ve said it before, but I’d love to see a best-practices CRUD app done in tcl, tk, and SQLite along the lines of the north winds thing from Microsoft. The SQLite interface in tcl is a thing of beauty to rival tk.

I used SQLite with Tcl for many years, and yes, it truly is.
Post reply on HN