|
I'm learning JavaScript
|
|
|
|
|
| # ? Dec 16, 2025 14:15 |
|
you gotta understand how bad the other options were...
|
|
|
|
Silver Alicorn posted:I'm learning JavaScript
|
|
|
|
at first I didn't hate it but the more I learn the more I understand
|
|
|
|
Lol if you have JavaScript and then a colon the forum changes it to java script:
|
|
|
|
anyway I figured out how to make a collapsible tree list view sort of thing. you can check it out at http://127.0.0.1:8000
|
|
|
|
DELETE CASCADE posted:the bom is useless in utf-8, and encodings other than "utf-8 without bom" are haram i agree, but apparently some combination of garbage did include a bom that hosed up my .env file for 30 minutes real time
|
|
|
|
I'm gonna be real with y'all. Idk what 'BOM' means in this context.
|
|
|
|
Byte order mark
|
|
|
|
Silver Alicorn posted:anyway I figured out how to make a collapsible tree list view sort of thing. you can check it out at http://127.0.0.1:8000 Hey! That looks exactly like little JavaScript thing
|
|
|
|
I've been wondering how Maven Bill of Materials could wreak such havok.
|
|
|
|
rotor posted:I'm gonna be real with y'all. Idk what 'BOM' means in this context. auto-bom, aka the information superhighway
|
|
|
|
byte order mark a useless byte in front of windows files that clarifies that theyre windows files, even when theyre plain ascii. they were a big issue twenty years ago. python2, what not.
|
|
|
|
maybe they should have defined the byte order in the unicode spec
|
|
|
|
Silver Alicorn posted:I'm learning JavaScript I hope by javascript you actually mean typescript
|
|
|
|
redleader posted:maybe they should have defined the byte order in the unicode spec they did, the byte order mark is what tells you it
|
|
|
|
Ha ha what a byte order, Mark!
|
|
|
|
ohhhhh ok thx u
|
|
|
|
I did not order these bytes I did not oh hi mark
|
|
|
|
redleader posted:many of my problems with databases could be solved if you could turn a sql query into an execution plan ahead of time, then deploy and run the plan itself instead of the text query. this would give you stable, predictable performance instead of having the db randomly freak out one day isn't that just a stored procedure ![]() Cold on a Cob posted:linq != linq2sql != ef linq It's really just down to when you ToList() to force the data to materialize.
|
|
|
|
eschaton posted:they did, the byte order mark is what tells you it yah i just skimmed some rfc somewhere and im starting to think they should have just said "do it in this order"
|
|
|
|
Quackles posted:isn't that just a stored procedure haha, oh my, no
|
|
|
|
Silver Alicorn posted:at first I didn't hate it but the more I learn the more I understand https://en.wikipedia.org/wiki/Stockholm_syndrome
|
|
|
|
when it comes to stored procedures the definition of madness is repeating the same thing over and over and expecting the same result because one day it won't be the same result because an index or something stats will change slightly and the planner will detonate your entire system
|
|
|
|
redleader posted:yah i just skimmed some rfc somewhere and im starting to think they should have just said "do it in this order" yea idgaf if its high or low endian, but i do give a fukc that theres a weird byte iat the beginning of n an otherwise plain ascii file. just select one for the standard, deprecate the bom, and use cannons to shoot people who use it
|
|
|
|
DemihumanResources posted:I hope by javascript you actually mean typescript typescript always leaves me wanting a different language, ugly rear end thing. I don't like using it, if I need types I'm using something other than javascript. also not sure if it's just a misconfiguration but every time typescript is added to a new repo at work I lose the ability to click into a function and instead am greeted by a useless typedef file. I have some other biases against TS and it just comes back to the power to define types should have never been granted to javascript developers.
|
|
|
|
s proc 7
|
|
|
|
I did a project in deno with a very dialed in tsconfig and I gotta say it was a nice experience. If your only TS experience is overlaid into an existing project it will feel appropriately limiting and frustrating
|
|
|
|
it feels like overkill for a mostly CRUD API because you're just reimplementing the database types. of all the bugs we have had, I can't think of one that would have been fixed by a type. discordjs for example was a massive PITA to work with because whenever you used a function the types used omit with nested levels of custom types. I could see that that level of typing being useful in UI code, but for libraries consumed by third parties it's annoying obfuscation when misused and man is it easily misused lol
|
|
|
|
you don't need typescript for a database skin, because you don't need javascript for a database skin
|
|
|
|
all this is just standard stuff that should be required to be supported out of the box in every OS when you ask your OS to connect to a service, it should connect over a standard port, authenticate in a standard way (Kerberos), receive a set of forms for the service in a standard language (ISO/IEC 11730:1994 FIMS as developed by CODASYL, aka IFDL), use the form definitions to present an interface to the user including input validation, and then send the service ANSI SQL based on the definitions in the forms to perform CRUD operations eschaton fucked around with this message at 23:27 on Nov 9, 2025 |
|
|
|
I don't know how to do that so I think you're wrong
|
|
|
|
lately I've been thinking hey maybe I should give javascript/typescript another try one of these days, to see what webdev looks like today I think I've reconsidered
|
|
|
|
eschaton posted:all this is just standard stuff that should be required to be supported out of the box in every OS POSIX rides again??
|
|
|
|
idk about all that stuff but i do know that with windows you could register all kinds of random poo poo - xls, mdb, fuckin csvs - as odbc data sources and you’d get a generic url back you could issue sql queries against. it worked fine and i liked it.
|
|
|
|
typescript the language is probably better than python, it’s just the accoutrements that should give you the heebie geebies
|
|
|
|
I know the basics and did a bit of webdev work and stuff in the past, it's the frameworks I haven't bothered to keep up with TBH both are pretty simple languages all told
|
|
|
|
rotor posted:idk about all that stuff but i do know that with windows you could register all kinds of random poo poo - xls, mdb, fuckin csvs - as odbc data sources and you’d get a generic url back you could issue sql queries against. good news Microsoft Fabric™ let's you do this except you have to use DAX which is dogshit for doing it: it has some "SQL like" commands but they're a pain in the rear end as only home made SQL languages can be
|
|
|
|
Powerful Two-Hander posted:use DAX which seems appropriate
|
|
|
|
|
| # ? Dec 16, 2025 14:15 |
|
Gummiworms posted:typescript always leaves me wanting a different language, ugly rear end thing. I don't like using it, if I need types I'm using something other than javascript. the power to define types via metaprogramming like in TS will lead to certain devs spending all their time on fun typing puzzles, and the better they get at it the more insane your codebase will become. right up until the beautiful recursive interlocking type definition factory you’ve built falls over under its own weight and starts timing out tsc.
|
|
|



























