Posts

Showing posts from 2023

Qt auto connecting widget events

 I had no idea this was a thing until I couldn't figure out how a slot was being fired. Qt will auto-connect event handlers with the right name. This applies to dialogs or widgets using a .ui file from QT Designer, and maybe they have to use multiple inheritance of the UI? If the there's a widget named okButton and a slot with a name void on_okButton_clicked(); Qt moc stuff will auto-connect the clicked signal to that slot. Hopefully I've got enough of that right that you can recognize it when you see it. Definitely had me stumped for a little bit!

All Things Open trip report

Image
I attended All Things Open 2023 this year, and would recommend it to anyone who touches open source software and wants to know more. It's held in Raleigh NC, near my workplace at Kitware in Carrboro, NC, so I can drive over each morning and park for $10, making it easy to attend. I wanted to share what stood out for me: Github Copilot I hadn't seen a good demo of what Copilot could do , and I was impressed. I still haven't tried it myself, but I will in the near future. There was this interesting cycle of development that you could do -  Start writing a function, and have it suggestion completions Write a comment that explains the function, and have it write the function for you If it doesn't seem right, have it generate multiple versions of that function Ask it to evaluate the function it just generated for correctness and possible bugs Ask it to explain the function line-by-line Besides that, it can also comment code, or write unit tests for code. Those seem super-u