HNHacker News
TopNewBestAskShowJobs

xatxat

407 karma · joined September 2, 2012

[ my public key: https://keybase.io/xat; my proof: https://keybase.io/xat/sigs/qikubdNOJxB_7RqKS87DoRuZLE5Slvfre1RE2WmFVuU ]
submissionscomments
xatxat··on Understanding ChatGPT Work
1. Install the ChatGPT app on your Android Phone.

2. Open it and start a session in "Work" mode.

3. Prompt something like "Create an Android app that does XYZ, provide it as APK".

4. Download and install the APK.

5. Keep on iterating on the app by prompting stuff like "Now add feature XYZ" or "XYZ doesn't work, fix it.". It then always creates a new APK which you can download and update your installed app with.

xatxat··on Understanding ChatGPT Work
Yes, I used it to track WIFI signals and download/upload speeds over a period of two days. It stored the results in a log file and I then let ChatGPT inspect the log file. Based on that, I then ordered a WIFI extender. Now I have the perfect WIFI at our (permanent) camping spot. :) Didn't use the app afterward anymore.
xatxat··on Understanding ChatGPT Work
Idk, can I do that with Codex on my phone? "Build app to control my specific Soundbar model" and then it just builds it while I'm chilling on the sofa with my phone in the hand?
xatxat··on Understanding ChatGPT Work
Just simple throwaway apps for myself. For example, an app to control my soundbar. Or an app that helped me figure out which WIFI hotspot to use for better internet during camping. It's not that deep :)
xatxat··on Understanding ChatGPT Work
Yes, you can iterate on the app and ChatGPT Work will then create new versions of the app.

If something in the UI of the app looks weird, you simply take a screenshot and ask ChatGPT to fix it. Or what I also like to do is add a logging functionality to the app. If something goes wrong, I then just upload the log to ChatGPT so that it can fix it.

xatxat··on Understanding ChatGPT Work
I recently figured out that I could use ChatGPT Work on my Pixel Phone to build native Android apps. It builds the app and you can then directly download/install the APK. So now I just build small utility apps on-the-go whenever I need them :)
xatxat··on Counter-Strike: A billion-dollar game built in a dorm room
The AQ2 community perceived CS as way too slow though. No wonder when you are used to strafe jumping through team jungle and urban :-)
xatxat··on Launch HN: SimpleHash (YC W22) – API to query digital assets
congratulations on launching! we created a website builder for nft artists called butiq.art where we will test the simplehash api in the next weeks.

on a side note, if you ever need nft data for the tezos blockchain, feel free to shoot me a message. i developed an nft indexer that covers that chain very well.

xatxat··on The Big TDD Misunderstanding
I think people with enough experience in software development know quite well if the code they are currently writing is going to be testable or not.
xatxat··on Adjusted Age-Specific Case Fatality Ratio During for COVID-19 in Hubei [pdf]
In Germany they are tracking down clusters. As a random person you won't get tested, unless you visited a risky region, had contact with an infected person or your doctor orders a test for you. As a German, this strategy makes sense to me.
xatxat··on Ask HN: Go-to web stack today?
I use this stack:

Frontend: React - Unstated (or just setState) - Axios - Plain CSS (with BEM notation) - Create React App - Prettier - Jest

Backend: Node.JS - Express - Knex - PostgreSQL - Tape

xatxat··on Redux – Not Dead Yet
You can do that, but you will need to find a way to re-render the components which use that service, after something changed.
xatxat··on Redux – Not Dead Yet
They are used to create arrays. You are able to subscribe to multiple containers:

  <Subscribe to={[CounterContainer, SomeOtherContainer]}>
      {(counter, someOther) => ()}
  </Subscribe>
xatxat··on Redux – Not Dead Yet
Yeah, I agree that this is an edge case (nothing that I run into on a daily base) and the ContinentLists example might not be the best in this context. Something like a Dashboard with dynamic widgets would probably be a more realistic case.
xatxat··on Redux – Not Dead Yet
I wouldn't store it as array in Redux because that would be too limiting (e.g. let's say I want a continent-list which is decoupled from the other continent-lists). If I would be forced to use redux in this case then I would create some random id for each ComponentList where I would store the UI state (but keep the continents data separated). Something like:

  {
    '<randomId>':
    {
        Asia:
        {
            collapsed: true
        }
    }
  }
IMHO this really makes things unnecessary complicated. It also makes it hard to re-use the ContinentsList component (maybe you want to use the same component in some other project which uses something else than redux?). I always try to think of the API of my react components first and how they later on can be easily reused. After I figured out the API of the react component then I might connect it to some store.

Probably the ContinentsList component would somehow look like this:

  <ContinentsList
    continents={<continents data>}
    renderItem={({ collapse, isCollapsed, continent }) => {
        return <ContinentItem onCollapseClick={collapse} isCollapsed={isCollapsed} continent={continent} />
    }}
  />
xatxat··on Redux – Not Dead Yet
For example if you have multiple lists of continents and each one needs its own collapsed state. Maybe the user can even dynamically add/remove such continent lists in the UI. IMHO in most of these cases it's best to keep the continents data inside of redux and have the collapsed state being managed by the "ContinentsList" component.
xatxat··on Node-noop – Implements a noop function
This one is also nice: https://github.com/sindresorhus/noop3 It has a noop factory :-)
xatxat··on LoadJS – A tiny async loader for modern browsers (710 bytes)
Checkout the import() proposal:

https://github.com/tc39/proposal-dynamic-import

It basicly is what you are describing.

xatxat··on Ripple.js – A tiny foundation for building reactive views
This could be a really nice replacement of Backbone.View.
xatxat··on Sell HN: Do you have a side project you want to sell?
http://dropandload.com Site for sending files to other people. Server just streams files through from the uploader to the downloader. Build with node.
xatxat··on Show HN: 3months working on this Android app with a friend. Would Love feedback.
I love this idea.

Is there a reason why you developed this as android app and not as a "normal" mobile website (navigator.geolocation)?