Current Events > Coding is so weird

Topic List
Page List: 1
MedeaLysistrata
10/25/20 8:29:39 AM
#1:


All that stuff is solidly at least one deviation outside of my brain capacity

---
"Why is ontology so expensive?" - JH
[Is this live?][Joyless planet...]
... Copied to Clipboard!
Masamune_DS
10/25/20 8:30:37 AM
#2:


What language are you trying to code in? Once you get over the hurdle of learning one of them, it's not too hard to comprehend others.

---
If a wizard turns me into Dawn then I would sooo touch myself every single night. ~ SoulGainDestiny
... Copied to Clipboard!
AlisLandale
10/25/20 8:33:16 AM
#3:


Its a lot easier when you realize all computer science is a lie.

Programming languages are just eldritch script used to communicate with the Great Old Ones. (This is why we have glitches. The code
isnt faulty, they old gods are just apathetic to your mortal pleas)

surrender your preconceived notions formed by leftist propagandists like Bill Nye and Beakman, and embrace the void

---
... Copied to Clipboard!
MedeaLysistrata
10/25/20 8:35:21 AM
#4:


Masamune_DS posted...
What language are you trying to code in? Once you get over the hurdle of learning one of them, it's not too hard to comprehend others.
I'm actually stuck on figuring out how classes work. The first thing I'm trying to do is build an RPG crafting system, which shouldnt be that hard. I've been playing around with javascript and python.

Learning the languages isnt as hard as mastering what concepts to use, I guess

AlisLandale posted...
Its a lot easier when you realize all computer science is a lie.

Programming languages are just eldritch script used to communicate with the Great Old Ones. (This is why we have glitches. The code
isnt faulty, they old gods are just apathetic to your mortal pleas)

surrender your preconceived notions formed by leftist propagandists like Bill Nye and Beakman, and embrace the void
I am already in direct communication with Brahmin and a threat to western society

---
"Why is ontology so expensive?" - JH
[Is this live?][Joyless planet...]
... Copied to Clipboard!
PrettyBoyFloyd
10/25/20 8:38:37 AM
#5:


I remember being all excited when I made my first drop-down click thingy.

---
The Evil Republicans - Est.2004 - WoT
[Government Destabilizing Branch]
... Copied to Clipboard!
treewojima
10/25/20 9:34:53 AM
#6:


Keep in mind that Javascript "classes" are quite different in implementation and theory than most languages that support a class-based object model. I don't care for the prototype model much personally, even though it is surprisingly powerful.
... Copied to Clipboard!
#7
Post #7 was unavailable or deleted.
Doom_Art
10/25/20 9:42:09 AM
#8:


I remember being so happy when I made my first game.

---
Not removing this until Mega Man 64 is released on the Wii Virtual Console. Started on: 12/1/2009
https://imgur.com/mPvcy
... Copied to Clipboard!
Wii_Shaker
10/25/20 9:47:59 AM
#9:


Doom_Art posted...
I remember being so happy when I made my first game.
Do you have a link to any games you have made? I'm an indie dev myself and I'm always interested in playing other people's games.

---
"He busted in, blessed be the Lord
Who believe any mess they read up on a message board" -MF DOOM
... Copied to Clipboard!
COVxy
10/25/20 9:51:02 AM
#10:


You could be like me and simply code as if objects don't exist!

(Probably bad advice lol)

---
=E[(x-E[x])(y-E[y])]
... Copied to Clipboard!
MedeaLysistrata
10/25/20 10:01:04 AM
#11:


mattymad posted...
I can help. I'm a professional.

I love C# though. What are you struggling with?
Really basic things like making an inventory and whatnot. If I use javascript I can put stuff in RPG Maker which makes it a bit easier, I guess.

I just have a lot of basic questions like whether I can get away with using a single array to represent the inventory, since that seems straight forward, or what. Also no idea how to make things stackable or have counts.

treewojima posted...
Keep in mind that Javascript "classes" are quite different in implementation and theory than most languages that support a class-based object model. I don't care for the prototype model much personally, even though it is surprisingly powerful.
I'm not taking classes, I just have some textbooks and etc and am messing around.

COVxy posted...
You could be like me and simply code as if objects don't exist!

(Probably bad advice lol)
I know right... If everything can be a list or function with flow control it would be easier

---
"Why is ontology so expensive?" - JH
[Is this live?][Joyless planet...]
... Copied to Clipboard!
Chunkey Simmons
10/25/20 10:01:44 AM
#12:


are you going to school for something coding related? or just learning on your free time?

if you're thinking about applying for jobs related to coding, just remember that employers really want that college degree. if you just have personal experience, they probably won't even give you a chance. not trying to deter you, just trying to lead you in the right direction.
---
The n00b of MBH and CE - and proud of it!
President Chunkey Simmons, running for 2016.
... Copied to Clipboard!
treewojima
10/25/20 10:04:10 AM
#13:


MedeaLysistrata posted...
I'm not taking classes, I just have some textbooks and etc and am messing around.

I meant classes and objects in the language, not actual classes where you learn stuff >_> Javascript does it differently than, say, C++, Java and Python

Also, you don't HAVE to use object oriented techniques unless the language enforces it. I write imperative and even functional stuff all the time in C++
... Copied to Clipboard!
MedeaLysistrata
10/25/20 10:12:49 AM
#14:


Chunkey Simmons posted...
are you going to school for something coding related? or just learning on your free time?

if you're thinking about applying for jobs related to coding, just remember that employers really want that college degree. if you just have personal experience, they probably won't even give you a chance. not trying to deter you, just trying to lead you in the right direction.
I'm just learning it for fun

treewojima posted...
I meant classes and objects in the language, not actual classes where you learn stuff >_> Javascript does it differently than, say, C++, Java and Python

Also, you don't HAVE to use object oriented techniques unless the language enforces it. I write imperative and even functional stuff all the time in C++
Oh wow lol

The prototype thing seems interesting but I dont fully get it. I lile having a generic object type though.

---
"Why is ontology so expensive?" - JH
[Is this live?][Joyless planet...]
... Copied to Clipboard!
Doom_Art
10/25/20 10:29:05 AM
#15:


Wii_Shaker posted...
Do you have a link to any games you have made? I'm an indie dev myself and I'm always interested in playing other people's games.

@Wii_Shaker

I only started tinkering around last year and I'm still in my whole "happy but too self conscious to share" phase lol.

Though if you wanna share what you've made I'd love to take a look :o


---
Not removing this until Mega Man 64 is released on the Wii Virtual Console. Started on: 12/1/2009
https://imgur.com/mPvcy
... Copied to Clipboard!
Wii_Shaker
10/25/20 11:59:37 AM
#16:


Doom_Art posted...
@Wii_Shaker

I only started tinkering around last year and I'm still in my whole "happy but too self conscious to share" phase lol.

Though if you wanna share what you've made I'd love to take a look :o

I'm welcoming everyone to check out my indie game, still in the early phases of development. Please roast me! I could use any criticism I can get. Link below:

https://drive.google.com/file/d/1A26A-fHEsxpHQrWqqmm6MeoXjPegg0Sk/view?usp=sharing

---
"He busted in, blessed be the Lord
Who believe any mess they read up on a message board" -MF DOOM
... Copied to Clipboard!
BobanMarjanovic
10/25/20 12:03:36 PM
#17:


Is it possible to find a job with coding being self taught or you probably need a degree for it right? Unless you learn coding, make a gotcha game, then make cash without schooling

---
Chief Keef is the best rapper of all time.
... Copied to Clipboard!
Jabodie
10/25/20 12:06:15 PM
#18:


Wii_Shaker posted...
I'm welcoming everyone to check out my indie game, still in the early phases of development. Please roast me! I could use any criticism I can get. Link below:

https://drive.google.com/file/d/1A26A-fHEsxpHQrWqqmm6MeoXjPegg0Sk/view?usp=sharing
A little text file for controls would be nice. Those cactuses fucked me up lol.

---
<insert sig here>
... Copied to Clipboard!
Jabodie
10/25/20 12:08:03 PM
#19:


BobanMarjanovic posted...
Is it possible to find a job with coding being self taught or you probably need a degree for it right? Unless you learn coding, make a gotcha game, then make cash without schooling
I think you'll at least need certifications, but not a full degree.

---
<insert sig here>
... Copied to Clipboard!
theiwantsong
10/25/20 12:30:21 PM
#20:


Damn this dude knows the deviation of brain capacities but coding is one deviation outside of his. Paradox.
... Copied to Clipboard!
COVxy
10/25/20 12:35:17 PM
#21:


MedeaLysistrata posted...
I know right... If everything can be a list or function with flow control it would be easier

I mean, for everything I do, I don't see a real advantage to doing things "the right way". At least not to justify the added complexity. But I almost exclusively use python for data cleaning and analysis.

I'm sure when I need to do more hardware control stuff, some of these things will become necessary to be proficient in.

---
=E[(x-E[x])(y-E[y])]
... Copied to Clipboard!
treewojima
10/25/20 1:03:49 PM
#22:


What's that? You want everything to be a list?

https://en.wikipedia.org/wiki/Common_Lisp
... Copied to Clipboard!
MedeaLysistrata
10/25/20 1:08:52 PM
#23:


treewojima posted...
What's that? You want everything to be a list?

https://en.wikipedia.org/wiki/Common_Lisp
reminds me that I have some reading to do. >_>;

---
"Why is ontology so expensive?" - JH
[Is this live?][Joyless planet...]
... Copied to Clipboard!
treewojima
10/25/20 1:15:56 PM
#24:


MedeaLysistrata posted...
treewojima posted...
What's that? You want everything to be a list?

https://en.wikipedia.org/wiki/Common_Lisp
reminds me that I have some reading to do. >_>;

It's a fun family of languages. Good for learning theory and concepts, with a lot of literature out there.

For practicality purposes, Python is quite capable on the list and function front as well. List comprehension syntax make me horny

cubes = [x ** 3 for x in range(15)]

hnnnnnnngh
... Copied to Clipboard!
TheAnthraxBunny
10/26/20 4:21:30 PM
#25:


MedeaLysistrata posted...
I just have a lot of basic questions like whether I can get away with using a single array to represent the inventory, since that seems straight forward, or what. Also no idea how to make things stackable or have counts.
Yes, you can just use an array for the inventory. Lots of people do this.

As for removing duplicats, I can think of a couple ways of going about this:

You could add a "stack" attribute to items. You could then create a function which checks to see if a picked up item is already in the inventory and, if there is, it just raises the "stack" attribute of the inventory item by 1.

You could also just leave the duplicates in the array and instead create a function that creates a new formatted array (counts items, removes dupes, etc.) and passes the new array to whatever is displaying this information to the user.

I think the last time I created an inventory UI I used the second option and it worked pretty well for me.

---
Yes, it is against the terms of service. Do not use the boards to set up orgies.
-Alucard188
... Copied to Clipboard!
MedeaLysistrata
10/26/20 10:00:25 PM
#26:


TheAnthraxBunny posted...
Yes, you can just use an array for the inventory. Lots of people do this.

As for removing duplicats, I can think of a couple ways of going about this:

You could add a "stack" attribute to items. You could then create a function which checks to see if a picked up item is already in the inventory and, if there is, it just raises the "stack" attribute of the inventory item by 1.

You could also just leave the duplicates in the array and instead create a function that creates a new formatted array (counts items, removes dupes, etc.) and passes the new array to whatever is displaying this information to the user.

I think the last time I created an inventory UI I used the second option and it worked pretty well for me.
The first option makes sense, I kinda get the idea behind the second option too. Thanks.

---
"Why is ontology so expensive?" - JH
[Is this live?][Joyless planet...]
... Copied to Clipboard!
Topic List
Page List: 1