New around here? Register your SA Forums Account here!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $10! We charge money because it costs us money per month for bills alone, and since we don't believe in shady internet advertising, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Silver Alicorn
Mar 30, 2008

PRODUCED BY OR UNDER LICENSE FROM SEGA ENTERPRISES, LTD.

I'm learning JavaScript

Adbot
ADBOT LOVES YOU

Subjunctive
Sep 12, 2006

ask me about nix or tailscale
you gotta understand how bad the other options were...

mystes
May 31, 2006

Silver Alicorn posted:

I'm learning JavaScript
You should read java script: The Good Parts. For your convenience I have copied the full text below:

Silver Alicorn
Mar 30, 2008

PRODUCED BY OR UNDER LICENSE FROM SEGA ENTERPRISES, LTD.

at first I didn't hate it but the more I learn the more I understand

mystes
May 31, 2006

Lol if you have JavaScript and then a colon the forum changes it to java script:

Silver Alicorn
Mar 30, 2008

PRODUCED BY OR UNDER LICENSE FROM SEGA ENTERPRISES, LTD.

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

Carthag Tuek
Oct 15, 2005

altid pamo når du går
veje du burd' kende
overleved' barneår
lig' til livets ende

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

rotor
Jun 11, 2001

Official Carrier of the Neil Bush Torch
I'm gonna be real with y'all. Idk what 'BOM' means in this context.

mystes
May 31, 2006

Byte order mark

root of all eval
Dec 28, 2002

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

Dripp Pisso
Nov 6, 2007

Resist the siren call of rhinocerosness

College Slice
I've been wondering how Maven Bill of Materials could wreak such havok.

gnatalie
Jul 1, 2003

look alive in the strange world

rotor posted:

I'm gonna be real with y'all. Idk what 'BOM' means in this context.

auto-bom, aka the information superhighway

Carthag Tuek
Oct 15, 2005

altid pamo når du går
veje du burd' kende
overleved' barneår
lig' til livets ende

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.

redleader
Aug 18, 2005

Engage according to operational parameters
maybe they should have defined the byte order in the unicode spec

DemihumanResources
Apr 16, 2019

Just let me frob some dang bits already

Silver Alicorn posted:

I'm learning JavaScript

I hope by javascript you actually mean typescript

eschaton
Mar 7, 2007

the knowledge knower. a wisdom imparter. irritatingly self-assertive. odorous.

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

CPColin
Sep 9, 2003

Big ol' smile.
Ha ha what a byte order, Mark!

rotor
Jun 11, 2001

Official Carrier of the Neil Bush Torch
ohhhhh ok thx u

DemihumanResources
Apr 16, 2019

Just let me frob some dang bits already
I did not order these bytes I did not oh hi mark

Quackles
Aug 11, 2018

Pixels of Light.



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 :v:

Cold on a Cob posted:

linq != linq2sql != ef linq

if you're avoiding linq with in-memory objects in favour of nested for loops everywhere you can start using linq now, it's 2025

It's really just down to when you ToList() to force the data to materialize.

redleader
Aug 18, 2005

Engage according to operational parameters

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"

redleader
Aug 18, 2005

Engage according to operational parameters

Quackles posted:

isn't that just a stored procedure :v:

haha, oh my, no

Presto
Nov 22, 2002

Keep calm and Harry on.

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

Powerful Two-Hander
Mar 9, 2004

Mods please change my name to "Tooter Skeleton" TIA.



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

Carthag Tuek
Oct 15, 2005

altid pamo når du går
veje du burd' kende
overleved' barneår
lig' til livets ende

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

Gummiworms
Apr 2, 2016

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.

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

s proc 7

root of all eval
Dec 28, 2002

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

Gummiworms
Apr 2, 2016

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

redleader
Aug 18, 2005

Engage according to operational parameters
you don't need typescript for a database skin, because you don't need javascript for a database skin

eschaton
Mar 7, 2007

the knowledge knower. a wisdom imparter. irritatingly self-assertive. odorous.
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

root of all eval
Dec 28, 2002

I don't know how to do that so I think you're wrong

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


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

Quackles
Aug 11, 2018

Pixels of Light.



eschaton posted:

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

POSIX rides again?? :v:

rotor
Jun 11, 2001

Official Carrier of the Neil Bush Torch
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.

my homie dhall
Dec 9, 2010

honey, oh please, it's just a machine
typescript the language is probably better than python, it’s just the accoutrements that should give you the heebie geebies

Private Speech
Mar 30, 2011

I HAVE EVEN MORE WORTHLESS BEANIE BABIES IN MY COLLECTION THAN I HAVE WORTHLESS POSTS IN THE BEANIE BABY THREAD YET I STILL HAVE THE TEMERITY TO CRITICIZE OTHERS' COLLECTIONS

IF YOU SEE ME TALKING ABOUT BEANIE BABIES, PLEASE TELL ME TO

EAT. SHIT.


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

Powerful Two-Hander
Mar 9, 2004

Mods please change my name to "Tooter Skeleton" TIA.



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.

it worked fine and i liked it.

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

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
or as the Italian consultant we hired to explain dax to us would call it, dax-uh

which seems appropriate

Adbot
ADBOT LOVES YOU

cool av
Mar 2, 2013

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.

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.

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.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply