Chat:World/2020-07-04

From CG community
Revision as of 11:48, 15 June 2021 by Chat Log (talk | contribs) (Created page with "File:Default_avatar.png _Dark_Angel_: Nghia64582...please follow back <img src=/a/35448723594340> jacek: happy Caturday <img src=/a/43448306132121> dbdr: the real caturd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Default avatar.png _Dark_Angel_: Nghia64582...please follow back

jacek: happy Caturday

dbdr: the real caturday: https://i.snipboard.io/0yTKeo.jpg

struct: :dog:

AntiSquid: voidsai ban @_@

KY0: hi\

KY0: hi

struct: hi

polytuky: Hello, anyone like playing reverse mode?

WINWINWIN: For the interesting ones, but there are quite a few random reverse ones out there :)

HuyBuddy1704: me

polytuky: please follow and chơi only cái reverse thôi :))

HuyBuddy1704: follow rồi :)). mà không bt chỉnh cái reverse như nào :))

polytuky: xong chưa, mời đi :v

IsaldwhynoT: reverse yay!

HuyBuddy1704: có xài FB ko? xin cái link kb chơi :))

polytuky: Không, nghỉ ời

HuyBuddy1704: :v. V có xài MXH nào khác k?

polytuky: Có, mà t con trai mà, :v

HuyBuddy1704: biết mà :V

LelouchVC2: Please be Chinese somewhere else

LelouchVC2: #china

polytuky: ?

LelouchVC2: That was Vietnam when they got bombed

LelouchVC2: "?"

eulerscheZahl: shouldn't it be #Cn ?

polytuky: Don't make war. Be kind to everyone. kid!

LelouchVC2: Yea that one

dbdr: #C#

eulerscheZahl: #Csharp

trunghautt: Choi ko ae

Default avatar.png cule: kammom

AhmedDev: Hope to win

AhmedDev: :grinning:

Rush_iam: Is it just me or chat don't updates until I refresh browser page?

AhmedDev: no it's updating normally

thanhhv317: choi

Default avatar.png CiBou: need help there

Or64bit: Hey guys! I have a question: does bot programming require knowledge about AI or some kind of evolutionary algorithm, or is it about hardcoding stuff?

Rush_iam: I just got to last league of CodersStrikeBack and hardest it required - is to calc of path in few steps using provided physic's data... lot of trigonometry there and lot of thinking of how to play "smarter" than opponent. Not about hardcoding because each map is random and you have to deal with dynamicly changing conditions.

Scarfield: Or64bit you dont have to know about AI to start. You can get far with an if else bot

Scarfield: different kind of search functions is the most used for top bots. Where you simulate the game some turns ahead evaluate if the series of moves was good or bad, and then make your current move according to eval and some search algo

Default avatar.png heavygabriel: wait so are you creating a chess-like algo?

Astrobytes: Yes, sometimes we use minimax w/ alpha-beta pruning and other extensions, move ordering, transposition tables etc

Astrobytes: MCTS is also common, BFS + beam search, DFS, SA, GA, flat MC, etc

Astrobytes: Some people use a machine learning approach

Hjax: huh wood 1 gained someone new in othello

Astrobytes: yeah, daninj a crept in like... a ninja

Hjax: pretty strong too

Hjax: looks like if he resubmit he'd be above me

Astrobytes: Yeah, decent bot for sure

Hjax: i want to write a n tuples eval, but it seems like a lot of work

Astrobytes: jacek might give you some advice...

Hjax: i understand it

Hjax: its just a lot of code to write

Hjax: and im lazy

Hjax: got to generate the tuples and the mapping into the weights arrays, then train it a lot, and only then can i see if its an improvement

Astrobytes: Stick with improving your eval for now then and work on that one slowly

Hjax: my eval is terrible and i dont have good ideas for it :P

Hjax: which is part of why i want to do n-tuples

Astrobytes: lol, get yer finger out then :D

Hjax: http://chat.codingame.com/pastebin/935a83b9-a393-4c5f-b362-d13f3f0f0b8d

Hjax: this is my entire eval lol

Hjax: board_priority[0] being the corners and board_priority[4] being the squares around the corner

Astrobytes: moves, corners and squares next to corners?

Hjax: yup

Hjax: i tried frontiers but it made it worse

Astrobytes: You can weight other squares, then there's frontiers, stable discs, disc difference at different stagges

Astrobytes: *stages

Hjax: i tried weighting other squares, frontiers, and disc difference

Hjax: none of those seemed to be an improvement

Hjax: stable discs seemed annoying to implement, so i havent tried that yet

Hjax: most n-tuples papers sort of randomly generate the tuples, im wondering if thats better than hand selected ones

Astrobytes: I didn't fully read the one I linked before yet tbh

Hjax: they seem to just say "i want 40 tuples of size 5" and then they pick a starting location, and then randomly pick a neighbor snake style until its the right size

Hjax: repeat 40 times

Astrobytes: Give it a shot, best way to test it

Hjax: the papers also index into the array with base 3, which seems annoying :P

Astrobytes: oh, ternary like trit/titboards

Astrobytes: Bundles of fun

Hjax: yeah, they use the configuration of the tuple as a base 3 number to index into the weights array

Hjax: which is just, gross

Astrobytes: :D

Hjax: whats even the fastest way to convert two binary numbers into one base 3 number

Hjax: thats not a problem ive tried before

Astrobytes: Ask MSmits, he uses it for something, might have been UTTT, not 100%

Default avatar.png heavygabriel: wtf my compiler is eating shit

Default avatar.png heavygabriel: and my IDE too

Default avatar.png heavygabriel: I'm trying to do a public class with standard stuff

Default avatar.png heavygabriel: and it says " Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement"

Default avatar.png heavygabriel: buuut when I insert this code snippet in VSC and I compile & run it, it doesn't give that error!

Default avatar.png heavygabriel: what gives?

KshitijSharma: Which IDE?

Default avatar.png heavygabriel: nvm I am retarded

Default avatar.png heavygabriel: so like in C#, you got get and set accessors and you can do shit with it

Default avatar.png heavygabriel: what I basically did with set is instead of doing set=> var name=value; I just did set=> var name;

struct: doesnt robo also uses Titboards?

Astrobytes: Not sure tbh

Default avatar.png rak1507: anyone else get really annoyed when people don't share their winning code

Default avatar.png rak1507: how am I supposed to learn

Default avatar.png rak1507: :(

struct: What was the puzzle?

Astrobytes: tag the guy and ask if he wants to share in PM or something

Default avatar.png heavygabriel: what the fuck

Default avatar.png heavygabriel: I managed to do a stackoverflow exception

Default avatar.png nutel: yeah, I think sharing code shoud be enabled by default

Default avatar.png nutel: not everyone bother to share

Default avatar.png RocketRidah: not everyone feels comfortable publishing it. some people may not legally be able to publish it. it's a tricky problem to solve. it would be nice to be asked if we wanted to default to sharing or not at some point in tutorial maybe.

Default avatar.png RocketRidah: I'd second reaching our in private and politely asking if they'd be willing to share or give some pointers.

Default avatar.png RocketRidah: out*

Default avatar.png Schwase: @heavygabriel lol im having the same problem now lol

freeman42x: hello

Default avatar.png Schwase: anyone have any tips for how to start a dependency graph?

Default avatar.png Schwase: i was thinking of making objects and assigning a "class" or "level" based on how many levels of dependency it has

Default avatar.png heavygabriel: omg

Default avatar.png Schwase: 1d spreadsheet?

Default avatar.png heavygabriel: so don't put your if in a for{} loop

Default avatar.png heavygabriel: it will fuck up

Default avatar.png Schwase: @heavygabriel are you doing 1d spreadsheet too?

Default avatar.png heavygabriel: 1d?

Default avatar.png heavygabriel: wat

Default avatar.png Schwase: are you working on a challenge right now?

Default avatar.png heavygabriel: ye

Default avatar.png Schwase: which one?

Default avatar.png heavygabriel: temps

Default avatar.png heavygabriel: I'm mostly new to programming so I'm using lists now

Default avatar.png heavygabriel: to do that

Default avatar.png Schwase: ah

Default avatar.png Schwase: yeah ArrayList is clutch sometimes

Default avatar.png Schwase: what lang?

Default avatar.png heavygabriel: C#

Default avatar.png heavygabriel: Lists

Default avatar.png Schwase: yep

Default avatar.png Schwase: i know next to nothing about c#

Default avatar.png Schwase: i use java

Default avatar.png Schwase: mostly

Default avatar.png Schwase: and some python

Default avatar.png heavygabriel: I made a class to use instances

Default avatar.png heavygabriel: so I can store the absolute temperature and the temperature

Default avatar.png heavygabriel: I found how to sort it

Default avatar.png heavygabriel: I just need to know how to prioritise positive numbers

Default avatar.png Schwase: i used temp squared

Default avatar.png heavygabriel: wait

Default avatar.png Schwase: am i not supposed to share how to puzzles :|

Default avatar.png Schwase: like i didnt give you too much i hope

Default avatar.png heavygabriel: can I sort them both by 2 class properties?

Default avatar.png heavygabriel: hold the fucking phone

Default avatar.png Schwase: erm

Default avatar.png Schwase: i know the math side of it

Default avatar.png heavygabriel: not me

Default avatar.png heavygabriel: shit

Default avatar.png Schwase: ?

Default avatar.png Schwase: damn its already 230

Default avatar.png heavygabriel: I can't do something like "if integer 1 and integer 2==integer 1"

Default avatar.png Schwase: why would you do that tho?

Default avatar.png heavygabriel: because I can't sort shit

Default avatar.png heavygabriel: and this POS sorting cannot put positives in front

Default avatar.png heavygabriel: so imma go full retard and do it manually

Default avatar.png heavygabriel: bruh I can't do list.reverse(index 0,1)

Default avatar.png heavygabriel: wow

Default avatar.png heavygabriel: it actually worked

Default avatar.png heavygabriel: 69 lines of codes

Default avatar.png heavygabriel: for like a 30 line problem

Default avatar.png RocketRidah: line count is just one of the many metrics you could use to judge code quality. it's not the one I use though :)

Default avatar.png HelloWorld183L: hey guys, does the Defibrillator puzzle really require an exact position or just really close? I don't know how I am supposed to use exact arithmetic in C# whilst working with Math lib trig functions

Default avatar.png Schwase: exact

Default avatar.png Schwase: im not familiar with c# so im sorry but i cant really address the code related part of your question

Default avatar.png HelloWorld183L: ah ok

Default avatar.png heavygabriel: search for Math. methods?

Default avatar.png heavygabriel: idk

Default avatar.png HelloWorld183L: how would you do exact arithmetic in your language then? Just as you would normally do math?

Default avatar.png Schwase: java: double instead of int

Default avatar.png heavygabriel: yeah OR check only

Default avatar.png heavygabriel: online*

Default avatar.png Schwase: java.lang.Math.cos()

Default avatar.png HelloWorld183L: i've checked online for how to do exact arithmetic in C# and found nothing

Default avatar.png heavygabriel: basically coding languages gives you extra math stuff which helps you

Default avatar.png heavygabriel: that doesn't stop you from doing it manually

Default avatar.png Schwase: use float?

Default avatar.png HelloWorld183L: it fails test case if i use float

Default avatar.png HelloWorld183L: possibly double too, but i'll check

Default avatar.png Schwase: iDk WhAt ThAt MeAnS

Default avatar.png Schwase: xd

Default avatar.png Schwase: sorry

Default avatar.png HelloWorld183L: it's fine

eulerscheZahl: floating point arithmetic is accurate enough

Default avatar.png HelloWorld183L: might not be accurate enough by this puzzle's standards

eulerscheZahl: maybe you didn't convert between degrees and radians?

Default avatar.png HelloWorld183L: i have, because i wouldn't have passed the first test case?

Default avatar.png Schwase: nah its radians by default

eulerscheZahl: trust me: the puzzle is perfectly solvable. it's a bug in your code, not a lack of accuracy

Default avatar.png Schwase: the problem gives you an equation

Default avatar.png heavygabriel: wait what is 1 2 3 4 5 6 7 8

Default avatar.png heavygabriel: what

eulerscheZahl: the input is given in degrees

Default avatar.png heavygabriel: I GOT 60%

Default avatar.png Schwase: oh yeah

Default avatar.png Schwase: youre right

Default avatar.png heavygabriel: -273 alone fails!

Default avatar.png heavygabriel: why? because I made a very retarded bit of code

Default avatar.png heavygabriel: that multiplies the already value by -1

Default avatar.png Schwase: @euler coordinates right?

Default avatar.png Schwase: been a bit since i did that puzzle

Default avatar.png heavygabriel: wanna see that code?

eulerscheZahl: yes, defibrilator coords are given in degrees, while the formula requires radians

Default avatar.png heavygabriel: http://chat.codingame.com/pastebin/4feb59fe-1b7a-4bc3-aebd-bf7bf36a0ef5

eulerscheZahl: i only remember this because it's commonly asked on the chat

Default avatar.png heavygabriel: that is cringe code

Default avatar.png Schwase: i got away with it in java i think

eulerscheZahl: sometimes testcases are poorly designed

Default avatar.png Schwase: yeah

Default avatar.png HelloWorld183L: ok i'm using all doubles and i'm failing the 2nd test case, so I'll see if i'm converting properly

Default avatar.png heavygabriel: wow I got a popup that says "are you a pro coder"

Default avatar.png Schwase: im doing rectangle partition and i got 88

Default avatar.png Schwase: with 100 in test cases

Default avatar.png heavygabriel: after doing 60% on a "easy"

eulerscheZahl: i don't remember getting such a popup

Default avatar.png heavygabriel: that's how I translated it

Default avatar.png heavygabriel: might be a tad innacurate

Default avatar.png Schwase: also horserace is disappointing because the only hard test case gives you the horses' powers in descending order

Default avatar.png heavygabriel: and like one is like "no, I am a student programmer"

Default avatar.png heavygabriel: should I click on that?

Default avatar.png Schwase: @euler did you do 1d spreadsheet?

eulerscheZahl: doesn't really matter what you click there heavygabriel

Default avatar.png heavygabriel: ik

eulerscheZahl: yes Schwase

Default avatar.png Schwase: did you use a dependency tree?

Default avatar.png heavygabriel: OMG CODE BATTLE

Default avatar.png heavygabriel: I'LL USE SHIT CODE

Default avatar.png heavygabriel: TO WORKL

eulerscheZahl: i just computed the values one after another. using recursion if necessary

Default avatar.png Schwase: i got like 80% using a recursive method

eulerscheZahl: some languages allow deeper recursion than others

Default avatar.png Schwase: yeah i got stackoverflow repeatedly

Default avatar.png heavygabriel: I got stackoverflow'd because I putted all my if() etc in a for loop

Default avatar.png Schwase: i might try to go reverse by using an indexOf() to go backwards to calls of an already evaluated cell within the spreadsheet

Default avatar.png Schwase: like indexOf("$46")

Default avatar.png heavygabriel: omg the clash of code thing is so fun

Default avatar.png heavygabriel: I just couldn't remember what was an exponent called

Default avatar.png Schwase: power?

Default avatar.png Schwase: you mean like power?

Default avatar.png heavygabriel: oh

Default avatar.png heavygabriel: yeah

Default avatar.png heavygabriel: my bad I'm just like directly translating what it's called in my language to english

Default avatar.png Schwase: what language?

Default avatar.png heavygabriel: french

Default avatar.png Schwase: ah wi

Default avatar.png Schwase: haha

Default avatar.png heavygabriel: wow

Default avatar.png heavygabriel: "complete your profile"

Default avatar.png heavygabriel: "add your company"

Default avatar.png heavygabriel: gg

Default avatar.png Schwase: impressed? yes you must be of course

Default avatar.png heavygabriel: also why is there a 10 sec delay between each messages

Default avatar.png heavygabriel: like cmon

Default avatar.png heavygabriel: OMG THERE'S TYPESCRIPT HERE?

Default avatar.png heavygabriel: nope fuck that

Default avatar.png heavygabriel: wow @ the batman thing

Default avatar.png heavygabriel: double arrays?

Default avatar.png heavygabriel: no thank you

Default avatar.png Schwase: that one isnt too bad

Default avatar.png heavygabriel: I mean TBH I've done like multi chained arrays

Default avatar.png heavygabriel: in TS

Default avatar.png heavygabriel: wait medium difficulty?

Default avatar.png heavygabriel: I spend like 3 hours on easy

struct: In which puzzle?

Default avatar.png heavygabriel: the temperature one

Default avatar.png heavygabriel: and the space thingy

Default avatar.png Schwase: oof

eulerscheZahl: space maze?

Default avatar.png heavygabriel: the descent

Default avatar.png heavygabriel: did like a list thingy and shit and the solution took like 3 lines of code

Default avatar.png Schwase: OOF

eulerscheZahl: i see. there's another space thingy: https://www.codingame.com/training/expert/space-maze

Default avatar.png heavygabriel: was basically if(gay mountain > current mountain) gay mountain=current n shoot it

StuartWFuller: im trying so hard to get back into programming so thought i would give this a go. man does it make me feel stupid

Default avatar.png heavygabriel: it's ok

Default avatar.png Schwase: what language stuart?

Default avatar.png heavygabriel: rule 0 of programming: search n destroy

StuartWFuller: c++

Default avatar.png Schwase: ah

Default avatar.png Schwase: nice

Default avatar.png heavygabriel: google shit

StuartWFuller: I still study at uni but took a year off

Default avatar.png Schwase: keep at it

Default avatar.png heavygabriel: no matter

Default avatar.png heavygabriel: if you're stuck admit it

StuartWFuller: I havent touched it for a year so i need to refresh

Default avatar.png heavygabriel: that's not the way to refresh

Default avatar.png heavygabriel: tbh

Default avatar.png heavygabriel: it's more like a "you know the basics, fuck you" type

StuartWFuller: i just need to get some sort of knowledge back before my final year lol

Default avatar.png heavygabriel: but there's 1 thing you can ask me to do and I'll nail it

Default avatar.png heavygabriel: anything that deals with arrays and lists

Default avatar.png heavygabriel: this is where I program 99% of my stuff

eulerscheZahl: ok, here's my list task: given a double linked list, revert the order in linear time and constant additional memory

Default avatar.png heavygabriel: list.reverse?

Default avatar.png heavygabriel: idk

Default avatar.png heavygabriel: google it

Default avatar.png heavygabriel: by "list god" I basically meant that most of the stuff I've spent researching are lists

eulerscheZahl: sorry to tell you but you didn't nail it

Default avatar.png heavygabriel: and since I'm basically new

Default avatar.png heavygabriel: to programming

Default avatar.png heavygabriel: it's not misleading per se but more like not telling the full story

Default avatar.png heavygabriel: also the description of ascii art

Default avatar.png heavygabriel: "Do you feel you are an artist at heart? Unfortunately you are a programmer"

Default avatar.png heavygabriel: basically me when I'm doing sites

Default avatar.png heavygabriel: legit cannot make any sort of visually pleasing site

Default avatar.png heavygabriel: btw is it just me or are like 99% of puzzles are not very good-looking or looks like an actual game?

eulerscheZahl: i share that weakness with you

eulerscheZahl: puzzles look fine for me. it's not like you want to spend weeks looking at them. they are just to clarify what's going on

eulerscheZahl: and some multiplayer games look really nice IMO

Default avatar.png heavygabriel: TBH I have made a site online to test WebAPIs

wlesavo: euler dll cant have loops by definition? i mean in single pass each elment only encountered once?

Default avatar.png heavygabriel: wait what? MP games?

eulerscheZahl: dll? the dynamically linked library?

wlesavo: doubly linlked list :slight_smile:

eulerscheZahl: oh :D

Default avatar.png heavygabriel: double linkedin list

Default avatar.png heavygabriel: poggers

eulerscheZahl: just a list, each element only once

Default avatar.png heavygabriel: dl? double linkedin

wlesavo: hm, so its probably quite easy to reverse in linear time in two passes

eulerscheZahl: but how do you do it with constant memory overhead then?

eulerscheZahl: there is a way with only 1 pass

eulerscheZahl: and heavygabriel is right: it can be googled

Default avatar.png heavygabriel: as I said before

Default avatar.png heavygabriel: rule 0 of programming: it IS searchable(except if it's like turbo pascal or something)

eulerscheZahl: my first language

eulerscheZahl: turbo pascal 7, with an IDE older than myself

wlesavo: well two is still linear, by ill google the single one

Astrobytes: Other than German ;)

Default avatar.png heavygabriel: stop being old

Default avatar.png heavygabriel: eulerscheZahl are you my dad? you're like 40

wlesavo: eulers first words was program wincrt

eulerscheZahl: 28 to be more accurate

Default avatar.png heavygabriel: ok so you had turbopascal

Default avatar.png heavygabriel: in fucking 1992?

eulerscheZahl: in school. old teacher

Astrobytes: Everyone here is older than you heavygabriel

Default avatar.png heavygabriel: no shit

Astrobytes: Apart from that other guy

Default avatar.png heavygabriel: rule -1(cannot use index below 0, but fuck off) I am younger than all of you

wlesavo: also 28 and also had pascal in school actually :slight_smile:

Astrobytes: In highschool, my computing studies teacher didn't know anything about programming

Default avatar.png heavygabriel: me neither

eulerscheZahl: wlesavo = eulerscheZahl's 2nd account confirmed

Default avatar.png heavygabriel: my compooter teacher(we have a dedicated program for that)

eulerscheZahl: same Astrobytes, corrected my teacher a few times

wlesavo: the question is should they ban main or alt account?

Astrobytes: I'm 37 and the only 'programming' I did in school was in primary school, LOGO on a BBC microcomputer

Astrobytes: eulerscheZahl my one literally didn't even teach any programming

Astrobytes: Hardware only

eulerscheZahl: oh

Astrobytes: Thankfully I was the inquisitive type and explored at home

eulerscheZahl: the year after me did this as "programming" https://www.youtube.com/watch?v=ngndgqTAlwI

eulerscheZahl: sorry for German, just fast-forward to see some action on the screen

Astrobytes: lol, seriously. Logo is better

eulerscheZahl: i have a little experience with SPS programming in Simatic Manager. I guess it's very similar to Logo?

wlesavo: Smitsimatic Manager :open_mouth:

struct: Im 15 so not that hold

struct: old*

eulerscheZahl: not old but a liar

struct: ouch

eulerscheZahl: or you measure time in something else than years

eulerscheZahl: Imperial years or such nonsense

wlesavo: programming age

Astrobytes: eulerscheZahl: https://en.wikipedia.org/wiki/Logo_(programming_language)

struct: Im not sure I revealed my age before hmm

Astrobytes: We used Acornsoft version

Astrobytes: 20-something I reckon struct

eulerscheZahl: oh, i assumed this: https://de.wikipedia.org/wiki/Logo_(SPS) - there isn't even an English version of this article

struct: yeah 20 somthing

wlesavo: even russian version, lol, also assumed it was some kind of programmed calculator

Astrobytes: I wish we were doing stuff like that in school, fairly close in physics but no actual programming

Default avatar.png heavygabriel: I have no idea what you guys are talking about

Default avatar.png heavygabriel: the only school based "programming" language is scratch-like

struct: stockfish 41-49-3 vs komodo in 12' 3 time control

Default avatar.png heavygabriel: wow

Astrobytes: I got warned off pursuing a computer based education by my biology teacher actually, he said "you'll learn all the programming you need for biology at uni"

Default avatar.png heavygabriel: so I google "scratch -like languages" and it gave me scratch alternativess

tomatoes: D?

Default avatar.png heavygabriel: Astrobytes you know what's hard in HS with programming? actually learning programming

eulerscheZahl: the first step is always the hardest

eulerscheZahl: when you have some basic understanding, it gets easier

Astrobytes: ^

eulerscheZahl: and when you know one language, it's easier to learn another one (except Haskell)

Default avatar.png heavygabriel: for me the hardest step is to start the step

Astrobytes: Having a solid grasp of maths helps too, and logical thinking, problem solving

Default avatar.png heavygabriel: so it's a weird paradox where I cannot learn without learninfg

Default avatar.png heavygabriel: basically swirl pool-like thinking

Astrobytes: Apply yourself and stop f'ing about.

Astrobytes: (essentially :P )

Default avatar.png heavygabriel: TL;DR shut the fuck up :D

Default avatar.png heavygabriel: D

Default avatar.png heavygabriel: sD

Default avatar.png heavygabriel: xD

Default avatar.png heavygabriel: iD

Default avatar.png heavygabriel: 1 eyed man smiling

Astrobytes: Focus is important. Don't distract yourself, be target-oriented. Don't spam rubbish.

Default avatar.png heavygabriel: iD

eulerscheZahl: it's much easier to get into coding now than it was when we were at your age. tons of online tutorials

Astrobytes: ^

Default avatar.png heavygabriel: yes that's what I see tbh

Default avatar.png heavygabriel: today instead of going through that 1k pages 1$ per page programming book to see what you want

Astrobytes: I had code in magazines to learn from and sometimes examples on disk. Other than that, a manual.

Default avatar.png heavygabriel: you got stack

Default avatar.png heavygabriel: n shit

Default avatar.png heavygabriel: you don't even need to learn everything about the language

Default avatar.png heavygabriel: you can just copy paste relevant code

Astrobytes: You should understand computer architecture at least at a reasonable level, how programs work in relation to the architecture etc

Default avatar.png heavygabriel: I mean IK what's computer hardware and how the CPU is the thingy that does everything for programming

Default avatar.png heavygabriel: for compilers n stuff

Astrobytes: Learn about memory, how the processor... processes... it'll make life easier even if you never touch a systems language

Astrobytes: Learn about languages and how they work, how they are interpreted or compiled

Default avatar.png heavygabriel: ik about like NOT XOR and NOR

Default avatar.png heavygabriel: logic gate stuff

Astrobytes: Focus on one language to start with, after that, things will begin to click into place

eulerscheZahl: yeah, that's usually where you stop

Astrobytes: But you have to apply yourself.

eulerscheZahl: not going down to transistors and how they work

Astrobytes: That's good fun too

eulerscheZahl: had than in my Bachelor (studied Electrical Engineering)

Default avatar.png heavygabriel: Astrobytes it's hard to focus on 1 language if I'm simutaneously a fucking web developer and a command promptist

Default avatar.png heavygabriel: :P

Default avatar.png heavygabriel: but hey that's why I got 2 screens

Default avatar.png heavygabriel: to web dev n edit code

Default avatar.png heavygabriel: (lol)

Astrobytes: Well choose your tools for web dev and choose your tools for otherwise and stick to them.

eulerscheZahl: 2 screens are really helpful when creating UIs

Default avatar.png heavygabriel: especially in web dev when like you got no god-like programs to make interfaces like VS

Default avatar.png heavygabriel: the closest thing you can get is dreamweaver(shit even VSCODE base has more stuff than that)

Astrobytes: All our EE-based stuff was done in physics classes in highschool, then a little in 'tech studies', but there was nothing really dedicated

Default avatar.png heavygabriel: ee?

Astrobytes: Electrical Engineering, was replying to euler

Default avatar.png heavygabriel: oh

eulerscheZahl: i didn't get the EE either

Astrobytes: ffs

Astrobytes: :D

eulerscheZahl: was thinking of Java EE (enterprise edition)

eulerscheZahl: or evil edition, as thedailywtf tells us

Default avatar.png Schwase: oh i feel so dumb i couldnt get 100 for so long in 1d spreadsheet because i was using substring to eliminate the "$" symbol when it was used as a reference and i did substring(1,2) instead of substring(1) and made a loop :||||||

eulerscheZahl: https://thedailywtf.com/articles/The_Call_of_Codethulhu

Astrobytes: Yeah I know it

Default avatar.png heavygabriel: wow so like a CPU is like the GET http protocol

Default avatar.png heavygabriel: (minus the internet part)

eulerscheZahl: it has a query string?

eulerscheZahl: whatever, i'm off. good night

Default avatar.png Schwase: eulerscheZahl gn

Astrobytes: lol night eulerscheZahl

Default avatar.png Schwase: nice talking to you

Default avatar.png heavygabriel: are there any uses for asynchronous code besides fetching web stuff?

tomatoes: all io

Default avatar.png heavygabriel: oh yeah I forgot about I/O

jacek: and multithreading

Default avatar.png heavygabriel: tbh I should try multithreading when I'll get good with the basics

Default avatar.png heavygabriel: I cannot comprehend algorithms, even less make one

tomatoes: pencil and paper

Default avatar.png heavygabriel: yeah but shouldn't understand the basics first should help?

Astrobytes: It's just a set of instructions to accomplish a task.

Astrobytes: In the simplest terms, think about making a sandwich. Write down all the steps you need to take. Boom. Sandwich algorithm

Default avatar.png heavygabriel: what

Default avatar.png heavygabriel: so a method=algorithm?

Astrobytes: Of course it gets harder than that, and it's a simplification, but it's really just a set of rules to solve a particular problem

Default avatar.png HelloWorld183L: a method can contain an algorithm but I don't think saying method = algorithm is exactly right or captures the full meaning of a method

Astrobytes: You'll see a lot of notation that describes algorithms, that may be confusing at first

Default avatar.png heavygabriel: "set of rules to solve a particular problem" I don'T think I have written one

Default avatar.png HelloWorld183L: more a "set of instructions" than "set of rules"

Astrobytes: Yes, context dependent of course

AhmedMasry: hello

AhmedMasry: how is the site calculate the shortest code it's obviuos that python will always be the lowest =D

Astrobytes: No. Sometimes ruby, or perl, and bash

AhmedMasry: can I win using c++ does it depends on charcters or what ?

jacek: its characters only

jacek: so no handicap for c++

Astrobytes: Yes, characters. Don't try shortest with C++ or any other verbose lang :)

Default avatar.png heavygabriel: send help

AhmedMasry: it's not fair :joy:

Default avatar.png heavygabriel: there are no methods in a c# list that you can use to destroy and insert

Default avatar.png heavygabriel: i should try to optimise a "big" project that I have in C# tbh

struct: It's fair

struct: You can also choose ruby

Default avatar.png heavygabriel: wow

Default avatar.png heavygabriel: nvm it wasn't directed at me

struct: So a guy is playing 4 clashes at once

struct: completes them all

struct: not suspicious

Astrobytes: seems legit

struct: yeah top 3

Astrobytes: How do you know he's doing 3 at once?

struct: Because I left them all

Astrobytes: *4 sorry

struct: and he insta joined the next

struct: And then I checked and he completed all

struct: while he was in the other

struct: All were playing and he still did not submit

Astrobytes: Hmmm

struct: These are not 1 minute clashes btw

Astrobytes: But he's insta-solving and its not a CG bot

Astrobytes: Who is it?

struct: DiL

Astrobytes: Oh yeah, seen him post here

Astrobytes: He might just be copy pasting his solutions

DiL: I join multiple clashes at once to find the ones I like the most

struct: yet you completye all?

struct: makes no sense

DiL: nope, in some I loose

evilnose: lnose

Default avatar.png RocketRidah: of couse you nose. you're evil.

Astrobytes: Oi RocketRidah, always RTFM! Solved right?

Astrobytes: (temperatures puzzle that is)

Default avatar.png RocketRidah: Indeed! I was tired and missed that whole sentence :/

Astrobytes: It happens :)

Astrobytes: Screen breaks ftw

Zenoscave: Did they resub tmeps golf again?

Zenoscave: temps*

Default avatar.png Michelangela: Is there a way to compete using the same programming language? Because the winning criteria is not fair e.g. between Python and C# to judge by code length

Zenoscave: No. But it is a site that is intended to motivate you to learn new languages. so perhaps learning a new language is a better solution

ryantimjohn: Yeah, the best code golfers will have a lot of languages in their back pocket to be like... ruby has a one line, 80 char solution to this

Default avatar.png FunckyFizz: Any of yous worked out how to get your buggy always actually moving towards the next checkpoint rather than skidding arround (i.e. steaking into the skid)?

Default avatar.png FunckyFizz: *stearing

Default avatar.png Schwase: in the podracing game? @ FunckyFizz

LelouchVC2: Learn a new language in order to win shortest mode which requires you to destroy the readability and reliability of your code ;)

LelouchVC2: Sounds like a good way to destroy good programming practices rather than enforce them onto coders learning a new language

Default avatar.png Schwase: goal oriented learning should be oriented towards applicable skills, not how to win code golf

Default avatar.png Schwase: thats all im saying

Hannnn: hows everyone doing

Hannnn: feeling good?

No_one...: yeah

Default avatar.png Schwase: heck yeah

Default avatar.png Schwase: ive gotten like 15% more done of easy today lol

Default avatar.png Schwase: great fourth of july in my book

Default avatar.png Schwase: 39% so far

No_one...: oh yeah, happy 4th of july everyone

Default avatar.png Schwase: yeah weird one for sure

LelouchVC2: Where Black Lives matter

LelouchVC2: What a strange concept

Default avatar.png Schwase: sarcasm im hoping?

LelouchVC2: The world may never know

Default avatar.png Schwase: lol ok

Default avatar.png Schwase: yeah imma avoid that one tbh

Default avatar.png Schwase: just here to do some coding :\

LelouchVC2: lol

Default avatar.png Schwase: RESPECT EARNED

LelouchVC2: We can joke about 9/11, but too soon to joke about black lives

Default avatar.png Schwase: um

Default avatar.png Schwase: i did not ok 9/11 jokes...

LelouchVC2: My bad, we can joke about being gay

Default avatar.png Schwase: thats just PLANE out wrong

LelouchVC2: plain*

Default avatar.png Schwase: r/woosh

LelouchVC2: Reddit sold out an underage teen to CNN who then wrote a page about him basically blackingmailing

LelouchVC2: After the kid made a meme about trump beating up CNN

LelouchVC2: r/Right-Wings-Fly

Default avatar.png Schwase: bro you missed a joke with a wingspan 290ft wide. im not gonna entertain you anymore sorry my guy. good luck with that

LelouchVC2: lmao!

Default avatar.png Schwase: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.base/java.lang.String.substring on line 1841 at Solution.main on line 37

Default avatar.png Schwase: while(B.indexOf("f")!=-1){

                   B=B.substring(0,B.indexOf("f"))+"..."+B.substring(B.indexOf("f")+3);
                   n++;
               }

Default avatar.png Schwase: line 37 is the B=... statement

Default avatar.png Schwase: idek how this is possible

tomatoes: f is last or before last

Default avatar.png Schwase: i figured it out now

Default avatar.png Schwase: and yes

Default avatar.png Schwase: youre correct

Default avatar.png Schwase: i made a catch for last

Default avatar.png Schwase: but didnt for before last

Default avatar.png Schwase: because i didnt compensate for the length 3 segment

Default avatar.png Schwase: thanks still