Hacker Newsnew | past | comments | ask | show | jobs | submit | stdohm's commentslogin

Been using GitX for many years . Happy to learn there’s a new fork. Thanks!


Something I use all the time to handle applications which might have multiple instances opened at once. For example, web browsers.

Press CMD-TAB to bring up the list of opened applications and then pressing UP or DOWN over a selected application to show the opened instances. After that use LEFT or RIGHT to select the instance you want to show.


You can also use cmd-` (the `/~ button between shift and z on my keyboard, left of 1 on others) to switch between windows of the currently activated application.


There is an open source application called „AltTab“ that basically brings the behaviour of Windows‘ app switcher to macOS


Opened windows, not instances. There's only one instance of the application running.


lol, good one! I hope marketing sees this.


goto; conferences

https://www.youtube.com/c/GotoConferences

Good talks on a variety of topics.


I'm a fan of using raw sql like this but curious if anyone has solved deduplicating common statements and dynamic queries in a good way.

For example:

1) Imagine lots of queries having to show the results in the context of a user and therefore use the same JOIN and WHERE clause all over. Not being DRY, this breaks down when having to change the clause at all.

2) Imagine a reporting page that allows for filtering and ordering by different columns and therefore need some way to compose the final sql.


Don't query builders already let you do that? By making the WHERE clause map to a data structure, you can just duplicate the data structure to duplicate the WHERE clause e.g. https://bokwoon95.github.io/sq/query-building/reusing-where.... (full disclosure: I'm the author).


Total agree and I use query builders all the time. (Yours definitely looks nice.) I was curious though how others might of handled these issues when using libraries like the one posted here which is just raw sql.


+1 for query builders being an excellent choice for a lot of applications and uses. Keeping things DRY being one. We haven't solved the repetition in SQL with aiosql. We also haven't tried. :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: