Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

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 $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



i have an exe that looks like it might be a "Wise Installer", is the a way to extract its contents? im on a mac

code:
$ strings -5 lovely.exe | ack -i inst
GLBSInstall
Demo installations only run on the computer they were created on.
Install
Could not initialize installation. 
Initializing Wise Installation Wizard...
none of the random code i googled up seems to work

Adbot
ADBOT LOVES YOU

cool av
Mar 2, 2013

Plorkyeran posted:

there's no inherent reason why async/await can't give useful stack traces. i don't know if it doesn't in js because the spec is poo poo and accidentally made it impossible or if v8 just doesn't give a gently caress. probably both.

In chrome dev tools you can't add variables to the watch window or see their value in the console for source-mapped JS code.

You can mouse-over them though.

I don't know how people put up with it. Maybe part of why JS devs are so obsessed with filesystem watchers that auto-rebuild and restart their app.

redleader
Aug 18, 2005

Engage according to operational parameters
js tooling is so bad

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.
feels like js devs should be angrier. maybe they become so when they try any other setup and realize it doesn't have to be that bad

DrPossum
May 15, 2004

i am not a surgeon

pokeyman posted:

js devs... they try any other setup

javascript "devs" are the same people who started writing webservers in javascripts so people "don't have to know two languages"

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
who was the js devs that were writing thier own version control system for the same reason

champagne posting
Apr 5, 2006

YOU ARE A BRAIN
IN A BUNKER


CRIP EATIN BREAD posted:

who was the js devs that were writing thier own version control system for the same reason

i know js devs are a special bunch but their own version control?

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.
sh doesn't even have promises how can i contribute to git

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Boiled Water posted:

i know js devs are a special bunch but their own version control?

i guess it beats blowing up your free paycheck by writing your own js bitcoin miner

RPATDO_LAMD
Mar 22, 2013

🐘🪠🍆
what about the guy who got fired from reddit because he spent all his time on the grand project of re-implementing bitcoin in js (instead of doing his job)

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



RPATDO_LAMD posted:

what about the guy who got fired from reddit because he spent all his time on the grand project of re-implementing bitcoin in js (instead of doing his job)

yeah that guy

he didnt have a job, they forgot him in a shuffle & he had no boss but still got paid

he probably couldve skated under the for a good while on good faith except he decided to do that & hosed it all up

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



just do nominal maintenance poo poo so you stay in the git log & fart around the rest of the time

would be p nice

DrPossum
May 15, 2004

i am not a surgeon

CRIP EATIN BREAD posted:

who was the js devs that were writing thier own version control system for the same reason

yessss inject that terrible programming straight into my veins

akadajet
Sep 14, 2003

i write lots of javascript and not javascript. and the javascript would be fine if npm didn't blow so much

piratepilates
Mar 28, 2004

So I will learn to live with it. Because I can live with it. I can live with it.



akadajet posted:

i write lots of javascript and not javascript. and the javascript would be fine if npm didn't blow so much

have you tried yarn? I mean, I usually just use npm and accept the shittiness, but yarn seems to be a better take

xtal
Jan 9, 2011

by Fluffdaddy

akadajet posted:

i write lots of javascript and not javascript. and the javascript would be fine if npm didn't blow so much

Let me put it this way, Javascript is a good language under the == sense but not the === sense

akadajet
Sep 14, 2003

piratepilates posted:

have you tried yarn? I mean, I usually just use npm and accept the shittiness, but yarn seems to be a better take

yarn and npm share the same ecosystem unfortunately

piratepilates
Mar 28, 2004

So I will learn to live with it. Because I can live with it. I can live with it.



akadajet posted:

yarn and npm share the same ecosystem unfortunately

ah the javascript issue, yeah you're boned there

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

piratepilates posted:

have you tried yarn? I mean, I usually just use npm and accept the shittiness, but yarn seems to be a better take

yarn was really great (compared to npm) a few years ago but npm eventually added all the missing functionality and now is sometimes faster than yarn too

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.

piratepilates posted:

have you tried yarn? I mean, I usually just use npm and accept the shittiness, but yarn seems to be a better take
yarn has fully embraced the js ecosystem and have decided that v2.0 will be mostly incompatible.

thankfully there's a very brief migration guide

NihilCredo
Jun 6, 2011

iram omni possibili modo preme:
plus una illa te diffamabit, quam multæ virtutes commendabunt

I like pnpm because I don't have to wait five minutes to run 'npm i' every time I want up quickly check out a hundred-long sample project from hitting, and it feels like it's got a slightly more sane idea of dependency management in general

shame it only works like half the time with my weenie fp frontend languages though

Phobeste
Apr 9, 2006

never, like, count out Touchdown Tom, man
am i correct in thinking "yarn dlx" stands for download and execute because lol at making curl http://github.com/some/random/bullshit | bash a key part of your dev experience

pokeyman
Nov 26, 2006

That elephant ate my entire platoon.

Sagacity posted:

yarn has fully embraced the js ecosystem and have decided that v2.0 will be mostly incompatible.

thankfully there's a very brief migration guide

"very brief migration guide": the scariest four word term in software development

Gaukler
Oct 9, 2012


quote:

Important note: This isn't a step-by-step guide. The best way to migrate is just to upgrade Yarn and see whether everything works.

oh okay then

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
and to reiterate, people consider yarn to be the sanest package management option

xtal
Jan 9, 2011

by Fluffdaddy

Sagacity posted:

and to reiterate, people consider yarn to be the sanest package management option

Its kind of like React or Kubernetes where a big company made a terrible mistake but people aren't able to separate that from their success, so they just cargo cult everything megacorps do with no critical thinking. Nobody anywhere thinks yarn is sane, the two viewpoints are "I don't use this because it's dumb" or "I use this because Facebook made it."

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
yes it seems like whenever bigcorps release some open source tooling people lose all capability for critical thinking

"react hooks? so depending on the order in which I invoke magic functions I might get different results? SIGN ME UP"

Phobeste
Apr 9, 2006

never, like, count out Touchdown Tom, man
all the devs who talk endlessly about pure functions and avoiding mutable state buying wholesale into react hooks instead of mapstatetoprops is the funniest thing to see in real time

Sapozhnik
Jan 2, 2005

Nap Ghost
mapstatetoprops is loving horrid and so is redux in general.

hooks are pretty bad but they were almost a decent concept. if they made it so that a function component took a second "env" parameter and the hook primitives took that env as an argument and extracted named pieces of state from it then it would actually be pretty good and i'd absolutely use it.

Phobeste
Apr 9, 2006

never, like, count out Touchdown Tom, man
mapstatetoprops in my (minimal) experience seemed no more annoyingly verbose than anything else in redux, but i guess that's a really load bearing "no more"

Sapozhnik
Jan 2, 2005

Nap Ghost
Use context instead if you really must. Why do you need every single nontrivial component of your application to be a function of the entire universe?

Instead of this thunk, action, reducer self-flaggelation it's much better to just put an async method into your component directly and move on with your life. Put the API calls in an outer component, do the rendering in an inner component, avoid having to explicitly deallocate global-variable state and making your component into a function of the entire universe in the process.

Of course, the problem there is that you end up writing a different kind of boilerplace this way: less boilerplate, but boilerplate nonetheless.

code:
getWhatever = async () => {
  try {
    this.setState({ status: "pending" });
    const result = await fetch("https://example.com/api/v1/whatever");
    this.setState({ status: "succeeded", result });
  } catch (error) {
    this.setState({ status: "failed", error });
  }
}
which looks a lot like your typical Redux thunk except with setState() instead of dispatch() and stems from the fact that React doesn't really play nicely with promises inside props or state. Unlike the Thunk equivalent though you can't easily factor this boilerplate out.

I made a nice HOC (insofar as an HOC can at all be described as "nice") for wrapping components such that you can pass promises into the HOC and it passes equivalent current-state-of-async-operation objects through to whatever component it is wrapping. I did it using TypeScript so it even defines a mapped type for props that automatically derives the inner Props type as well, thanks to some recently-added TypeScript language features.



anyway yeah javascript delenda est et cetera et cetera.

piratepilates
Mar 28, 2004

So I will learn to live with it. Because I can live with it. I can live with it.



Sapozhnik posted:

mapstatetoprops is loving horrid and so is redux in general.

hooks are pretty bad but they were almost a decent concept. if they made it so that a function component took a second "env" parameter and the hook primitives took that env as an argument and extracted named pieces of state from it then it would actually be pretty good and i'd absolutely use it.

I like the concept of hooks and I've bought on to using them pretty widely in react (when I write react instead of just doing more fun back-end stuff), but I really don't understand why they didn't do something like your `env` idea. I don't get what was more appealing about hiding how the state works behind the curtain and having to tell people learning hooks to just trust it, instead of making it very obvious.

mystes
May 31, 2006

I don't think there's anything inherently wrong with hooks but I also find it sort of dumb that React felt the need to take a step in the direction of FRP just because they were bored of MVU or whatever.

Soricidus
Oct 21, 2010
freedom-hating statist shill
ctps: fffffffffffffffffffff
why am I having to touch gradle
every time I have to touch gradle I want to punch the people who made it in the face, repeatedly
why does every single loving question get answered with “oh just paste this bit of magic code into the spaghetti heap you call your main build file”
why does anyone think this is good or sane
aaaaaaaaaaaaaaaaaaa

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
I feel for you

I attended a presentation last year where they were announcing Gradle 6 and even a basic project with some dependencies that need a few exclusions was wildly complicated

This is version six, at least yarn is only up to two

Sagacity fucked around with this message at 22:48 on Aug 15, 2020

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

xtal posted:

Its kind of like React or Kubernetes where a big company made a terrible mistake but people aren't able to separate that from their success, so they just cargo cult everything megacorps do with no critical thinking. Nobody anywhere thinks yarn is sane, the two viewpoints are "I don't use this because it's dumb" or "I use this because Facebook made it."

when it first came out yarn fixed some major problems with npm like npm install not having deterministic version selection even with a lockfile listing the exact versions to install and it was absurdly faster

bob dobbs is dead
Oct 8, 2017

I love peeps
Nap Ghost
the basic and not really fixable problem is that npm is a for profit vc backed company and they expect their main revenue source to be npm. which is fuckin stupid.

Shaggar
Apr 26, 2006

Soricidus posted:

ctps: fffffffffffffffffffff
why am I having to touch gradle
every time I have to touch gradle I want to punch the people who made it in the face, repeatedly
why does every single loving question get answered with “oh just paste this bit of magic code into the spaghetti heap you call your main build file”
why does anyone think this is good or sane
aaaaaaaaaaaaaaaaaaa

switch to maven. gradle is a terrible pile of poo poo by and for the dumbest possible people

abraham linksys
Sep 6, 2010

:darksouls:

bob dobbs is dead posted:

the basic and not really fixable problem is that npm is a for profit vc backed company and they expect their main revenue source to be npm. which is fuckin stupid.

you must have missed that this problem was solved https://thenewstack.io/github-acquires-npm-buying-microsoft-a-presence-in-the-node-javascript-community/

Adbot
ADBOT LOVES YOU

bob dobbs is dead
Oct 8, 2017

I love peeps
Nap Ghost
huh, so i did

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