All boardsБлинчикиInternationalКрендельнаяЛес

#3 SciTech Thread


#1010690

#3 SciTech Thread

1080×12484.88Mb00:17

Build fail edition


coding is difficult for me too because just pressing space bar wrong or enter wrong it's always build fail so i can't nothing comes up so i don't know what i did wrong

1317 posts and 252 files omitted
See all
#1034353
<button hx-post="/clicked"
    hx-trigger="click"
    hx-target="#parent-div"
    hx-swap="outerHTML"
>
    Click Me!
</button>
>

This tells htmx:

>

“When a user clicks on this button, issue an HTTP POST request to ‘/clicked’ and use the content from the response to replace the element with the id parent-div in the DOM”


you can do that in few lines of JS, wtf is wrong with people


is that new JQuery?

#1034359

>>1034351

remember a few months ago when you learned about tailwind? same thing here

all htmx does is make a request and replace some part of the dom, but you can do it quickly from from html instead of doing it by hand in a separate file or script tag

#1034362

>>1034359

>

same thing here

no this is different. tailwind was solving real problem, but htmx doesn't make sense


>

make a request and replace some part of the dom, but you can do it quickly from from html instead of doing it by hand in a separate file or script tag

I can't think about any use case it may be useful at. you either do very little code in vanilla or use some proper JSX framework

give me some example of website where you would use htmx


>>1034063

>

quick way to replace a part of the page from the server

>

that is enough for quite a lot of dynamic stuff


people were doing that kind of stuff in vanilla JS (or with JQuery back then) decades ago and it turned to be you can't do a lot with HTML partials returned from server. it either makes website brittle or not useful at all


why is that re-iteration of luddites thinking they created something useful? people discarded that idea for a reason

#1034365
1128×1310219.69Kb

this is just horrible and stupid

I won't even care about that stupid thing

#1034368

I've seen that idea before btw https://alpinejs.dev/

but those devs didn't make me feel angry, I guess because they aren't arrogant and smug


they are just like

>

here's our small little stuff, use it if you don't like


instead of htmx retarded devs be like

>

only soyjaks use react look at them lmao


#1034386

>>1034017

>

no need to shackle the entire website into some massive clusterheck like next

I was actually thinking about using next.js for my next project

#1034393
1080×19202.34Mb00:04
>

SolidStart currently relies on Node.js APIs that Bun does not yet implement. The guide below uses Bun to initialize a project and install dependencies, but it uses Node.js to run the dev server.

#1034400

>>1034399

>

First thing is HATEOAS.

>

they actually invented their own buzzwords

classic

#1034402

>>1034401

re-discovered old term and started using in their hyped thing

that happens all the time too

#1034412

>>1034362

>

people discarded that idea for a reason

https://twitter.com/lawjolla/status/1754622011564036413


>

I don't get the HTMX hype. We did away with HTML snippets because:

>

1. Don't want thousands of micro HTML endpoints where JS can derive state.

>

2. Synchronizing UI outside of the change (check a todo and then change the remaining count)

>

3. Pounding the wire (I need to get my entire todo app send back to update one item?)

>

4. No escape hatches when complexity runs amok.

>

I've made very complex PHP + Ajax apps. I don't want to go back.

>

What am I missing?


thank goodness sane people still exist

#1034416

https://frontendmasters.com/courses/

usual web dev courses but only by netflix, microsoft, stripe people because that means they're legit


couple years back there was a huge launch of masterclass dot com that had courses of various things only by american celebrities. maybe soon there will be a dev courses site with carmack, abramov, sindresorhue etc

#1034417

>>1034416

>

carmack, abramov, sindresorhue

don't put Carmack next to those people

#1034419
>

prest

>

26 stars

the absolute state of htmx shills

#1034432
2582×588208.79Kb

that retard have essay on every question asked


>

I have experience with multiple large applications that use htmx. They scale fine. They just aren't what people are used to right now.

>

Give it time and mull it over. It may grow on you.


yeah sure "trust me bro"

#1034433

>>1034359

>

but you can do it quickly from from html instead of doing it by hand in a separate file or script tag

seriously? explain this then: https://htmx.org/examples/sortable/


they extensively use js even in their own examples...

#1034446

finally bought old game I wanted to play on PS pretty cheap

#1034452

>>1034434

weren't you supposed to check if v0 works? no no, you should all in on vercel

#1034462
>

MacOS bug where your balance may drift when volume buttons are pressed while CPU is under heavy load

#1034487
import * as path from "https://deno.land/std@0.213.0/path/mod.ts";
const cwd = path.dirname(import.meta.url);
const command = new Deno.Command("program.exe", { cwd });
await command.output();
// Failed to spawn 'program.exe': No such cwd 'file:///C:/Users/dahl/puppets'

const cwd = path.dirname(import.meta.url).slice("file:///".length);

why didn't deno handle it for me

#1034490

>>1034487

>

why didn't deno handle it for me

to avoid extra allocation on heap

#1034500
>

In V8, when you perform a string slice operation using the slice method or the [start:end] syntax, it creates a new string object that is a view into the original string

no extra allocation

#1034502

>>1034500

>

it creates a new string object

>

no extra allocation

#1034523

even on Windows it's better to use WSL for development tho

#1034781
2316×30882.08Mb

>>1034780

maybe a bit to loud a case like that but other than that holy comfy

#1034847
1440×1800179.58Kb
1440×1799187.79Kb

>>1034786

i do that too

feels better to live with beautiful things

#1034849

>>1034847

same, secretly

but technical specs are still very important

I would never buy stylish magsafe battery pack because not enough capacity and lightning

#1035098
>

writing sql:

>

look normal

>

cant write dynamic query

>

using query builders:

>

can write dynamic query

>

look increasingly weird especially when big query

nice thing cannot have

#1035107

>>1034732

halfway through it

a lot of interesting food for thought

#1035109
1280×720119.16Kb

I wish I was that cool

a monke brain that is close to solving the most mysterious riddle in a Universe but putting a lot of tiny transistors together


might be even cooler than Bellard

#1035412

https://github.com/pocketbase/pocketbase

is it any good?


I was thinking about trying one of those nocode-backend stuff one day but dunno where to use it


the problem will all those "1-click" solutions is that there're too many of them

#1035592
540×72073.53Kb
>

too dumb for rust

>

too dumb for go

#1035602

>>1035601

dunno. rust could have been a good choice for backend/system programming, but google and cpp and even zip people are too stubborn and killed language with a good design


I don't even want to think what language to write my software in, it's all so tiresome

we should just let AGI Gods manage that mess we created

#1035608

>>1035602

i wanted to get into the go hype but after learning http requests and json unmarshaling it started to feel so complicated then tried one of them openapi client generators for an api i wanted to use and all i get is segfaults

maybe it really is time for javascript maybe they will welcome my dumb self

#1035610
1262×698156.65Kb

7.4k stars for that

#1035646

>>1035608

>

openapi client generators for an api

try something like

https://hasura.io/docs/latest/index/

https://docs.nhost.io/product/database

https://pocketbase.io/


I was experimenting with hasura as a backend a bit but dropped that project because too much work

but the idea seems pretty smart: you edit all the database schema in UI and then just write a tiny bit of code on top

though you can maybe use django/rails/next.js with similar productivity instead but not so cool right


all of this seems outdated tbh. why can't ChatGPT agents create CRUD API for you in 5 minutes, why do we still need to manage all of it by hand. the task seems too trivial

#1035651
1440×1800193.50Kb

>>1035646

>

next.js

maybe if you can use v0 for a client and copilot for a server, then you can be productive too

need experimenting


but I rarely do CRUD so really dunno

but maybe I'm not doing them because I spend too much time on researching available options and tuning every single bit of my setup


maybe v0 nim + next.js is pretty good, and I just need to swallow that bitter react+node_modules pill

I've got sindresorhused

#1035665

>>1035661

>

Auth, DBs, Functions and Storage

sounds like supabase. what these projects seem to offer is the fancy admin UI where you can alter your database schema and a react useState thingymagic that you can query db with


what i think i would want instead is some a fun ready to use frontend with pieces like buttons, graphs, blocks, navigation with nice paddings and margins that i could connect to my backend since backend is the fun part

#1035666

>>1035665

>

since backend is the fun part

no not the CRUD part at least


nowadays you do a lot on the client side so you would rather focus on this part and templates/communication with DB is the simplest and dumbest part

#1035669

>>1035666

i mean something like https://budibase.com/

its got a buncha views and forms with nice margins so you dont need to worry about frontend too much

but its limited you cant make things live update from http or anything so not that usable

#1035670

>>1035669

>

its got a buncha views and forms with nice margins so you dont need to worry about frontend too much

maybe for admin pages. for normal pages you would want to make custom stuff anyway


I don't see how is it better than admin UI for database (like in supabase/appwrite solution) + generated frontend components on v0


is there anything better than v0 where you can also modify code? like Figma?

#1035675

>>1035670

maybe there could be an escape hatch for custom stuff


i just really hate that blank page or blank component when starting to write html i dont really mind copying something existing though. is there a place or model where i could generate layouts and components with prompts?

#1035676

>>1035675

>

is there a place or model where i could generate layouts and components with prompts?

v0?

#1035679

>>1035676

sorry i mean images of the stuff, then i could just copy that

https://civitai.com/models/2502/webui-helper

havent really thought it out tho


at the start its easiest to just write the content in html without styling

then something needs a bit of css to fit in view nicely

then its time to pull tailwind and setup auto reload

and then start adjusting everything and padding and margin font sizes, custom buttons

#1035681

>>1035679

and of course text aligning

flex row and then go through align items, justify items and justify content by setting each to initial or middle or was it baseline

just go through everything and eventually the button will be aligned with the text


im way too dumb for computers

#1035682

>>1035679

>

images of the stuff, then i could just copy that

>>993634 ➡


>

at the start its easiest to just write the content in html without styling

>

then something needs a bit of css to fit in view nicely

>

then its time to pull tailwind and setup auto reload

try next.js

#1035683

>>1035682

it only solves auto reload it doesnt magically give me nice components that fit my dumb idea

#1035684

>>1035683

>

it doesnt magically give me nice components that fit my dumb idea

why? run create-next-app, then copy-paste code from draw-a-ui

#1035756

ok, waited 5 days on my new account, I even used gmail.com email.


>>1031726

I was able to reply to 1 thread just fine, but on the second thread I just can't. I removed all the links and still can't, it adds it to the mod approval queue and of course on that retarded forum nobody gives a fuck about that.


so my only idea is that it doesn't like multi quote? or post length is too big? bug that's beyond being retarded...


now imagine I do 10 more tries, finally let it through the retarded filter. and 1 day dumb mod will finally check the approved queue and let them all pass. that would be fucking embarassing

#1035757

>>1035756

>

multi quote? or post length is too big?

or probably it doesn't like on of the words. of course it would never tell you which one


fucking hate those old retarded forums but important people still post there


ok, I've got an idea. I will post half of the post and will edit and add another half

#1035759

>>1035757

>

I will post half of the post and will edit and add another half

yes, this worked

I'm so fucking smarter than that dumb forum software


I hope they will never approve all my post attempts

I even posted them from different accounts, they would think I'm so evil spammer

#1035764

>>1035759

I found similar issue on the forum. User posted few short posts just fine, but when he tried to create longer one (without any links, just normal formatting and one quote) he got blackholed.


so antispam reacts on length of the message? that's too retarded

#1035788

>>1035759

someone responded to my post today

and now it's missing

wat


I did everything I could and it still didn't work???

#1036208

text: generated

audio: generated

video: generated

code: autocompleted

language: translated

chance for kgf: none


why even live

#1036348

>>1036343

i'm playing dark souls 2 right now so i might continue with 3 and elden ring

also have a thing for arena shooters so the motion clarity is gonna be nice


>>1036346