Renaud Lienhart on Nostr: Xcode 16 top tip: if you have to convert some list of things (e.g. json, csv) into a ...
Xcode 16 top tip: if you have to convert some list of things (e.g. json, csv) into a Swift struct/enum, just sloppily paste it somewhere in the file; the Predictive Code Completion Model will take the hint and very quickly offer to autocomplete all the fields for you 💯
Published at
2024-08-27 02:35:46Event JSON
{
"id": "1f86656e9edea2b2825e8a43b3f2e52fad57be47ec3e57da19ae2cf4a5a89f1f",
"pubkey": "6552b030630993816cdf6f739269ea133436428583489f64263394e2c307b260",
"created_at": 1724726146,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/layoutSubviews/statuses/113031652747614761",
"activitypub"
]
],
"content": "Xcode 16 top tip: if you have to convert some list of things (e.g. json, csv) into a Swift struct/enum, just sloppily paste it somewhere in the file; the Predictive Code Completion Model will take the hint and very quickly offer to autocomplete all the fields for you 💯",
"sig": "e2a999c523fe17cd96b438f89504e353b69e0d03feedef4acd4a9c50f3309e3e712f10533f6bf8e2cfe050d775bd36e9111ad789fc375b747aaa8369406d46d7"
}