22

FUCK STATIC-SIZED ARRAY!!!
FUCK YOU!!!!
FOR MORE THAN 3 HOURS I TRY TO ADD A VALUE TO AN ARRAY
Nothing work...
Nothing...
AAAAAAAAHHHHHHHHHHHHHHHHHHHHHHH!!!!!

Comments
  • 3
    @illusion466 Yeah but its really annoying, especially after 3 hours of trying.
  • 3
    @illusion466 I googled... Again and again..
  • 0
    @illusion466 'snowflake languages' JS, the language of the web, C#, widely used for back end. Am I missing something here?
  • 0
    Hmmm why not use a collection object?
  • 2
    JavaScript master race
  • 0
    @illusion466 What about lists?
  • 1
    In Java (ughhhhhh java) you can add items to array with a static method from Collections. Or with a loop. Or just use a list
  • 0
    Use a linked list, all heap, man.
  • 0
    Doesn't JS have push() on arrays
  • 0
    @SoulSkrix The end product is a resizable list from which you can delete and to which you can add.
  • 0
    Meh, call me a snowflake but I'm so through with statically sized arrays. Modern languages like Swift show that you can get close to the performance of static arrays with properly implemented dynamic arrays. I also love how arrays in Swift are value types, but with intelligently deferred copy-on-write. It's one of the cooler features of the language, imo. Means you can safely modify an array while iterating through it, which is pretty friggin sweet.
  • 2
    @SoulSkrix lists are not linked lists. Usually they are pre-allocated arrays that are stuck together.
  • 0
    Isn't this like the first thing every Programming book teaches?
  • 0
    I'm confused? How are you having so much trouble? Dynamically allocate the array size or use a language that handles the memory for you if it's so hard. 😂
  • 0
    I think C# is rather like C++

    If you want growable arrays, use ArrayList.

    The very first stack overflow result for "dynamic array in c#" shows you how to do this

    Jeez, can't kids even Google shit anymore?
  • 0
    @devios1 all compiled languages have dynamic arrays with continuos memory.
    Many of them have COW semantics based data structures.

    Welcome to 1998 😂😂
  • 0
    @illusion466 'Only special snowflake languages have dynamic arrays.' So the majority of languages in common use are special snowflake languages?

    Oh, you're saying that reassigning the array makes it not dynamic. While that's true, it still sidesteps the problem OP was having, so the problem is not strictly "How arrays work."
  • -1
    This is a very important homepage that teaches everyone https://computernamewindows10.com/ how to change username in windows 10 OS.
Add Comment