|
I really wish I can learn to use something like a dictionary. there are functions in that code that exist to act like a dictionary, they take a string and then I loop through every item in the array searching for a match for the string, and return some bullshit. it feels like a tragic solution to what feels like it should have a much simpler solution
|
# ¿ Sep 21, 2023 13:48 |
|
|
# ¿ May 11, 2024 07:12 |
|
my homie dhall posted:what you really need is a finite state machine and algebraic data types mate wtf ok imma boot up wikipedia and read some mf words
|
# ¿ Sep 21, 2023 14:09 |
|
prisoner of waffles posted:echi try this poo poo out, you might like it: thankyou very much this looks good and is something achievable
|
# ¿ Sep 21, 2023 20:30 |
|
noted
|
# ¿ Sep 21, 2023 21:14 |
|
Wheany posted:i'm just going to use this as an example, but you don't need to use "new" here, instead you can just use an object literal: i’ll have a look at these later and get my head around them. something satisfying I get when coding is discovering a new and significantly better approach to making something work. here’s a question : in unreal engine blueprints there’s this thing called select let’s say I needed to plug a float into a function, select means I plug the select into the float input and then put multiple float options into the select, and then something like a boolean or integer index or even an enumeration, and then at run time the float is chosen from the options depending on the indexing input I use it all the time because it feels clean. and I’ve just thought about it and think I know how you could do it in js but would feel ugly and spose pointers would also be helpful achieving this .. just thinking out loud coz of the nodes, the select node doesn’t really messy up the code, in fact it makes it clearer than the top example using branch I spose in-line it might make for some gnarly to pull apart code and more challenging to work out what’s going on later sitch
|
# ¿ Sep 21, 2023 21:30 |
|
I am realising now looking at those examples that there is a performance price to pay, at least in those blueprints. but I can imagine how pointers wouldn’t introduce that issue anyway lol what am I talking about I’ve never used a pointer in my life
|
# ¿ Sep 21, 2023 21:32 |
|
Subjunctive posted:you mean you want to map it? can use an array or object for that depending on what keys you want. for zero-based integers: amazing
|
# ¿ Sep 21, 2023 23:20 |
|
doesn’t pl just mean programming language not plang?
|
# ¿ Sep 22, 2023 03:48 |
|
|
# ¿ Sep 22, 2023 04:29 |
|
all good lol spose I misunderstood this thread
|
# ¿ Sep 22, 2023 04:31 |
|
neosloth posted:whats an array just a long string
|
# ¿ Sep 22, 2023 10:51 |
|
Kazinsal posted:I would simply fake my death and move to belize
|
# ¿ Sep 22, 2023 10:51 |
|
nm
echinopsis fucked around with this message at 14:11 on Sep 22, 2023 |
# ¿ Sep 22, 2023 10:52 |
|
RokosCockatrice posted:I don't know anything about javascript or your code, I just liked that there's a 'commitcrime' function. Good function name. I will never regret living life to the full
|
# ¿ Sep 22, 2023 10:53 |
|
rotor posted:just use numbers higher than 255?? doesnt seem hard imo there's even 26 letters to use
|
# ¿ Jan 31, 2024 04:37 |
|
eschaton posted:such a toolkit ships with your platform of choice and the waiver should be to use something other than it are you ok don’t get me wrong I love the passion and the posts but you’re giving that fart in class poppin veins guy vibes. which just wanna be clear I love. read every word. never stop
|
# ¿ Jan 31, 2024 12:47 |
|
why not have the real file name and file display name be different things no problems
|
# ¿ Feb 1, 2024 11:12 |
|
MSDOS had it right with 8.3 in all caps
|
# ¿ Feb 1, 2024 11:13 |
|
VikingofRock posted:Filesystems/OSs should just give every file a UUID and then use that. Then, allow users to set the display names to whatever they want. Users wanna have 50 different files on their desktop, all called "temp.txt" or whatever? I say, let them! hell, every file is 24 digit alphabuermic random number w
|
# ¿ Feb 1, 2024 23:37 |
|
Д is just A
|
# ¿ Feb 2, 2024 04:46 |
|
this gives me a headache
|
# ¿ Feb 2, 2024 06:10 |
|
so both my kids learn coding in school and this pharmacist at work wants to move into the field (seems like a bad move job security wise) anyway I was just thinking because of this, kids should start with shenzen io
|
# ¿ Feb 8, 2024 00:06 |
|
yeah so that’s why curiously wondering if it’s helpful or not to teach them how computers work first
|
# ¿ Feb 8, 2024 06:15 |
|
isn’t that a tool you replicate cpu’s in?
|
# ¿ Feb 8, 2024 07:42 |
|
rust is still a baby dude at work is learning himself some python and he asked me my opinion on what he should learn next. idk why me? spose coz I sometimes talk about coding stuff with him and I have a few more clues but ya know i’m still a loving casual. anyway I told him
|
# ¿ Feb 16, 2024 03:45 |
|
redleader posted:yeah, a good question to ask him (and then the thread) is "what do you want to do with that knowledge?" the answer would be “get out of pharmacy where I have to deal with humans” Internet Janitor posted:js is definitely a handy language to know from a "getting stuff done" perspective, and it can be used in conjunction with server-side python to make webapps this is interesting to me at the very least. I am on an amateur level familiar with python, c, js.. but never even looked at those other ones. I find coding interesting from a pure interest level, not just “get poo poo done” level, so that’s a good start I’ve been suggested to learn react which I know is ultimately js/html but it’s to get some poo poo done. i’ll get my head round it. a concept with me making crimecommitter was pure js but when i’ve been reading about react seems like I can focus a bit more on the mechanics and less on it fundamentally displaying anything. but i’m just rambling now
|
# ¿ Feb 16, 2024 05:11 |
|
keep going keep going I am almost there
|
# ¿ Feb 16, 2024 07:47 |
|
lol
|
# ¿ Feb 18, 2024 18:55 |
|
I can get my load time down to about three minutes if I wait a week
|
# ¿ Feb 19, 2024 21:55 |
|
docking huh
|
# ¿ Feb 21, 2024 00:34 |
|
|
# ¿ May 11, 2024 07:12 |
|
FlapYoJacks posted:Slackware on floppy disks was my first distro. I was team slackware for a while then team bsd
|
# ¿ Feb 22, 2024 07:10 |