#development
1 messages Ā· Page 609 of 1
ok now i am hearing about "prototypes" in javascript
@restive ether ban
Mans obsessed with minors
For real
oh yea the old class
NO
i havent used that in so long
YOU STARTED IT
oh is it old
cum.prototype.nut = function() {
}
what's the new
im going to pull up java minecraft on my main monitor and bedrock minecraft on my second one and take a full screenshot because im bored
Wait till you find out that you can use functions as variables in C
is typescript better than this
i know
With the most cured syntax ever
but in javascript all of these functions are variables
Well, second only to functions returning a sized array
@primal perch is typescript less [redacted]ed
function pointer syntax is fine
and how you actually utilize it
if anythnig is bad its the block syntax
because i still odnt really understand npm
That's how you make a function return a sized array
is webpack a thing that everyone uses
skill issue
where is returns_arr coming from
Who tf thought it was a good idea š
That's the function name
broken cert, nice
people still use https? cringe.
BRB, gonna switch all my qsort to use qsort_b and be non-portable
what do you use
you are from the 90s
not true
you know what else is from the 90s
he's a musician
Just use bulletin boards, that way you can do way more then http can
"Sorry I missed your call, I was on the computer"
wait i thought bulletin boards were just http websites
based and http pilled
Capt canāt relate to getting calls
Do doesnāt matter
š
Nah, it came before http
EU moment, trying to ban cryptography
mcdonaldās is ass tbh

damn so funny
stop asking kids that stuff š
straight from grade 6
Cumming GA
Yes
You actually know someone from there
whois diatr.us
Dear Hayden's Mom
true
Some, find that spot on a map and dig to the other side of the world
Could you zoom in a bit
child predator is desperate for victims
whereās he
seems like a missouri mf
california
poopy
should i go sleep
should I
is he exercising
Definitely capt.
@grave sparrow what college do you go to?
based daft punk
real

.

youāre dead
this is effectively the gc
finally i did something useful in JS
gm
No you would die
troll
no one asked + don't care + didn't ask + cry about it + stay mad + get real + L + mald seethe cope harder + hoes mad + basic + skill issue + ratio + you fell off + the audacity + triggered + any askers + redpilled + get a life + ok and? + cringe + touch grass + donowalled + not based + not funny didn't laugh + you're* + grammar issue + go outside + get good + reported + ad hominem + gg ez+ ur mom + you fuck sharks
no one asked + don't care + didn't ask + cry about it + stay mad + get real + L + mald seethe cope harder + hoes mad + basic + skill issue + ratio + you fell off + the audacity + triggered + any askers + redpilled + get a life + ok and? + cringe + touch grass + donowalled + not based + not funny didn't laugh + you're* + grammar issue + go outside + get good + reported + ad hominem + gg ez+ ur mom + you fuck sharks
true
what kind of weeb would use that PFP fr
literally insane
schizophrenic
Yeah people with that pfp need to be put in a prison with the key thrown away
true
does anyone know ASN.1?
is this correct?
Img4 DEFINITIONS ::= BEGIN
IM4P ::= SEQUENCE {
magic IA5String(SIZE(4)),
type IA5String(SIZE(4)),
payload BIT STRING
}
END
on this side of the globe we use kilometres
ASN.1
it a spec for an encoding
is it the man page thing
?
nvm then idk what it is
i died
sorry
i canāt even tell what day that was from because fuckinf discord is in hindi dates or whatever it is
i forget if it was hindi or something else
not hindi tf
idk
itās doin the unfunny
oh
yes always drink
nothing better than vodka in the morning
š
itās easiest to drink tbh
dw, somehow iām still alive
š
best reason to live fr!!!
i donāt like drinking though
i just like avoiding problems
what the heck
you are too drunk
what have you done to your phone
discord moment
i installed discord
that is what i have done
to both myself
and my phone
it was the most decision iāve ever made
what
it was the most decision iāve ever made
yeah, now that was your mistake
funny enough that's an issue Enmity users gets too
but it's caused by our mod
egg
@grave sparrow we do a little trolling
I can now run blacklisted apps
just can't debug yet
@opal ridge
got my cs final in 7 hours
š
what up
imagine needing all this for an exam ffs nevermind i thought you meant some app that proctors your cs final until i noticed that was from a while ago š
bozo hours
downgrading as a solution 
i know that is a fix but itās cring
iād rather cope
arceseus not pretending to be someone else! 
I actually just completed my cs final 10 mins ago
I donāt have nickname perms here, and Iām not going to no-life to rack xp š„±
ratio?
alt store my beloved
sideloadly supremacy

yooo reprovision reborn
i forgot
wow and it actually works

Rip
G A Y P O R N
Sideloadly > altstore
howd it go
gross
Pain, windows had a thread feature that hides from debugger so you donāt infinite loop but the apps can abuse that by hiding the debugger check in the thread hidden from the debugger
@grave sparrow
Idk what to do because it just throws access violation with no backtrace
But you already have no life
Man had to question the ratio
Why would you react to something you already know tho?
\

I suppose they use driverkit on iOS 15 now? idk for what though
ldid -e ~/mnt/root/usr/libexec/driverkitd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.private.kernel.get-kext-info</key>
<true/>
<key>com.apple.private.sandbox.profile:embedded</key>
<string>com.apple.driverkitd</string>
<key>com.apple.private.security.iocatalog-management</key>
<true/>
<key>com.apple.private.security.kext-collection-management</key>
<true/>
<key>com.apple.private.spawn-driver</key>
<true/>
<key>com.apple.private.xpc.launchd.job-manager</key>
<string>com.apple.driverkitd</string>
</dict>
</plist>
sounds like a security nightmare
the XNU kernel is not designed for this
YES YES YES YES YES
whatever Apple needs they will into existence no matter what it takes
microkernel: > 18 XNU (DriverKit)
monolithic kernel: < 19 XNU
Microkernel: Mach
a monument to the sins of man

Hey so i download mitmproxy profile and from pc i download charles proxy?
no mitmproxy and charlesproxy are two different programs, you only need one (I recommend Mitmproxy).
sir, you do not do that
don't mess with that
why do u need to increase memory limits
You should never do that.
My process crashes because of exceeding memory limits
what r u doing in this process
Well you should make it where it doesnāt, increasing jetsam messes up the users idevice.
just write more efficient code
as @twilit jungle would say "Write better codeā¢ļø"
Decoding video frames in YouTube app
Need to get rgb data from the CVPixelBuffer for my new tweak
Try using something like MobileVLCKit instead, it works much better with youtube
I Donāt know where to get the decoded frames
Thatās will check it out. Iām using VideoToolbox atm
@vivid dew triangle
you shouldnt have theos installed under root
https://theos.dev/docs/installation-ios
All the commands shown in the following instructions are meant to be run as the āmobileā user, not root. Similarly, Theos is also meant to be run as a normal user, not root.
its not about it

gm dghost
Where tf u live
maybe don't run theos as root
MDT time zone
did you reinstall theos not in root
dont use an installer
i checked internet too
.
its literally copy and paste
my brother in Christ
Nithing different

@tepid olive
- some jailbreaks donāt make it so running scripts from /var is possible so you might have to use /opt/theos instead
- Since youāve ran Theos as root once, now you get permission errors as mobile. You have to clean up everything as root, or change permissions to mobile for your whole project
- Following the GitHub instructions is the only one we do support for. If you have issues with theos installed by a tool like the one you used you should ask for support from the author of that installer
average journey fan
Thanks sir i fixed it ā¤ļø
Typical whitename L take
but he is right
Donāt stop believing is a very overhyped song
I already stopped believing
Why are you telling to donāt stop when I already did
Journey is a bad band

iCloud bypass pls
[[free money]]

ntwerkOS
idk how to upload file

i gotta work on it tho
safari icon, music, itunes
mail and files too
maybe shortcuts
Welcome to Capt's class on how he get no hoes
How do I teach people to become a virgin again???
I gotta do the lord's work
man
Jesus got it easy man


Wait
what
I have been using your CC for months now

ok
wtf
yeah to you she said
fales
fale
Pronunciation /ĖfÉĖleÉŖ/
noun
A Samoan house with open sides and a thatched roof.
āMy guide book said nearly all the houses (or fales, pronounced āfah-laysā) had traditional thatched roofs.ā
do you guys know if it's required by GDPR to have a checkbox if you collect an email address, even if it's obvious what it's used for

love how GDPR is such a consumer rights win but also totally disconnected from reality
I had to store the date you consented or didnāt consent to receiving marketing emails from Chariz
before, didnāt need to care, it was just a boolean flag on your profile and thatās it
:realization:
oh wait in this program it would be the same as the date of the comment
now I have to update a separate date field when your consent changes, as a legal requirement
not sure storing more data was exactly what GDPR had in mind, but hey whatever
wait how do you handle users that dont consent
are they somehow still able to sign up?
it could definitely use some restructuring
though itās pretty amusing to see people say it ruined the internet because they see banners at the bottom of webpages or whatever
such as our friend elon so eloquently said
wait really
yeah heās a gdpr hater
wholesome
probably because he wants unrestricted access to everyoneās data
go figure
needs to monetize everything and everyone
can a person have a GDP
i looked up elon musk and the first suggestion was "elon musk gdp"
i thought that was just a thing on countries
what

Itās extremely dense dust
wtf
@restive ether GAY PORN
me
legit have never seen dust on a rad this bad
I think I got lucky with mine because it's side mounted with other fans pushing air from bottom to top of the case
so dust doesn't even have a chance to settle, just gets pushed right out
I have a ceiling fan so dust circulation is high
makes sense
Ugh thermal paste so difficult to get off your hands
Still smells despite it being all gone
never had thermal paste smell
but maybe I just can't smell it, idk
comes off skin easily with alcohol wipes for me, clothes not so much⦠don't ask me how I know
just like painters have painting clothes, chad gamers have pc building clothes @lime pivot
lmao
idek where to start if i want to rewrite this JS thing with TS
like what even is the proper build procedure or pipeline or whatever, is it still standard to use webpack in typescript?
client side dev?
dealing with the comment system I use, trying to improve it
I am mostly dealing with the frontend because I am scared to find out how bad the back end code might be
And the issues I've made pull requests so far have been exclusively UI ones
I do not want to deal with this client code anymore
And I'm hoping typescript will be more up my alley
Trying to figure out too if webpacj is the right tool for bundling/imports/whatever, or if there's better and more modern alternatives
webpack will work fine
there's also rollup and stuff based on it like vite you might be interested in
oh I didn't mean it that way
it also looks like typescript has its own import/export thing, i wonder if that's similar?
it's a little more "low-level" as in you're constructing a config file telling it exactly what to do, whereas a higher-level tool like vite generates a config file for you based on what it sees you using
including typescript
it's down to what you're most comfortable with, no upsides/downsides to each approach other than that
what's sort of likr the differnece between typescript modules and webpack
you're thinking of things on different levels really
typescript when used with webpack/rollup/etc is just generating code that the build system's resolver can understand
build system then goes and figures out what file has to be imported, runs whatever build steps on that, and merges it into your bundle
I don't really inderstand
hm, think of it this way
Like with typescript modules I see import and export and stuff. But with webpack I see require and module.exports
you tell webpack that the entrypoint of your code is index.ts
so it goes through your rules and learns that it has to use ts-loader to build this file
ts-loader returns transpiled ts --> js code, plus a list of that file's dependencies
webpack loops over those dependencies in the same way, till it's done all of them
With typescript and webpack would I still have to use require() and module.exports? In typescript examples I see import and export used
TS is better with import/export, but you can use commonjs (require/module) no worries, it figures out what you meant either way
what is commonjs
just the name the node module system got given
back when there wasn't really any canonical way of doing imports/exports
the typescript import/export statements are the EcmaScript Modules (ESM) system, but don't worry so much about that unless you really want to. it's still a bit of a pain in the butt to try and use "true" ESM at the moment, and CJS works perfectly fine
so then if I used webpack, I would also use the typescript import/export words, and it would do the same as require and module.exports?
TS translates those ESM statements to CJS as long as your tsconfig is set up correctly ("moduleResolution": "node")
yep correct
if you want to poke around a pretty straightforward webpack project, feel free to look at https://github.com/chariz/tweakdle/blob/main/webpack.config.ts
so then are these examples using webpack? or is there some way that these modules can be used without webpack
the examples being the typescript handbook btw
can you do import/export in regular JavaScript the same as in typescript?
that's what ESM aims to do, it's really good and we use it for Chariz now, but it has some rough edges so if you're not familiar I would say skip it for now
what does webpack add on to that esm modules system
wdym?
Are you able to use the import/export without webpack
you would be relying on the browser to load a whole ton of files including from node_modules, which isn't really ideal
webpack builds it into a single file (and lets you split up into multiple files if you want to)
So maybe I want to do this then? its sounding like esm is supposed to be better (or modern at least) compared to cjs
definitely can
you can use my code as a reference since Iām pretty sure I did that as esm
oh also unrelated but in the original program they have production and Dev split into two files (embed.dev.js and embed.min.js), I could do that too right, if I copy the right stuff?
and should I be thinking of typescript more as just JavaScript but with (somewhat optional) static typing so you can catch stuff at compile time?
any reason you need to do that?
pretty much. aside from a few smarts like modules and JSX, in the end itās mostly just outputting what you input, less types
I have a feeling .dev.js is the original source and .min.js they generated by running it through a minifier tool manually
webpack minifies by default, but you donāt really need to worry about that because it also generates sourcemaps
compatibility I guess, and it is simpler to just swap out a line in the HTML file to get the Dev version
so any errors will tell you where it is in the original source
Dev.js is output from webpack
like if I go to Dev console I can see original code in the webpack tab
yep
it does actually
how is that possible
file will end in //#sourceMappingURL=blah.js.map
map file has all the data the browser can use to reconstruct the original files
does the Dev console automatically load the map file
yep
I guess that makes sense then
this is the webpack config
so with that config I could still use embed.min.js and it would show the same stuff in dev console?
I think I remember the reason for having .Dev.js was so you could see better tracebacks in the console for people reporting issues
it would have the full name instead of the obfuscated version

why ?
ok
Hi sorry I was tired as fuck yesterday
Basically most apple kexts are stored in the boot cache or the system cache
The aux cache is generally for non-apple kexts, and is the only one that can be modified without breaking the seal
Since it's intended for non-apple kexts, you need a special key in your info.plist to show that this kext is intended for the aux cache
I can get that for you in a sec
development
Np
i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft i hate microsoft
i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft i love microsoft
i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed i stopped buying louis bags after virgil passed
I'm in a Louie store in a Gucci mask
So i forgot what the key is but don't fear, i'll just reverse the binary checking it
fuck it's swift
try OSBundleOptionalAuxKC?
any luck?
L
reeeeeeeeeeeeee
yup
i know there have been Apple kexts in /L/E but i can't find them š
damn
those kexts don't use Apple private APIs
ok you have two options:
- reverse kernelmanagerd and see if the aux collection load requirement is actually settable from the Info.plist because now I'm doubting it
- put your kext in the system KC, or use OC
Opencore
well if you want to put your kext in the system KC
disable SIP
disable authenticated root
mount root volume
put your kext in S/L/E
create new APFS snapshot and bless it
opencore
sec
yes
bootloader
well, not really
since you're on a supported mac, you can ditch the guide
cope mald seethe ratio
Yb programmed it better^
i would use it but it injects the custom bios shit in windows too so i just use refind
me when MacPro7,1 
I wonder if it affects anything that Windows might think I'm using a mac pro
doubt it tho
Lol
I already use some bootcamp drivers for my wireless and bluetooth card 
me when the
I legit couldn't find just a "windows" driver
I had to use the bootcamp one for it to work under windows
Lol imagine
LMAO
But hey bluetooth work great on this wifi card so I can't even complain
and it works out of the box on macOS
you can disable SMBIOS injection in opencore ig
but not ACPI sadly
idk why
you can wrap all your dsl in _OS("Darwin") or something like that but then u gotta compile them all manually
kinda aids
I don't have any custom dsl at least
I just have that ssdt for usb on amd
but I haven't seen that affect anything on windows so no worries on that
theres a few apps that dont work but i cant remember which
3dmark maybe
something like that
wack
If I try to plug my iPad in my hackintosh it disables it because it uses too much power
And thankfully I have full gpu acceleration
I would die if it didnāt
After all that time with no help

lack of gpu accel is unusable
People in the hackintosh subreddit told me it was impossible to do it
And then I did it

Ahh Monterey vm in windows
Best hack
With VMware

That's why I'm full team red still
might end up getting an intel cpu next just to get virtualisation working on macOS but still unsure
would be nice to be able to run docker desktop natively and use the android emulator for work
but 12th gen isn't properly supported by macOS either
well team blue and team green for windows and team red for macos because drivers keep fucking me over but yea

insanity
buying this fucker during the gpu shortage was hell
it came back on stock for like a few minutes on newegg at 3am
5000 series rip
By the time I bought it the drivers are aight
I haven't had it crash on Windows in ages
It's been much more stable on Windows 11 too for what I can see
I do get crashes on macOS once in a while
fucking window server stops responding and then my desktop freezes up
nah it's GPU related
macos amd drivers are way better than windows in my experience
If the GPU can't render windowserver on time it just starts getting unstable, freezing up more and more till it fully crash from a timeout
It's a common issue apparently so L
gotta love amd navi
considering getting an 6900 xt at some point
frankly the only game I play nowadays that put this computer to its knees is vrchat
stupid ass non optimized piece of shit
@snow python you cant hide
I mean, the issue isn't even the game

it's people with avatars that aren't optimised whatsoever
mfs showing up with their anime girl with massive tiddies with 3 million polygons
At least VRchat released their own bones system for Unity which is like 1000x better than DynamicBones
which did make the game run a lot better
but won't help people who can't be bothered to get avatars that aren't complete trash
VRChat helped me a lot with social anxiety and honestly it kept me sane during lockdowns
Being able to hang out with my friends in vrchat during lockdowns helped a lot with my initial lockdown depression
Sure it's not as good as going out but it's close enough
It was an absolutely god sent during covid to say the least
minecraft 2
Vampire Survivors is a time survival game with minimalistic gameplay and roguelite elements.There's no place where to hide, all you can do is try to survive a cursed night and get as much gold as possible for the next survivor, before Death inevitably puts an end to your struggles.Content in the Early Access versionSupports mouse, keyboard, cont...
$2.99
95596
3$ on steam
early access, weekly updates, really fun
gay PORN
gay PORN
made my 3$ absolutely worth with it
0$ goes a long way too
macos 12.5 Release tomorrow
I haven't even updated to 12.4 yet
GAY POR N
based and terraria pilled
terraria good
send
I have a few hundreds in pirated terraria too from when I was like 12
NOOOO
i am well aware
there are occasional reasons
for example, when you are on a supported mac and not using oc
bruh it's possibly the easiest part of hackintoshing
and all the prebuilts should be wrapped in that anyway
to do what?
ĀÆ_(ć)_/ĀÆ

@primal perch how to fix csgo trust factor
I donāt
idk then just playh more
do you have an asian ip
no
rip in piece
fr
i feel like if i want to make this rewrite typescript then i literally have to start from scratch
i have literally no clue what this does
use typescript
instead of the prototype stuff? ok
you saw the example image right
literal insanity
is it correct to say this is roughly equivalent to
class App {
constructor(conf) {
this.conf = conf;
}
initWidget() {
var self = this; // Preserve App object instance context
renderSomething(self.conf);
// [...]
}
}
// later, in other file:
var app = new App('conf');
app.initWidget()
vscode wrote that for me
yes
or maybe it should just be new App
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that changewtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
shepgoba ā Today at 9:15 PM
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that changewtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
capt ā Today at 9:19 PM
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
wtf is app.App in the JS version
i dont even understand
ill mkae that change
typescript compiles to shitty performant js code, not worth it... just use tscheck and if you like vscode help docs use jsdoc commenting... typescript = overrated
wdym "shitty performant js code,"
when ts gets transpiled into js the js produced is just a lot worse than writing js originally
example would be enums and how they get transpiled into bloaty objects
I mean typescript is deff nice for collaboration and for a project that is planned to continue to scale, but overkill for most things
imo
slapping lipstick on a pig and calling it an OO language š
Yeah I'm just kinda done with JS though, it is terrifying
Hackintosh a chromebook
it is possible, if it's not eMMC and there's a decent cpu
lol how is it terrifying
and typescript is a subset of js sooo
why?
Love the pfp
its completely different than other language
this here is fine
it is good
but like why obsess over poorly written obscure code ... just write better js code
how would you write better js code for that
use a class
is still somewhat functions similarly but it has better syntax and will be more familiar to other languages
can you do that in JS though?
is it compatible with ES5 or whatever
and use the static declaration
private might not be es5 compatible id have to check but classes should be
o it says classes are es6
jk classs are es6
yeah
but its basically the same ... instead of having a constructor you just use a function as a class
class is just basically sytnactic sugar over functional classes ... they are basically the same
imo it's better than the prototype thing
prototype is just static
wdym
you can access the method you declare in prototype on all new object instances
basically you are just adding a method to the prototype of the object , so then for every new object created thereafter it will have access to that method
do you understand what the var self = this part does
yeah "this" in js is funny... in that example this is referring to the App object
that allows it to access the "config" prop
the conf property?
why do they have to set self instead of using this
have you ever done js
have you ever done TS
what did you have to do
lol not a shit language ... you type oriented devs all think alike š
fr
std::string &&
lol tbh c++ was my first
GAY PORN
hahahaha
lol why not just use es6
internet explorer
fuck that its ded
well they said that 4% is still like 15 million users or something but maybe i can convince them otherwise
I do a lot of react development and i have not cared/heard of IE complaints in a while now
This PR aims to make the client code once again ES5-compatible since it wasn't a conscious decision and we do not want to lock ~6% 2 of global users out of reading and posting comments just out of laziness.
footnote:
Maybe just 4%, but still, out of a reported 4,6 billion internet users, that'd make 186,400,000 people... leftwards_arrow_with_hook
o wait
they have a better comment further down
If this project is to move towards a new standard of JS syntax (e.g. ES6 and getting rid of the drop-in promise "polyfill"), it should be because someone can demonstrate the actual need for this. There has been a lot of enthusiasm for new and shiny DevOps tools, helper bots and the like, but I have yet to see anyone actually contribute any new Javascript test or an improvement to the client in recent weeks.
If the lack of "modern" syntax is actually preventing people from contributing, then I'm all for lifting this "restriction". But until there's good evidence, I see little reason to throw so many internet users under the bus (or to introduce a total of more than a million lines of code in dependencies).
es6 has roughly 97% coverage lol
94.35% according to caniuse
you forgot the 2.28% of mostly compatible
yeah but does mostly compatible count
and opera mini, whateverthat is
ill probably wait till tomorrow before saying anything so i can sleep on it
what did oyu say was bad with TS though
when i was talking to the maintainer they said that they didn't want to miss out on potential contributors that don't know typescript
its not bad just overkill and adds bloaty js code when it gets transpiled
it means js doesnt care about static typing and ts does but then gets transpiled into js code anyways lol
but thats like not even the same isnt it
it is equivalent in ts/js ... ts just transpiles it down into an object... which is one of the things it doesnt do great
when you use ts you think you are writing a normal enum because of the syntax but its not a true enum in the end
wait does enum exist in regular JS
no
so like what's the substitute
but you can write:
const something = {
KEY:value
}
console.log(something.KEY)
oh
yup yup
hmm
you could also destructure it into its own variable
const {KEY} =something
console.log(KEY)
what do the braces on KEY do
that destructures js objects .... so say you had an object with multple keys like: someobject = {key1:val1,key2:val2} you can get those values like so into a variable:
const {key1, key2} = someobject
and then just call them when you need to ...
const somenewval = key1 + key2
sorry typing from my phone so it takes a min
hm but then whats the purpose of using the braces here
instead of just const KEY = something
you are then making a variable = the object (not a copy) of the object and storing it in KEY
the curly brackets is the operator that says "hey I want the value for this field in the object called something"
if you want to make a shallow copy of the object you ise the spread operator
const newsomething = { ...something }
now i am looking into templating
instead of just having a big string and concatenation
run it b oba
what
real
i will probably try out Vue.js
s
@lone bronze why rip emote
opera mini does all the rendering on a server so your phone just displays effectively an interactive screenshot of the page
as you can imagine the need for such a thing isn't huge any more, so whether it matters, not so sure?
given it's a project that isn't that complex though, I don't see a compelling reason to break ES5 support
of course, typescript + babel can output fully ES5 code out of modern code. effectively all changes ES6 and beyond have been designed in a way that ensures polyfills can be written so nobody arbitrarily drops old browser support due to new useful features
promises and fetch both pretty notable examples, and async/await is just a cleaner way to write promise .then()/.catch() calls
classes too can work all the way back to ES3
yeah if I do TS then I could output ES5 right? Then I could solve that part of the problem
JavaScript is dumb
I hate all of it
time to write the frontend in rust and compile it to webassembly 
lmao
yeah, it can output ES5. although I've had to mix it with babel with babel-preset-env + a browserslist config to get properly compatible code
actually, I think Chariz outputs as ES6 now because the browserlist is set to iOS 11+
but there were features of ES6 that weren't actually supported till as recently as iOS 14.3ā¦
hmmmm
idek what to do
if I'm going to make my own rewrite I should probably set myself free and just use as modern of frameworks and languages as possible
So there's something different
Instead of it just being another rewrite pointlessly
If I'm not going to change much I might as well just make the changes directly to the existing code
yeah. tbh I think if you aren't feeling like you have a total rethink of the concept or code structure in some way you may as well stick to patching the current code
thing is I do have a restructure idea, which would be to use object oriented stuff heavily and structure it around those kinds of static objects
are you just compiling this as a theos tweak or in xcode?
Theos tweak
I already added cephei to makefile, itās working with objc files but not with swift
Cephei vendor does not include a module
@lime pivot could you add modules to Cephei* in vendor/lib pls š„ŗ
in the meantime
go to $THEOS/vendor/lib/Cephei.framework
make a folder called Modules
inside make a file called module.modulemap
and paste in:
framework module Cephei {
umbrella header "Cephei.h"
export *
module * { export * }
}
What am I looking for when I want a video to be sent to my pc as soon as itās done recording?
now im getting this errors
do i need to import Foundation?
its not working
@lime pivot can you help?
this is my headers folder
did import the missing headers from CepheiUI, now it compiled
anyone knows why logging from swift files is not working?
print doesn't print anything in console app
Use NSLog
thanks
i cant tell if rust cargo is worse than node_modules
every rust repo i have is like 500 MB under the cargo directory
Shintel Bore i9 12900KrapShit
true
Crapple M1
I sure could
huh. is this with the latest Theos, and you havenāt changed anything in vendor/lib (aside from modulemaps)?
i have gone through like 10 react + webpack + typescript tutorials and none of them work
so far i'm stuck at it not recognizing jsx or whatever
L
wait till you get to redux and redux toolkit and thunks and sagas š¤Ŗ
gay poRN
isnt that rust
not sure if rust is compatible with redux tbh ... never tried or looked into it
you didnt make the comment component correctly
maybe
wait
classical components in ts is miserable
i made the Comment component an export and then imported it and it compiled now
yeah you need to export default Comment
that text rendering
troll
bro thats so goofy
you say that 24/7
its true tho
meanwhile it's basically the same
Your code looks horrible 
your code is worse
although i like the control of class components
class based components š¤®
true
functional components are so much comfier to write in
ok i will look into it
looks like a good start to me
this typescript react cheatsheet only shows inline functional components
troll
well i know i can just expand it but still
WHY DOES IT KEEP DOIUNG THIS
coc.nvim is actually brainless
you are using coc
yeah this is the coc-tsserver plugin
thats supposed to be the same one for JS and TS both
yeah idk mate thats interesting
you can drop the "props"
yeah you dont need to call props... you are destructuring it
oh
so you would just use "content"
it cannot find the name content either
well {content}
use {comment}:CommentProps
huh what is?
if i had multiple props then putting :CommentProps on all of them would be worse than just putting it once in the function arguments wouldnt it
yeah use interfaces instead
like i had before? although i put type instead of interface
maybe interface makes more sense
the cheatsheet said both work
yeah exactly and then you only need to put the type outside the destructured props like {props}:interface
i mean this is basically the same thing right, just i didnt give a name to an interface or type
yeah they do its basically the same








