#code-talk

2 messages · Page 8 of 1

coral sundial
#

Expected expression before '{' token

neat fossil
#

Can you post the whole code here? It is difficult to help you when I cannot see the whole line

coral sundial
#

Yeah holdup

#

I am working around it with a for loop and a switch lol

#
{
    for(int i = 0; i < 5; i++)
    {
        switch(i)
        case 1:
        ArrayStudent1[i] = cijfer1;
        break;
        case 2: 
    }




}


int main()
{
    int cijfer1 = 100;
    int cijfer2 = 200;
    int cijfer3 = 300;
    int cijfer4 = 1;
    int cijfer5 = 22;

    int ArrayStudent1[5];
    plaatsCijfer( ArrayStudent1[5], cijfer1, cijfer2, cijfer3, cijfer4, cijfer5);








    return 0;
}
neat fossil
#

Why the switch case stuff?

coral sundial
#

because the previous code wouldnt let me place a number series directly into the array

neat fossil
#

Give me a few minutes to finish something and I’ll try to understand your problem

coral sundial
#

lel its still not working

neat fossil
#

first thing I noticed is

#
Here you have an error. 
It should be:
 plaatsCijfer( ArrayStudent1, cijfer1, cijfer2, cijfer3, cijfer4, cijfer5);
#

You shouldn't specify the number of elements in the array since you already did.

coral sundial
#

okay

#

but then it gives me the following error

#

|8|error: subscripted value is neither array nor pointer nor vector||

neat fossil
#

let's take step back and can you please explain exactly what are you trying to achieve?

#

are you simply trying to put elements into an array?

coral sundial
#

I need to make a function that places 5 numbers into an array

#

for that I need to carry the array over from the main and the 5 numbers

neat fossil
#

oh okay i see

coral sundial
#

but I dont get it. the array never works when I try to place something in it in a function

neat fossil
#

honestly i'm not sure how to do it since you already set the 5 number independently of each other.

#

let me construct smth

#

well I have a solution but it is not a good solution at all

#

it uses switch case like you did and 1 function to push the values

coral sundial
#

:/

#

I am having the same issue

#
{
    for(int i = lengte; i < 0; i--)
    {
        printf("%d", array[i]);
    }
}
int main()
{
    int lengte = 6;
    int array[lengte] = {7, 3, 6, 6, 2, 1};
    keerom(array, lengte);


    return 0;
}    ```
#

|7|error: subscripted value is neither array nor pointer nor vector|

#

where printf is located

#

I dont understand arrays

#
void keerom(int array[], int lengte)
{
    for(int i = lengte; i > 0; i--)
    {
        printf("%d\n", array[i]);
    }
}
int main()
{
    int lengte = 7;
    int array[6] = {7, 3, 6, 6, 2, 1};
    keerom(array, lengte);


    return 0;
}```
#

okay this works

#

except that it either prints a number to few or too many

#

and for some reason I can no longer define the lenght of my array with a constant

neat fossil
#

i thought you couldnt do this that way lol

#

i thought you wanted to create an empty array and then push values into it through a function

coral sundial
#

I moved to the next exercise lol

neat fossil
#

you don't have to set the number of elements when initiating an array when you specify the elements in it

#

so array[] = { 7, 3, 6, 6, 2, 1}

coral sundial
#

oh aight

neat fossil
#

on the 5 number exercise stuff, are the 5 numbers known or the user can input them?

#

like if you can use scanf()

coral sundial
#

doesnt matter

#

you can make the user fill in the number

#

you can randomize it

neat fossil
#

void pushValue(int arrayNumber[], int index, int value)
{
    arrayNumber[index] = value; 
}

int main()
{
    int ArrayNumbers[5];
    int i, input;

    for(i = 0; i < 5; i++) {
        scanf("%d", &input);
        pushValue(ArrayNumbers, i, input);
    }

    printf("%d", ArrayNumbers[0]);
}```
#

well if you allow user input then it is a lot easier

coral sundial
#

owo

coral sundial
#
{
    int lengte = 99;
    char getal[99];
    for(int i = 0; i < lengte; i++)
    {
        scanf("%c\n", &getal[i]);
        if(getal[i] == '.')
        {
            lengte = i;
            printf("%d", i);
            break;
        }
    }
    for(int i = 0; i <= lengte; i++)
    {
        printf("%c", getal[i]);
    }
    return 0;
}```
#

why does the break only work if I enter a double dot

neat fossil
#

because you have a new line in your scanf

#

scanf can only have the type

#

scanf("%c", &getal[i])

coral sundial
#

ohk

#

also what was that about not having to define the lenght of an array? because I have to define it when I compile

neat fossil
#
    int arr[5]; (here the length must be defined)

WRONG: int arr[];
#

So ,basically, if you specify the elements you don't need to define the length.

#

not sure why the compiler would return an error tho

coral sundial
#

Aaah

#

But how can I define the length of an array then? Can I I just scanf a word and put it into am array and the define the length?

neat fossil
#

not sure 100% if i understand

#

but yeah you can scanf to a variable and use that variable as the length

#

at least I think it should work

coral sundial
#

For example if I write a word. I want to define how long it is

neat fossil
#

what do you mean by word?

coral sundial
#

A word

#

Like monkey

neat fossil
#

no

#

length can only be integers

coral sundial
#

No I mean

#

I want to know how long the word "monkey" is

neat fossil
#

oh you are going into strings now

coral sundial
#

Fml

#

I never shouldve missed the programming college

neat fossil
#

lol man dont stress or it is going to be worse

#

i would recommend to first understand pointers before diving into strings

#

but well if you are short in time.

#

you need to use a library called

#

<string.h>

#
#include <string.h>
int main()
{
    char word[80] = "monkey";

    printf("%d", strlen(word));
}```
#

here is a basic code that returns the length of the string

#

use this website to understand the other functions in the library

coral sundial
#

Oh

#

It's that simple

#

I wanted to do some weird shenanigans with arrays

coral sundial
#

I just realized I am doing the wrong exercise lol

#

but thanks anyway

languid harness
#

@coral sundial you idiot XD

coral sundial
#

XD

#

strings are week 6

#

this exercise got scrapped like 2 days ago

#

I didnt notice

neat fossil
#

lol

coral sundial
#

mmmh

#

having trouble getting the sum of a float array

#
        {
            SumCards = SumCards + DealtCards[i];```
#

it works if sumcards is an integer

#

but not when its a float

barren quarry
#

@coral sundial have you declared sumcards as an integer?

coral sundial
#

right now yes

#

thats when it works

#

if I declare it as a float', it wont work

#

okay so now it works lol

#

no wait nevermind

#
{
    static float DealtCards[5];
    float SumCards = 0;

    DealtCards[i] = kaart;
    printf("speler kaart is %f\n", kaart);

    if(i == 4)
    {
        for(int b = 0; b < 5; b++)
        {
            printf("kaarten voor speler1 zijn %f\n", DealtCards[b] );
        }

        for(int i = 0; i < 5; i++)
        {
            SumCards += DealtCards[i];
            printf("%d\n",SumCards);
        }


    }```
#

why does sumcard return me 0 when its a float

neat fossil
#

Maybe because sumcards is a float yet at the end you print it as int?

coral sundial
#

yeah that might be it

#

weeeeird

#

I thought I fixed that but copied an older code

#

it works now lol

#

I wanted to work around it but lol

coral sundial
#

I wanted to copy my code but its probably too long for discord

barren quarry
#

@coral sundial pastebin

coral sundial
#

its aliveeeee

lone solstice
#

someone please do my c++ homework for me

#

I know how to do it I just don't want to

honest glade
#

@sharp elm Do u guys use AI ,as Gradient descent to apply on any of your games ,because if not why not use a compression algorithm to optimize,as to improve foxhole player capacity and to prevent the bottle necks for server side and client side

languid harness
#

@lone solstice sounds like someone who doesnt know how to do it; do it anyway, but if you understand it, make it more complicated and harder for yourself as a challenge

lone solstice
#

quiet bot i know how to do it it's just time consuming

#

and hell no im not doing that

#

it's 2:06 am and it's due tomorrow

languid harness
#

looks like someone has made a planning mistake kappaflyinchicken

lone solstice
#

you got me there

#

i said "homework"

#

i should have said

#

"final project"

languid harness
#

oof

#

Well good luck with your grade

torn pasture
#

You can't make a homework assignment more complicated @languid harness

#

The rubric is specific

languid harness
#

Then you go to a dumb school with stupid rules

#

@torn pasture I could change what I wanted to code if I asked premission

torn pasture
#

How can you change the implementation if the learning outcome is specific?

I understand some modifications to demonstrate your understanding but changing the outcome seems unlikely. In addition computer science isnt about mastery of a software tool but understanding the algorithms.

coral sundial
#

@languid harness planning whats that

torn pasture
#

Just reading your initial statement the main premise is flawed. The engineering principle is simplification not complication.

coral sundial
#

Also I did my homework in this channel the last 2 days

torn pasture
#

Hence @languid harness I'm sure your "school" has the big retard if you think like that.

languid harness
#

lol

#

someone is salty they didnt finish their project

summer bobcat
languid harness
#

Anyhow, I am going to define the gods and go straight into the API of discord because discord.py is A. a succer, B. ugly and C. unusable if you want use it properly on a Raspberry

coral sundial
#

@summer bobcat hahaha

long raft
#

arrays start at 1 ree

barren quarry
#

see if you can figure out whats wrong here

#

so that would be...

#

14 town halls in abandoned ward

chilly burrow
#

districts warfare

royal glade
#

Haha.

grave glacier
#

i knew it. AW is already half of what it takes to win the war

pure sierra
#

holy moly, peeps come out of the wood work for an update.... 1k players

#

can anyone tell me what the go is with 3 different relic base types in api ? @zealous sonnet maybe ? are they just tiers like th ?

zealous sonnet
#

they're different types, but they're all considered the same tier

#

one's huge, the other 2 are medium sized

#

we use the same icon in game for them, but if you want to differentiate between the 3, you have the option to do so

pure sierra
#

ok

hybrid stratus
#

Can someone explain me how does API works?

#

for example the foxhole API

pure sierra
#

so you make http get requests

#

to the url

hybrid stratus
#

yeah i know that

pure sierra
#

eg load the url in your browser or by some other method

hybrid stratus
#

I mean

#

GET /worldconquest/war

#

is the same, right?

hybrid stratus
#

shit

pure sierra
#

they just not repeating the common base domain

hybrid stratus
#

i just realized that I wrote a doble slash

#

im stupid xdf

#

its all fine now, thanks

pure sierra
#

yeah thanks !

neat fossil
#

Good time of day. Working on UE4 and Maya 3d 1-2 years. Searching for job. Can make animations and models, also BP programming.

barren quarry
#

You can apply for a job in clapfoot if you live in toronto

neat fossil
#

@barren quarry Living in Ukraine, ready for relocation

barren quarry
#

Да ладно

summer bobcat
#

Dedication right there :)

pure sierra
#

you need to be canada resident i think to work for clapfoot

pure sierra
#

anyone here ?

barren quarry
#

aye

#

whats up

#

@pure sierra

pure sierra
#

do you know what the maximum production rate of shirts or for a factory ?

barren quarry
#

no

pure sierra
#

worked it out in training, ~450/hr/factory

#

10ss =1m20

shut delta
pure sierra
#

Yep, it's on github, check my website footer

#

@shut delta

shut delta
#

Cool, i'll have a look 😉

neat fossil
#

Tango Hotel India Sierra (space) India Sierra (space) Charlie Oscar Delta Echo

languid harness
#

wrong type of code

midnight crypt
#

Sierra Hotel India Tango (space) Whisky Alpha Romeo Delta Echo November (Space) India Foxtrot Alpha November Tango Romeo Yankee.

pure sierra
#

open sesame ?

languid harness
#

open says I

prisma forge
#

"Shit Warden ifantry"? 🤔

long raft
#

its coded. obviously.

neat fossil
#

Such skillful code

midnight crypt
#

@prisma forge yes

vagrant saffron
#

Does anybody know how the next technology gets decided?

barren quarry
#

@vagrant saffron i sent you a private message

vagrant saffron
#

Thanks

thorn depot
#

O you want code talk??

#

@near aurora pass it around 😂

near aurora
#

I have no idea what on earth this is supposed to mean, but I know it isn't code talk.

barren quarry
#

how dare you heathens come into this sanctuary and desecrate it

languid harness
#

????????/

near aurora
#

I did not do this.

static palm
#

I’m gonna be creating a discord bot soon and I want to use the warapi what do I need to do to make that happen?

barren quarry
#

@static palm depends on what you want to do

#

Most of the stuff you can do with warapi has already been done

static palm
#

I’m still learning about api’s. My understanding is, I can call for certain information about, in this case foxhole then it’ll return that information to me from the source. Right?

barren quarry
#

Yes

static palm
#

How do I implement the api into the bot? Or is that not how it works?

barren quarry
#

To implement the api into the bot you choose which endpoints to request

#

Then you write xmlhttp requests to pull data from those endpoints

#

And process it

#

I can give you some code examples if you want

#

Then again, depends on what you really need

static palm
#

Anything helps. I’m a little confused but I think I’m on the right track.

#

Maybe this isn’t what I need.

barren quarry
#

Give me a few minutes, i'll give you some code

static palm
#

Okay no rush

#

Thank you

barren quarry
#

@static palm so first question, what kind of data do you want to pull from api

#

You can request map objects

#

Casualties

#

Map list

#

War meta info

#

Everything is listed on the github page

barren quarry
#

here is an example

#

its not self sufficient code (it requires a bit of other stuff to work cause its just 1 module) but you should be able to get something useful out of it

static palm
#

Well i messaged hayden foxholestats.com so he could use my webhook to setup his dynamic region update messages. I also just setup a dynamic map for one of my channels. Those were honestly what i wanted so i guess i really don't need anything else. But i do wanna learn more about the api.

barren quarry
#

here is what my code does:

  1. it gets the list of currently active maps and updates it every minute
  2. While it does that, it also pulls the dynamic and static data
  3. Dynamic and static data is represented by 46 endpoints, 1 dynamic and 1 static for each of the 23 regions.
  4. These endpoints have a thing called an etag. Etag is a small number that doesn't mean anything by itself, but if it changes, it means something changed in the endpoint data.
  5. Thus, when we load the endpoints, we can first compare the etags, and if they match, we dont load the new data. This saves us a lot of resources and also allows us to check the data every 3 seconds.
  6. The rest is just putting the data in a mongo database
#

@static palm

#

I can guarantee that this piece of code is the most efficient way to handle the warapi data today

static palm
#

Thank you man

split summit
#

why stalin

worthy canopy
#

Hotel Alfa Victor Echo Alfa November India Charlie Echo Delta Alfa Yankee

barren quarry
ruby garnet
#

1

coral sundial
#

10111101 |= (1<<5)

summer bobcat
worthy canopy
fluid stream
#

Sierra Indiana Echo Golf Hotel Echo Indiana Lima

spring basalt
#

@fluid stream it's Sierra, Echo, India, Golf, Hotel

fluid stream
#

Okei

summer bobcat
#

let's steer away from that shall we? @fluid stream

frozen spire
#

whats the matter man

kind glacier
#

let's

vital sierra
#

Whiskey Alpha Romeo Delta Echo November Sierra (space) Alpha Romeo Echo (space) Tango Hotel Echo (space) Bravo Echo Sierra Tango

coral sundial
#

Doubt

midnight crypt
#

Negative Anvil callout is Fubar over

summer bobcat
#

Hey which sorting method is best

languid harness
#

you cannot ask a question without giving more context; sorting methods greatly vary in efficiency regarding sample sizes

coral sundial
#

the one where you get an overview of the different kind of things you sorted.

languid harness
#

gdang it remlly

coral sundial
#

He asks I answer.

#

¯_(ツ)_/¯

languid harness
#

@summer bobcat it is always a topic of discussion, but there are many videos on it

#

https://en.wikipedia.org/wiki/Sorting_algorithm#Comparison_of_algorithms has a good overview and comparison between different common sorting methods

In computer science, a sorting algorithm is an algorithm that puts elements of a list in a certain order. The most frequently used orders are numerical order and lexicographical order. Efficient sorting is important for optimizing the efficiency of other algorithms (such as s...

echo wolf
#

is there an api endpoint to view ingame tech?

long raft
#

quicksort is best, bladerikwr

barren quarry
#

@echo wolf no

echo wolf
#

@barren quarry do you know if tech is a standard rate now?

barren quarry
#

have you seen my bot?

#

it more or less predicts the techs correctly

echo wolf
#

ive seen the foxhole tech bot

#

but im more interested in how it functions

#

have any insight you can share?

barren quarry
#

its dark magic

#

but basically it takes the start war timestamp from the api

#

and calculates the tech times from there

echo wolf
#

based on 1440 tech per day and costs of each tech?

barren quarry
#

1440?

#

hmmm

#

@echo wolf no its 2 per minute

#

so 2880

honest mantle
#

@barren quarry do you know the cost of the tech?

summer bobcat
#

cost of tech?

honest mantle
#

cost of unlocking each tech in the tech tree

fervent spear
#

Bogosort can sort in constant time any sample

split summit
#

Stalinsort is linear, so that's pretty good too

exotic steppe
#

things cost anywhere from 50 to 5,000 tech parts to unlock, with the costs increasing as you progress

honest mantle
#

huh thanks! dunno how i didn't find this earlier!

tame solar
#

Bring back the told tech tree 😔

neat fossil
#

Technically this is relevant

echo wolf
barren quarry
#

@echo wolf looks cool but i dont recommend displaying the time in hours only

chilly burrow
#

i like the simplicity, tho the reading order is confusing @echo wolf

humble python
#

Alisa and Dmitry, uncle is have bought spagetti, pls go eat

summer bobcat
#

thanks for the spaget

echo wolf
#

@barren quarry @chilly burrow Thanks guys ill work you're feedback in

neat fossil
#

can you use UE viewer on this game to retexture skins?

dawn panther
#

@neat fossil
Ye. Care to elaborate?

neat fossil
#

you cannot view the unreal engine assets from game folder so UE viewer lets you see them basically @dawn panther

dawn panther
#

I know this.
I just want to know why you ask if it works with Foxhole.

sharp breach
#

@dawn panther retexturing would be against the rules regardless if it's possible

#

@neat fossil I mean

cunning forge
#

Yo nerds.

#

How do I make values in C++ approximate? More specifically a limit of 2 decimal numbers.

fervent spear
#

When displaying? Or internally too?

hybrid mason
#

@echo wolf part of me is always glad to see Foxhole getting more 3rd party support and there can never be too many support sites for a game like Foxhole

long raft
#

when you do your comparison you round them, or test the difference, @cunning forge
if ( abs(a-b) < .01 ) ...

#

abs = absolute value

hybrid mason
#

imagine coding in c++

long raft
#

same thing applies to most languages

hybrid mason
#

That said. I wish I could work in c++

#

But with the shaking on the horizon that is webassembly, I'm going to have to learn c or c# and I feel dread

long raft
#

c++ sucks

neat fossil
#

i like coding

hybrid mason
#

weirdo

hexed marsh
#

C++ is supreme, you wot m8

coral sundial
#
#include <avr/interrupt.h>
ISR(TIMER0_OVF_VECT)
{
    GlobalTimer0++
}

void InitInterrupt()
{
    TIFR0 |= (1 << TOV0); // In Timer Interrupt Flag Register set Timer overflow flag to 1 to clear it.
    TIMSK0 |= (1 << TOIE0); // In Timer Interrupt Mask Register set Timer Overflow Interrupt Enable to 1.
    sei();
}

void InitTimer()
{
    TCCR0B |= (1 << CS01); //In Timer Control Register B set CS01 to 1 (8 prescaler)
}

/* global variables */
int globalTimer0 = 0;
/*global variables end*/

int main(void)
{
    InitInterrupt()
    InitTimer()
    

    while(1)
    ;

    return 0;
}
#

so I was wondering if the C arduino experts here approve of the way I have enabled the timer0 overflow interrupt

#

Or if I have written total BS

#

I think I still have to enable the timer oops

#

edited

long raft
#

why does it seem like theres a lot of missing semi colons

coral sundial
#

Because i am missing three lol

pure sierra
#

i mainly program arduino with ide @coral sundial

coral sundial
#

DOPE

#

It works

#

but I dont like the use of global variables. is there any way I can make the ISR change something outside its scope?

#

@pure sierra maybe you know this? ^

long raft
#

you can pass variables by pointer (or reference if c++)

#

and you can use static variables, but theyre basically just global

coral sundial
#

yeah, I guess. but I havent been able to understand that part of pointers yet 😅

neat fossil
#

Tbh I would recommend to use define instead of making a global variable

#

Don’t ask me why to do it, I just remember being told it was better

#

And answering your question. Derps answer is the way to do it imo

long raft
#

so you make a variable, int x; and you set it x=0; and you can get a pointer to it int * pointer = &x;. And you can pass that pointer to a function, and then change the value it points at like *pointer = 10; or pointer[0] = 10;

fervent spear
#

He wants to modify the variable, so a define won't work.
I don't know Arduino but i don't think you can pass arguments to the ISR, so pointers wouldn't cut it either.
In XC8 i used global variables but there may be a better way.

coral sundial
#

The only way I see is to make the timer a function that the isr edits and the loop reads

#

But that kind of defeats the function of a hardware timer

pure sierra
#

is this related to millis overflow ?

coral sundial
#

no

#

but yes

#

its an overflow interrupt based on timer1

coral sundial
#

Lololol. I passed my exam.

#

I had code that didnt work on 1 function

#

And the time elapsed

#

But the teacher was slow to come and check of code. So i changed it really quickly

long raft
#

my teachers used to give me unique tests because the other students would copy my work

chilly marlin
#

lol me too derp

neon vaporBOT
#

dynoSuccess Yellowbird#2557 has been warned., let's not post rickrolls here thanks

languid harness
#

getting muted for rick rolls, oef

kind glacier
#

oeuf

languid acorn
#

@fervent spear Pass-by-reference pointer into a function

#

allows you to modify the value inside and return it outside.

#

&pass_reference_to_variable

#

C++ has 3 different ways to pass a value to a function

#

Global variables are discouraged

#

Feel the dread from learning a new language why?

#

@hybrid mason

hybrid mason
#

Because it’s one more thing to have to keep up to speed on

languid acorn
#

It doesn't change that much.

hybrid mason
#

I work in web dev. Theres a hot new framework with a stupid fucking name every month

languid acorn
#

Most programming languages will have a set of features mainly.

Datatypes (Reference and primitive)
Control Structures (For,while,if etc)
Functions
Sometimes Objects
Interfaces (Sometimes)

#

Find one thats updated regularly, maintainable and evolving.

#

There is only a few "real major" players.

hybrid mason
#

Sure

#

Only a few major players.

languid acorn
#

When you signed up for coding / web dev, expect a life long learning experience you've got no choice.

#

C# isn't that hard.

#

Shares a lot of characteristics with Java.

hybrid mason
#

Only a few major dev systems, containerisation platforms, deployment architectures, front end frameworks, back end frameworks, DAL’s, transpilation systems, testinf franeworks

languid acorn
#

shrug I just learn whatever comes my way.

#

I've got 2 CCNA books currently, Java Programming, Python book too.

hybrid mason
#

I’m currently balls deep in electron

#

Also I hate Java

languid acorn
#

Why?

hybrid mason
#

Language style feels restrictive, clunky

languid acorn
#

Generics?

#

Allows for generalised runtime type safety

#

<T> T

hybrid mason
#

Life is too short to spend your life casting a var on init, and I/O

languid acorn
#

Eh. don't do that.

#

Throwing yourself at a problem all day doesn't work

#

If you can handle OOP fine you'll be able to learn C# easily.

hybrid mason
#

It’s going to be a few years regardless

languid acorn
#

It does not take a few years...

#

You just need to understand how the laydown the foundations of a project with the "toolbox" you have even at the most basic language level C# is similar to C\

#

C# is probably less likely to segfault your application though

#

C is just very type unsafe and you have to keep track of everything.

#

But if you master C / C++ you can master pretty much any language

hybrid mason
#

No I mean I’ve got a few years until needing to know a web assembly language becomes a thing

fervent spear
#

Pass by reference doesn't help either, the problem is that the function calls itself, and you can't pass it arguments

languid acorn
#

Why can't you pass args?

long raft
#

i hate java too, but at least its modern.

languid acorn
#

I don't hate any language.

long raft
#

c# is bae

languid acorn
#

bad?

long raft
#

great

#

its excellent.

languid acorn
#

Why hate Java?

#

They're very similar.

long raft
#

nah java is a lot more overbearing

languid acorn
#

Both use a VM to interpret code.

#

CLR and JVM

long raft
#

java isnt as capable as c# either, also not as universal, projects are much harder to setup

languid acorn
#

Why isn't it as capable?

long raft
#

i would still rather work in java than C or c++...

#

well it just doesnt carry the performance c# does, and the frameworks are old and dusty

languid acorn
#

That's because C and C++ are unforgiving of mistakes.

#

...

#

Java 8 recently added a bunch of features.

long raft
#

arent we on like java 11?

#

java 8 is old AF isnt it?

languid acorn
#

JDK 11

#

Not JRE 11

long raft
#

yah but isnt the java version much newer?

languid acorn
#

SE 13

#

Eh. But what's so overbearing about Java?

long raft
#

i can tolerate java 9+

#

well java requires a lot more boilerplate code, it has less features like unsafe for performance and interop, it used to be missing things c# had before it like generics or "streams"

#

i dont mean like input/output streams, i meant the equivilent of LINQ

#

c# is just full of short cuts that make code clean and readable and faster to program, and we know developers write about the same number of lines of code per day regardless of language

languid acorn
#

Java has database access capabilities as well.

long raft
#

async, LINQ, iterators, stuff c# has that is a godsend

languid acorn
#

To me a language is a language knowing more than one language is a benefit not a drawback.

#

Java does Async too... has iterators as well.

long raft
#

java iterators... are not the same

languid acorn
#

As I said a language is a tool more tools on my belt the better.

long raft
#

i agree with the sentiment with the tool analogy, but you dont have to remember how to use a hammer

#

you dont become out of date with how hammers work in a year

#

hammers dont have licensing issues...

languid acorn
#

Java?

#

You've got OpenJDK

long raft
#

which is inferior to the oracle jdk

languid acorn
#

In what way?

long raft
#

speed, algorithms available (which are under copyright or patents)

#

bugs

languid acorn
#

Nope from what I just read Java is faster

long raft
#

hah

#

i dont really like to get into debates over which language is faster, which is generally irrelevant

#

but i dont think it can really be argued that c# has the ability to be faster with unsafe code, perhaps comparable to C speed

languid acorn
#

C++ will pretty much always be superior in speed

#

and C even more so.

long raft
#

speed is not everything, i think development time is more valuable than running speed

#

ive been programming 20 years, heard plenty of "C is the fastest, blah blah" nonsense

#

use case is very important

long raft
#

but i would suggest to you if your benchmark shows java being the fastest at something, oof its probably not a great benchmark

#

same with like ... python

languid acorn
#

No I was wrong. Java is slower

#

but C++ / G++ is definitely faster than C# in most cases

long raft
#

but programming in java is faster than programming in C, you will get a lot more work done, and thats more important

languid acorn
#

Don't like managing memory?

#

I prefer to know nittygritty.

long raft
#

you have to manage memory in programming no matter what

languid acorn
#

In C# and Java you only have to deal with object retirement ah yes I remember C# has Destructors as a good feature

long raft
#

no you have to manage memory in java and c# both

languid acorn
#

Yes but not "directly"

long raft
#

memory leaks look different, they arent lost pointers, theyre just held references

languid acorn
#

You don't deal with setting up a pointer to a null pointer block of memory then add the data to that block

long raft
#

you will still kill your performance if youre abusing memory allocations or not releasing references

languid acorn
#

But in general "Managed" languages are easier to deallocate

long raft
#

meh.

languid acorn
#

C allows for direct memory management.

#

C++ doesn't really.

long raft
#

im not sure if i believe that. i find garbage collected languages to be more efficient in memory management, if youre careful

languid acorn
#

you have to use malloc to physically allocate memory.

long raft
#

c++ does the same memory management as C, what do you mean? its just new/delete instead of malloc/free

languid acorn
#

For whatever data-structure you want to use.

#

I remember reading it's not the same.

long raft
#

its the same.

#

in c++ there is a push to stop allocating memory on the heap, and use the stack instead. which avoids having to use delete

#

but its more of a convention than a language rule

languid acorn
#

Heap is the dynamic memory allocation space. The stack is limited to CPU specifications.

long raft
#

i find most c++ programmers tho are really just c+ programmers. theyre mostly using C with a few c++ additions

#

the stack can also be dynamic

#

but stack space is limited so it can lead to stack overflows

languid acorn
#

Thats what I mean. Stack is limited. Heap is correlated with the size of memory available.

long raft
#

i mean if you think about it the heap is limited too but much larger

languid acorn
#

Whats more you have to deal with memory fragmentation in the heap.

long raft
#

yah thats why memory allocation is slower in C/c++ than in java/.net

#

when i was young the culture of c++ was trying to push smart pointers, which were basically just garbage collection without defragmentation

languid acorn
#

My reason for learning C is hacking.

long raft
#

well some stuff you can only do in C or ... rust

#

you just cant program drivers in c# or something

#

but imagine how much time youd burn making a web page in C

languid acorn
#

A lot.

#

But it is already C / C++

#

The JS engines are using C / C++

#

SpiderMonkey, V8 etc.

long raft
#

what part of them is C?

#

im not like super into the javascript world

languid acorn
long raft
#

my god the greatest thing c# has lately than java does not, anonymous value type variables

#

so i can make a variable
(int IntValue, float floatValue)
and I can return that type from a method/function if I want
(int V1, int V2) foo() => (0, 0);

languid acorn
#

You mean lamdas?

long raft
#

so like ... methods can have multiple returned values

languid acorn
#

Anonymous "method calls"

long raft
#

no no

#

the return type. thats the important part to me

languid acorn
#

Yeah Lamdas do exactly that.

long raft
#

ya know, C/c++/java can only return 1 value from a method, so you often have to define some class to package all the data you want to return

languid acorn
#

1 method?

long raft
#

1 return value

languid acorn
#

Try passing an entire object in then return the object.

#

Access the method data via getters / setters in that object.

long raft
#

yes i know, but you have to define an object. that takes time

#

this is something Go also features nicely

languid acorn
#

Passing an object is pretty clean as it is

long raft
#

not passing in, passing out

languid acorn
#

Both.

long raft
#

the best you can do in java quickly is with ref

#

c# has out, which makes a 1 directional variable, but its totally outdated now with this new style

languid acorn
#

Pass an object return an object or just pass an array which is an object then pass the entries out of that object.

long raft
#

right so you need to define an object class, if its public youve gotta put it in its own file, then you need to define the accessors and the constructor, then when its used itll make a heap allocation, more churn, more grind, just to return 2 values from your method

#

or we could shortcut it with an anonymous value type

#

its so great, really it is.

languid acorn
#

C# is limited to Windows is it not?

#

The non-core part

long raft
#

not anymore. dotnet core is apache/MIT licensed open source works on linux and windows (and kind of freebsd), oh and also os X

#

and android and ios ...

languid acorn
#

Interesting.

long raft
#

c# itself is like ... public domain or something

languid acorn
#

interfaces are weird to me.

long raft
#

i do like 20% of my work in java and maybe 65% in c#

languid acorn
#

Creation of a data contract just to ensure those data components are enforced.

long raft
#

yea its necessary in these languages because classes can only inherit 1 sub-class

#

so if you want to also give it other behaviors you use the interface, which you are not limited on

languid acorn
#

Yes but a class still needs to "implement" the interface.

long raft
#

yah its like an abstract class

languid acorn
#

It's unusable as a "API" without the implementation.

long raft
#

without an inheritance heirarchy

languid acorn
#

All the interfaces defined if you define an implements you have to implement each single method.

long raft
#

right, like abstract methods

languid acorn
#

Yes but abstract methods can be defined or not.

#

Or actually have a method body.

long raft
#

nah thats virtual methods. abstract methods have to be defined by anything inheriting them

#

uhh i guess theyre called pure virtual maybe?

languid acorn
#

But the main difference is abstract methods don't have to be defined.

#

They can choose whether or not.

long raft
#

no they have to be defined

languid acorn
#

Hm Java doesn't do this with abstract methods.

long raft
#

🤔 maybe java calls them something else then

languid acorn
#

No Java In a NutShell 7e

long raft
#

if you inherit an abstract class you dont have to implement every method, unless its abstract

languid acorn
#

Mentioned that Abstract classes don't necessarily need to implement the methods

#

they can also have default methods

#

which have a method body.

long raft
#

Rules of Abstract Method

  1. Abstract methods don’t have body, they just have method signature as shown above.
  2. If a class has an abstract method it should be declared abstract, the vice versa is not true, which means an abstract class doesn’t need to have an abstract method compulsory.
    3. If a regular class extends an abstract class, then the class must have to implement all the abstract methods of abstract parent class or it has to be declared abstract as well.
languid acorn
#

So why choose an interface over an abstract class?

#

Multiple inheritance?

long raft
#

youve got to implement all the abstract methods in a class, but you dont have to implement all the methods of an abstract class (unless those methods are abstract)

#

yah for ...multiple APIs

#

but you cant have multiple inheritance in java or c#, thats ... old c++ crazy shit

#

nobody does multiple inheritance anymore because its such a confusing mess

languid acorn
#

Yeah I've seen some crazy nested stuff...

#

Ah yeah structs

#

I love structs.

#

Don't exist in Java

#

Hm Humble bundle's rotating AI books again

#

Tasty.

long raft
#

yep, another advantage c# has, structs are stack allocated by default, easy to deal with, good performance

#

but they add language complexity, some things structs cant do, some ways their performance is bad (when they get copied)

languid acorn
#

What do you expect there non-homogenous data types.

long raft
#

yah c# bridged the gap with nullable value types, like
int ? x = null;

languid acorn
#

Each datatype is going to be different and therefore each size of datatype is going to be differnt.

#

OOoo humble bundle has Cybernetics book.

#

@long raft C# also has delegates

long raft
#

ah yea those are old

#

theyre nice but theyre not ... very elegant actually, in terms of code readability. i could see improvement there

languid acorn
#

I'm personally not into "production level code"

long raft
#

its just the same as regular code but with a unit test

languid acorn
#

I don't know I met a Java dev who hated his job.

#

It was boring.

long raft
#

java is a grind maaaan 😓

languid acorn
#

No it wasn't that, he said it was the old systems they were using.

#

Crappy boring maintained systems.

long raft
#

yah legacy code is awful - but it also pays the highest

#

you should see how much COBOL programmers get paid

#

you are blessed if you like maintaining legacy code

languid acorn
#

I'm more into the "cutting edge" I definitely don't want to work at Facebook I despise facebook and google in more ways than one. I don't care if I get paid big $$$

long raft
#

yah i agree. but im no so cutting edge i want to do games ever again

languid acorn
#

I don't even use social media. Hate it even...

long raft
#

yah same. facebook also famously a php company

#

like bruh imagine running fortune 500 shit on php

languid acorn
#

And they make money by selling ads.

#

I like SDN stuff though

long raft
#

whats SDN?

languid acorn
#

Software Defined networking

long raft
#

what is that?

languid acorn
#

Instead of everything in a router being handled by a set of hardware

#

A Software layer for abstraction then generalised hardware placed over the top

#

There is even SDR (Software defined radio)

#

So routers are actually just software modules.

#

It gives you far more flexibility

long raft
#

who are the big players in that field?

languid acorn
#

CISCO

#

Quite a few others.

#

Nokia (Alcatel)

long raft
#

what kind of hardware do you use for it?

languid acorn
#

Well an example would be virtualised hardware

#

Containers can even be used for SDN

#

Like Docker Swarm or Docker or K8s

long raft
#

ok

#

if you dont already know about a CS topic, it can be difficult to gather any understanding from the buzzwords they use to describe it waitwhat

languid acorn
#

SDR takes radio technology modulators, filters, signal processors and defines them at the software layer.

long raft
#

yea i think i understood your description, you werent using buzzwords like their web pages

#

like ... reading a microsoft product description - is unintelligible

languid acorn
#

Just keep a computer dictionary handy.

#

English is like a OOP

#

but has multiple inheritance.

long raft
#

i know but their stuff was ridiculous

languid acorn
#

Agreed.

languid acorn
#

it's called technical language or field-specific technical language.

long raft
#

which is fine for people who do it, but for the marketing description its funky

languid acorn
#

Marketing heh marketing is exactly that. It's like this huge "rage about AI"

#

AI is dumber than a dog.

#

A dog has more brains than "AI"

long raft
#

ah man AI is taking over computer science

languid acorn
#

Yes and you know the "top" AI conference said stop it...

long raft
#

hard to make an algorithm? we'll just run it through the GPU until it burps the alphabet

languid acorn
#

We don't know what makes our intelligence how are we supposed to create something similar fi you don't know how it works...

#

AI has been herald as the "next big thing"

#

Companies are putting "AI" in everything.

#

Microwaves, Toasters, Fridges.

#

Laptops...

#

Do I really need an AI that tells me you are out of milk.... wtf.

long raft
#

its almost a classic cycle, AI was big in the 70s, then big again in the 80s with the introduction of neural nets, now big again with the back propogating neural nets, and now with the GANs

languid acorn
#

I mean AI has a perfectly valid use. Machine Learning used to analyse cancer slides and determine things but this is just Machine vision + a bit of image recognition.

#

China has gone insanity level with "AI"

long raft
#

well its the GANs

languid acorn
#

Even though the system is so dangerously insecure.

long raft
#

its more than just recognition now...

languid acorn
#

Go look in... pcpartpicker and see how many people "research AI"

#

Total bollocks

long raft
#

yah for those GPUs

#

it is really nice to crunch numbers on the gpu, im sure thats why research departments are looking into AI. its kind of like how they used to call the pocket calculator AI

languid acorn
#

So GANs are just a bruteforcing technique basically

long raft
#

yah all neural net stuff is brute force

languid acorn
#

Thats what I get from reading their description.

#

How inelegent.

long raft
#

but instead of a back propogating net, which is just a recognizer, this is 2 parts, a generator and a recognizer, and they both train each other

#

its actually pretty damn cool, but its still not magic, youve got to adjust tolerances until you get the results you want

languid acorn
#

This is the best description of SDN

#

Think about how you could manage an entire data center from Powershell

#

Thats basically how SDN works

#

I can issue a firewall rule from CLI and update multiple devices at once

#

or I could push new firewall rules from CLI to specific devices on the network.

#

That makes more sense.

long raft
#

its virtualizing a network kind of? how far up the osi layers does it take it?

#

that damn OSI model is hella out of date huh

languid acorn
#

Application layer

long raft
#

which half the routers now are working at the 7th layer lol

languid acorn
#

Everything below that.

#

Handles SDN

#

Nope just 3 layers

#

But I believe there is another part of SDN that also deals with lower.

#

yeah Southbound interfaace

#

not the northbound interface

Application Layer
/\ North /\
Lower protocols / functions
\/ South \/
long raft
#

im gonna miss my hardware router 😦

languid acorn
#

Why?

#

What router?

#

I'm running Ubiquiti router

#

ER8-Pro

#

With an EdgeSwitch

long raft
#

ah ive got one of those. i think i prefer my mikrotik tho

languid acorn
#

I'd agree on that.

#

Mikrotik impressed me.

long raft
#

i just got one of the small 5 SFP+ port ones so i can switch to 10gb

languid acorn
#

But it lacks upgradability.

#

Not a lot of them support ram modules

long raft
#

sure has a lot of features, although power doesnt seem to be one of them

#

what a pain in the ass to configure tho, right?

languid acorn
#

Microtik?

#

or UB?

long raft
#

microtik

#

ubiquiti stuff seems pretty fast

languid acorn
#

microtik is dense I've seen the GUI

#

I watch a guy called Lawerence systems

long raft
#

the gui is like everything you can do in the console. ubiquiti has a simpler GUI that does less

languid acorn
#

CLI does everything

long raft
#

right, the microtik GUI is equal to the CLI

#

thats why it looks so complicated

languid acorn
#

I like CLI.

#

EdgeSwitch can do a lot

#

If you read the CLI

long raft
#

yea but the GUI is limited/simple

languid acorn
#

On the EdgeMAX units yes on the Unif-Controller stuff no.

long raft
#

oh

languid acorn
#

I personally don't like GUIs

#

More stuff goes wrong with GUIs

long raft
#

you have to know networking well to use a microtik, at least the edgemaxs could be used by someone less tech savvy

#

thats who you would expect to be using the GUI

languid acorn
#

EdgeSwitch here I'll show you the CLI manual

#

EdgeSwitch has a good selection of flexibility however.

#

Microtik has more routing features

#

I'll probably go with a RouterBoard and keep the EdgeSwitch

long raft
#

they both seem to get exploited a lot

#

i mean if security was a deep concern could you trust either brand?

languid acorn
#

CISCO isn't much better...

long raft
#

wtf that manual is over 400 pages

languid acorn
#

@long raft Didn't you know that?

#

EdgeSwitches are definitely far more sophisticated in terms of functionality

#

Ubiquiti is mostly based on Vyatta or VyOS

#

The EdgeRouter EdgeOS is 104 pages

#

Kind of sad most of UBNT lacks MVRP yeah lacks MVRP but not GVRP

#

MVRP is much newer

coral sundial
#
{
    *nine = 15;
}


int main()
{
    int array[10];
    int* nine = &array[9];
    for(int x = 0; x < 10; x++)
    {
        array[x] = x * x;
        printf("array %d is %d\n", x, array[x]);
    }

    Arraychange(&nine);
    printf("array for 9 is %d\n", *nine);

    return 0;
}
#

I am trying to wrap my head around pointers

#

but my program crashes when I try to print past when I call my function

#

ohokay

#

Iguess I can print without the dereferencing operator

long raft
#

no theres nothing wrong with your code that i see.

coral sundial
#

I wanted to get the adress of 9 into pointer ""nine" then change that in the function

#

except it crashes when I print *nine

#

printing just nine works

#

also whats the difference between *nine and nine then?

#

*nine is the value stored in the adress that its pointed to. and nine is?

long raft
#

nine is the pointer, its like a 32 bit number, and *nine is the value it points to

#

but yah nine is the actual address

coral sundial
#

but why does nine print 15 in my function?

long raft
#

*nine is the same as nine[0]

#

because you set it to 15...

#

on line 3.

coral sundial
#

but the actual array is left unchanged then?

long raft
#

the address doesnt change. you set the value because you did *nine = ...

#

thats the same as doing nine[0] = 15;

coral sundial
#

err

#

I dont get it

long raft
#

so you have an array of 10 size, and you have the address of the first value in it, thats the pointer

coral sundial
#

didnt I make the pointer to point to the adress of array[9]?

long raft
#

but then you made a new pointer called nine, that is 9 elements deep into the array

coral sundial
long raft
#

int* nine = &array[9];

#

see how it's 9 deep into the array?

coral sundial
#

yeah I get that

long raft
#

so setting *nine is like doing array[9+0] = 15;

coral sundial
#

yes

long raft
#

and then you read it back ... so its still 15

coral sundial
#

and in the actual array, its 15 too then?

long raft
#

yes, setting *nine is the same as nine[0]. it should make more sense

#

so youre setting the value in the array

coral sundial
#

alright, thats what I set out to do xD

long raft
#

not a copy of the array, but the actual array, because youre using a pointer

coral sundial
#

but then I dont get it why it crashes when I want to print *nine

long raft
#

i thought you said it was printing 15

coral sundial
#

I want to print the value the adress pointed to, that I changed in the function to 15

#

if I did that

#

also I can navigate through an array by incrementing my pointer too?

long raft
#

yes

#

or just adding to it, like +5

#

that will move it by 5 * size of integer (4 bytes)

#

you cannot increment a void * because there is no size to void

coral sundial
#

so if I do *(nine+ 1) = 4; sets 10 to 4?

long raft
#

yes, but 10 is the 11th index in the array, and the array is only size 10 so that would be a problem

coral sundial
#

yeah, I realized that xD

long raft
#

(nine +1)[0] = 4; also works

coral sundial
#

:V

#

I think I need to sleep on this

long raft
#

yah itll really be a trip when you have pointer arrays of pointers

#

uhh i do know why youre getting an error, can you set a breakpoint and see if you can read the array? maybe the problem is printf

coral sundial
#

what is a breakpoint?

long raft
#

ah so if youre using a decent development environment you can run the program in debug mode, stop it at any point, and read the values of the variables while it is paused

coral sundial
#

yeah so

#

I am using codeblocks

long raft
#

printf works if youre not there yet, but i just dont see anything wrong wiht your code when i stare at it

#

maybe i can try running it...

#

oh i see

#

Arraychange(&nine); this line is getting a pointer to a pointer. because nine is already a pointer type, you dont need to get it's address

#

it should be Arraychange(nine);

coral sundial
#

oh right

#

I am trying to pass the adress of nine while nine already has the adress

long raft
#

it runs for me

#
array 1 is 1
array 2 is 4
array 3 is 9
array 4 is 16
array 5 is 25
array 6 is 36
array 7 is 49
array 8 is 64
array 9 is 81
array for 9 is 15```
coral sundial
#

noice

pure sierra
timber onyx
#

I didnt know that this channel was literally about anything coding related

exotic chasm
#

Now you know

long raft
#

💢

timber onyx
#

Derp you dont hold a monopoly on coding

long raft
#

i hold the simpleton singleton

timber onyx
#

But i do would like to know if anybody has ever used visual basic before

long raft
#

i have used vb for more than half of my life

timber onyx
#

How old are you nightmarewarden

long raft
#

💢

exotic chasm
#

Derp is an ancient elder being.

#

They are called "Programmer"

#

We should leave their temple

long raft
#

i have used every version of visual basic. including 1.0. yes. its hard to find.

timber onyx
#

Well i got this book on visual basic and i’d like to know if it’s even worth learning the language

pure sierra
#

no

long raft
#

old vb? no. vba - bleh. visual basic.net is very good, but probably its better to just learn c#

#

basic is a great language tho, popularity is waning

timber onyx
#

I know C but would like to expand my horizons a bit

#

Still havent even touched javascript which is next on my list

long raft
#

better to learn javascript then

timber onyx
#

Aight

#

Guess this book is now recycle bin time

long raft
#

its probably way out of date anyway

timber onyx
#

Hell yeah it is

#

Got it at a used book thing

long raft
#

this is my impression of disk

🤔 should i learn turbo pascal?

#

📆

#

man im probably the only BASIC b here

#

dying breed

barren quarry
#

lul basic in 2k20

long raft
#

its better than java 😦

pure sierra
#

python is prob one of the most versatile popular langs at the moment

sharp breach
#

Definitely

timber onyx
#

Python is just lazy C julianlol

#

Also im curious how many of you have used labview before

sharp breach
#

Lazy C is smart C

#

@timber onyx Labview is for maniacs

languid harness
#

L-labview?

#

wot in tarnation

timber onyx
#

Just saying, labview is great for learning

timber onyx
#

By the by, anyone know any good C+ programmer that can be used to create discord bots?

languid harness
#

Do you mean a person who can do it for you, or an interface to program in?

timber onyx
#

An interface julianlol

#

Sry my code linguo isnt perfect

barren quarry
#

@timber onyx i wrote a discord bot on js

#

i used to code on c# and i was unhappy

#

i switched to js and now i am a happy person

sharp breach
#

c# = :(

js = :)

languid harness
#

C#, C++, js, java, python = :(
Mindfuck = 🙂

kind depot
#

is this where we learn to talk in code so that colonials don't undertand us

timber onyx
#

No joke that’s what i thought this channel was for for a long while

neat fossil
#

<script>(function(){var ctx=[];google.jsc.x(ctx);})();</script>

signal wharf
#

You have libraries in a lot of languages for discord, including C# and python^^ (C# is love)

long raft
#

c# clearly the most powerful modern language. js is for kids (gifted kids)

#

also i thought that joke language was brainfuck

#

unless you just mean like ... haskel

hybrid mason
#

@neat fossil is that supposed to be some sort of weird convoluted fork bomb?

plucky tapir
#

JS is for special kids, I'd say

languid harness
#

@long raft brainfuck is fun! I once saw a video of a guy programming a checkers playing robot

chilly burrow
#

please vote

neon vaporBOT
#

dynoSuccess Mulon#5667 has been warned., Stop posting your poll in random irrelevant channels

pure sierra
#

ouch

long raft
#

yah loxen warned not to post individual devstream screen shots in channel today, its clearly inspection week.

timber onyx
#

@long raft explain

#

I thought it was ASCII only @long raft

long raft
#

ascii is not unicode, nobody uses ascii anymore. because it only has like a hundred something letters

#

hanzi is maybe a higher number in the unicode set, nothing makes it "special"

timber onyx
#

But how come ascii charts give the correct character

#

I use ascii charts when i need to parse shit

long raft
#

some of the characters in ascii are the same definitions as unicode. some

timber onyx
#

Alright thanks

long raft
#

ascii is old...

timber onyx
#

So are you julianlol

quick shoal
#

Hey did you guys ever finish the gps map for foxhole that you were working a while back?

long raft
#

not sure if you mean the routing or the aerial photography mulon worked on

chilly burrow
#

I think he means the google roads one

quick shoal
#

Yeee

#

Is there anyway I can help

long raft
#

i think we lost interest, but it was working, it just needed cleanup. the roads were close but not connected on the region borders, so the pathing wouldn't always choose the shortest route

#

but otherwise it worked... hayden said hed recruit people to fix those nodes by snapping them together but yah ... morale is low re: foxhole

pure sierra
#

yea derp did some great work getting it to going, anyone welcome to work on it

chilly burrow
#

problem is that maps keep changing, even little roads adjustments make this feature obsolete quite soon

summer bobcat
#

Guess we'll have to wait until 1.0 coloniallol

quick shoal
#

oh i see, and yeah i would want to see it implemented i want to see how much time im using driving logi up lol

#

anyway i can get a link to its github?

long raft
long raft
#

Frowned upon by whom? Do they also have a bayonet? ThrowingBayonet

long raft
#

youre just being critical for the sake of it

#

im not arguing that its clean code. i just dont care

#

its mostly there so i can post the binaries

#

speed is not effected by namespaces unless youre using reflection

#

yah you also called me a bad programmer because i didnt simplify namespaces

#

yah but it doesnt matter

#

also ill point out rectanglef is a struct type, so ... i dunno why your panties are in a wad over new allocations

#

its a struct!!

#

who cares about hte name space

#

its such a small concern

#

yes it would improve readability

#

yes i know

#

but i didnt

#

did you comment and document it?

#

did you build unit tests?

#

excuses...

#

nobody but you will be reading my code tho

#

for the binary files

#

sounds like you have it all figured out

#

github hosts it for free, id rather not host files out of my closet

#

well then how can anyone else get to it?

#

this way i can share the binaries, but i dont really expect anyone to read the code, and if so, well they better figure out how to read complicated redundant namespaces

#

there is some c# specific graphics stuff in there

#

and extension methods?

#

no.

#

and you also didnt know there was no performance problem with allocation struct. i only point it out because you said "fully" understand. im sure you understand enough to modify stuff

#

extension methods are how the ".SelectMany" and other methods work

#

its largely the stuff in the System.Linq namespace

#

books are pretty bad, in my opinion

#

i kind of live and die by the official documentation

#

oh well its at least c# 7

#

i mean thats my biggest 2 problems with books - out of date, and loaded with way too many words that convey no information

#

8 is not that significant compared to 7

#

just pointing out a couple things that dont exist in java

#

when i learned java (after c#) i spent a lot of time like what are all these final statements everywhere!!

#

well i know how it works now but it was quite a change, and the final keyword means many different things in other languages

#

most languages would have referred to it as readonly

#

eh... have you ever used templates? they are not much like generics

barren quarry
#

i think that programming books are mostly obsolete

long raft
#

most importantly because the classes in c++ do not all inherit some base object class

barren quarry
#

standards change too often

#

you just google a documentation for an api and start coding

#

i havent come across an architecture book that would capture my attention

long raft
#

i remember i used to buy $65 programming books that really were crap

#

even knew some people who wrote some

#

thats when i really lost faith in them

#

but different people learn differently, im sure books are the best for some people

#

i dont mean this as a slight, but to me it feels like java changes slower than other languages

barren quarry
#

can you please recommend me any books that are not tied directly to any specific language

#

js on the other hand is the embodiment of the term "technological singularity" lul

#

you dont need to write anything yourself anymore cause there are a billion js packages on each topic

long raft
#

yah js moves fast, c# moves fast, the new languages move fast too like Go and Rust

#

jeez even c++ moves fast these days. like wtf

#

it has changed incredibly since i learned it like 15 years ago

barren quarry
#

i havent written c++ since 2013

long raft
#

it changed a lot in 2011, but it doesnt mean everyone just suddenly upgraded to c++11

barren quarry
#

we had java in uni but it was so incredibly boring

long raft
#

yah old java and old c# were very clunky and boring languages

barren quarry
#

i dont know

#

our teacher was a chick from an outsource company who was sipping coffee all the time

long raft
#

he is a javascript programmer, fire 😉 you imagine what kind of torrid stuff hes into

barren quarry
#

i have

long raft
#

no safety nets in javascript...

barren quarry
#

i have taught myself javascript and got myself a job

#

i tried learning coding since 2012 but it was so fucking boring until i stumbled upon React a year ago

#

wdym js specific features

#

no not really

#

but its always fun when someone tells me a feature is displayed incorrectly in safari

#

and i physically cannot get safari because im on windows

long raft
#

eh... you kind of can, depending on how much you care about breaking the law and how badly you want to test safari

#

osx86 live boot...

#

it runs in a VM

barren quarry
#

i always wanted to make killer robots

#

website building always seemed extremely boring to me

#

so i had major trouble motivating myself to do anything until i started writing websites for foxhole

long raft
#

well your work is inspired

#

i bet its full of comments and documented

barren quarry
#

unfortunately the country does not have much of an industry for killer robots and the closest major to it i picked in university turned out to be designing robotic arms for factories

long raft
#

if its a gun factory then theyre killer robots

barren quarry
#

lul

long raft
#

safari, particularly, is the new IE 6

#

i have found edge to be very good about standards

#

i have found firefox to be lacking.

#

some things have improved since i discarded it but they used to be way behind on standards (or maybe just not ahead)

zealous sonnet
#

@barren quarry take a look at Game Engine Architecture Vol 3 (vol 1 and 2 are great reads as well). I don't recall it being extremely heavy in terms of c++/code in general

floral escarp
#

im currently rereading Ethical Hacking and Countermeasures to focus on the countermeasures part; haven't looked at code in years

neat fossil
#

How many players does Foxhole support per region?

barren quarry
#

up to 160

#

i think

timber onyx
#

learned about verilog and VHDL today

long raft
#

i have never even heard of these. i googled it expecting it to be something new but it wasnt

timber onyx
#

it's extremely low level programming

#

something you nerds never have to worry about

long raft
#

thank god. i left flip flops in my past and never looked back

timber onyx
#

listen buddy

#

i work with robots

#

i dont have time for you fancy shmancy architectures

long raft
#

i thought people used high level languages for robots. hm

#

frankly i thought most of the integrated circuits work had gone to china

timber onyx
#

guess who makes the designs for china

long raft
#

i also assumed china

neat fossil
#

What are sound attenuation settings of this game? For example I was trying to add more explosion sfx for the FieldGun.I recreated the filepaths correctly but in game sounds didn't play :(((

long raft
#

replacing the sound files? 🤔 theres only a couple people who know anything about that i think

#

also wouldnt that trigger some sort of anti cheat?

neat fossil
#

Nope, the method I use doesn't trigger steamDRM

#

I just want to know your attenuation settings so I could continue modding, I just want to give my sound mod to Freerk please devs, please whoever sound designer is please :'((((

sharp breach
#

@neat fossil Game modifications are not allowed unfortunately.

young pilot
#

I leave any map changes to you guys, since its stored in the fellowship of the warAPI repo

frosty pebble
#

@sharp breach why isn’t nodding sound files allowed

cloud abyss
#

I'm assuming because it might give an unfair advantage?

100% speaking out of my ass here rn
I.E. if I make certain things transparent, or amplify sounds to know where people are better.