`getData()` — get what data? from where?
`processResults()` — process how?
`handleCallback()` — callback from what?
rubber duck debugging but the duck has opinions
`getData()` — get what data? from where?
`processResults()` — process how?
`handleCallback()` — callback from what?
rubber duck debugging but the duck has opinions
60k = getData()
for row in 60k:
compareData = getData()
... Maybe ref the data again...
60k = getData()
for row in 60k:
compareData = getData()
... Maybe ref the data again...
image = image.raw().getdata().getbytes()
error image is a bytesObject, expected type binary
image = image.raw().getdata().getbytes()
error image is a bytesObject, expected type binary
async Svelte + remote functions (query, prerender) + SQLite works in MDsveX as well…
Literally:
<Chart data={await getData("id")} /> in +page.mdx
Authoring data-centric websites now has the UX/DX of using R Notebooks / Quarto + Marimo‘s reactivity
After migrating from Supabase DB to local SQlite, the DB file lived in the repo (hence on GitHub). This might be bad case-by-case.
So, I figured: can I upload the DB to a private bucket and use the init() hook to fetch it once during "boot"?
🙊 IT WORKS 🙊
What a gift they are!
async Svelte + remote functions (query, prerender) + SQLite works in MDsveX as well…
Literally:
<Chart data={await getData("id")} /> in +page.mdx
Authoring data-centric websites now has the UX/DX of using R Notebooks / Quarto + Marimo‘s reactivity
⚙️𝗴𝗲𝘁𝗗𝗮𝘁𝗮
⚙️𝗳𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝘀𝗼𝗿𝘁𝗗𝗮𝘁𝗮
⚙️𝗾𝘂𝗶𝗰𝗸𝗙𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝗽𝗮𝗴𝗶𝗻𝗮𝘁𝗲𝗗𝗮𝘁𝗮
The ultimate customizable #Data Grid⏬
getdataden.com/docs/grid/ap...
#bigdata #webdev #manager #html #dataanalytics #website
⚙️𝗴𝗲𝘁𝗗𝗮𝘁𝗮
⚙️𝗳𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝘀𝗼𝗿𝘁𝗗𝗮𝘁𝗮
⚙️𝗾𝘂𝗶𝗰𝗸𝗙𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝗽𝗮𝗴𝗶𝗻𝗮𝘁𝗲𝗗𝗮𝘁𝗮
The ultimate customizable #Data Grid⏬
getdataden.com/docs/grid/ap...
#bigdata #webdev #manager #html #dataanalytics #website
⚙️𝗴𝗲𝘁𝗗𝗮𝘁𝗮
⚙️𝗳𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝘀𝗼𝗿𝘁𝗗𝗮𝘁𝗮
⚙️𝗾𝘂𝗶𝗰𝗸𝗙𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝗽𝗮𝗴𝗶𝗻𝗮𝘁𝗲𝗗𝗮𝘁𝗮
The ultimate customizable #Data Grid⏬
getdataden.com/docs/grid/ap...
#bigdata #webdev #manager #html #dataanalytics #website
⚙️𝗴𝗲𝘁𝗗𝗮𝘁𝗮
⚙️𝗳𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝘀𝗼𝗿𝘁𝗗𝗮𝘁𝗮
⚙️𝗾𝘂𝗶𝗰𝗸𝗙𝗶𝗹𝘁𝗲𝗿𝗗𝗮𝘁𝗮
⚙️𝗽𝗮𝗴𝗶𝗻𝗮𝘁𝗲𝗗𝗮𝘁𝗮
The ultimate customizable #Data Grid⏬
getdataden.com/docs/grid/ap...
#bigdata #webdev #manager #html #dataanalytics #website
THE WOMEN
Who'll lead us
What do u
DO
KNOW
LOVE?
Your REBELLION
Is BUILT IN
GraphicDesign.Food.Editing.Gardening.Manufacturing.Tech.Art.Writing.SocMed.Law.Beauty.History.Medicine.Hiring.Service...
Use it:
Fundraise-Organize-GetData-Sort-Build-Rebel
.
🦋💙
#legogire🎩🔥
BE.A.PROBLEM.
THE WOMEN
Who'll lead us
What do u
DO
KNOW
LOVE?
Your REBELLION
Is BUILT IN
GraphicDesign.Food.Editing.Gardening.Manufacturing.Tech.Art.Writing.SocMed.Law.Beauty.History.Medicine.Hiring.Service...
Use it:
Fundraise-Organize-GetData-Sort-Build-Rebel
.
🦋💙
#legogire🎩🔥
BE.A.PROBLEM.
return 'takashi'
}
1. console.log(getData)
> [Function: getData]
2. console.log(getData())
> takashi
関数式を変数に代入して、それを呼び出す際の無知からくる罠にかかりました。
変数名()で使わないと期待した動作になりません。
(当然なんだろうけど)変数名だと関数式が返ってくる。
構文エラーでもないので、TypeScriptも事前に指摘してくれない。
この経験、JavaScriptでもしたような。。。
return 'takashi'
}
1. console.log(getData)
> [Function: getData]
2. console.log(getData())
> takashi
関数式を変数に代入して、それを呼び出す際の無知からくる罠にかかりました。
変数名()で使わないと期待した動作になりません。
(当然なんだろうけど)変数名だと関数式が返ってくる。
構文エラーでもないので、TypeScriptも事前に指摘してくれない。
この経験、JavaScriptでもしたような。。。
many small #queries are ok in #SQLite
This extends that concept to RPC.
Smaller #composable RPC methods with params instead of one big method
Call as many methods as you want in the same already fast WS roundtrip
#javascript #buildinpublic #webdev #fullstack #api #dev
many small #queries are ok in #SQLite
This extends that concept to RPC.
Smaller #composable RPC methods with params instead of one big method
Call as many methods as you want in the same already fast WS roundtrip
#javascript #buildinpublic #webdev #fullstack #api #dev
#dotnet
#dotnet
Connect them in 6 steps:
➤ Create API 🏗️ (e.g., /getData)
➤ Make Requests 🌐 (fetch()/axios)
➤ Send Data 📤 (POST/PUT)
➤ Receive Data 📥 (GET)
➤ Update UI 🎭 (DOM)
➤ Handle Errors ⚠️ (Smooth UX) 🚀
#WebDev #Frontend #Backend #Coding #API #code
Any "positive" hresult (S_*) is mapped to Result::Ok. The GetData API can return different positive results as an indicator, so I created a custom enum for this
github.com/cohaereo/d3d...
Any "positive" hresult (S_*) is mapped to Result::Ok. The GetData API can return different positive results as an indicator, so I created a custom enum for this
github.com/cohaereo/d3d...
▶POSTされた値を取得
$this->request->getData('hoge');
▶GETされた値を取得
URL末尾で
"?hoge=1&fuga=boo" のように
名前付きクエリを渡した場合:
コントローラ上で
$this->request->getQuery('hoge');
→"1"
ルーティング機能を使うと
もっと美しいURLになる。
▶POSTされた値を取得
$this->request->getData('hoge');
▶GETされた値を取得
URL末尾で
"?hoge=1&fuga=boo" のように
名前付きクエリを渡した場合:
コントローラ上で
$this->request->getQuery('hoge');
→"1"
ルーティング機能を使うと
もっと美しいURLになる。
▶POSTされた値を取得
$this->request->getData('hoge');
▶GETされた値を取得
URL末尾で
"?hoge=1&fuga=boo" のように
名前付きクエリを渡した場合:
コントローラ上で
$this->request->getQuery('hoge');
→"1"
ルーティング機能を使うと
もっと美しいURLになる。
▶POSTされた値を取得
$this->request->getData('hoge');
▶GETされた値を取得
URL末尾で
"?hoge=1&fuga=boo" のように
名前付きクエリを渡した場合:
コントローラ上で
$this->request->getQuery('hoge');
→"1"
ルーティング機能を使うと
もっと美しいURLになる。
Write cleaner, faster, and smarter backend code with Node.js. 1️⃣ Setup & Initialization Initialize a new Node.js project: npm init -y Install dependencies: npm install express mongoose dotenv Run a file: node app.js 2️⃣ Asynchronous Programming Use `async/await`…
Write cleaner, faster, and smarter backend code with Node.js. 1️⃣ Setup & Initialization Initialize a new Node.js project: npm init -y Install dependencies: npm install express mongoose dotenv Run a file: node app.js 2️⃣ Asynchronous Programming Use `async/await`…