« first day (1982 days earlier)      last day (2861 days later) » 

10:00 PM
so that would just prepend the line self.Age = Age to init
 
@Maltysen yeah, pretty much
btw to other voters: pls tell me
 
@Downgoat my "other" vote is for no implicit constructor
implicit assumptions are evil
like Regex
 
;_; ok
wait no
 
@Downgoat chicken food
 
@Quill it's not an assumtion. the user is explicitly telling cheddar to prepend self.foo = foo
@Quill wat
 
10:02 PM
@Downgoat i'm not sure about the symbol, but it has to work properly with things like Number: Age. so the single symbols aren't bad, idk
 
0
Q: Lay Me Some Bricks With Mortar

Drew ChristensenJim wants a program to show him how to lay bricks in a pattern that he can look at, because he doesn't know anything about masonry. (Jim isn't actually real, this is a hypothetical situation.) Rules Jim says that the program must take in arguments before run-time. These arguments are, in order...

 
@Downgoat so you're assigning prototypes?
 
@Maltysen Number: @Age perhaps
@Quill lemme make an exmaple
class A(@Age, @Name) {
     // blah
}

is equal to:

class A(Age, Name) {
    init {
        self.Age = Age;
        self.Name = Name;
    }
    // blah
}
 
@Downgoat wait, i thought it would be in init
 
@Maltysen oh
 
10:05 PM
class A() {
     init(@Age, @Name) {
        blah
    }
}
 
@Downgoat No, sorry. What are you benchmarking?
 
6 mins ago, by Maltysen
like class Animal(init {<Name>, <Age>, normal_param} {})
class Animal(init {<Name>, <Age>, normal_param} {})
wat
 
@Downgoat whoops
 
@Quill I was planning on adding benchmarks to cheddar so I know if stuff is slow as sh*t but I can't find something that plays nicely with istanbul + mocha
 
@Downgoat oh, so kinda sorta maybe like the constructor?
 
10:06 PM
@Downgoat meant:
1 min ago, by Maltysen
class A() {
     init(@Age, @Name) {
        blah
    }
}
 
wat ew no
wait
then what is the A()'s () meaning?
 
@Maltysen That doesn't really work with protected fields
 
@Downgoat oh good point, you can take em out
or inheritance
liek normally class A {...}
and then class B(A) {...}
 
Maybe like:
class A(Age, Name) {
    @Age
    @Name
}
 
@Downgoat but all this still doesn't solve the problem of what happens if someone defines and init on top of that
that's what i was trying to do by moving the implicit stuff into the init
 
10:08 PM
@quartata .... what?
 
@Maltysen then init overrides
the reason I don't want it to be part of init is a lot of times you hvae a class that looks like:
class Animal {
    init(age, name) {
        this.age = age
        this.name = name
    }
}
I'm trying to remove the redundancy of init.
 
@Downgoat which is what init(@age, @name) is supposed to solve
 
halp is smoke coming out of oven when i open it bad
@Maltysen so perhaps just:
class Animal {
    init (@age, @name)
    // blah
}
or even:
 
@Downgoat sounds good
it really emphaizes the point that class A is just a scope
 
O_O i put cheese in my oven and it's like vaporized... Just gone ;_;
 
10:15 PM
...I'm confused. What is "oven" a metaphor for here?
 
@Downgoat i'm curoius, how you doing inheritance?
 
@Downgoat why did you put cheese in oven?
@El'endiaStarman I think it might actually be an oven. And cheese.
 
@EᴀsᴛᴇʀʟʏIʀᴋ (I thought so too, but the chance to make a witty comment presented itself, and I took it...)
 
I've got a few pounds of cheese going in the oven in the morning.
 
@El'endiaStarman ..... and lel
@Geobits good for you
 
10:24 PM
@Maltysen idk
 
It's covering noodles :D
 
@El'endiaStarman like the thing you preheat and then put things in and those things come out cooked
@EᴀsᴛᴇʀʟʏIʀᴋ it fell
 
@Downgoat A deep fryer?
 
off of what?
 
10:25 PM
@Geobits is deep frying similar to recursively frying?
 
@Geobits no
 
@Quill If you want it burnt, yes.
 
That type of oven
 
@Downgoat i see two ovens, which one is it?
 
Did it fall out of the top one into the bottom one? o_O
 
10:28 PM
@Downgoat 10/10 on tutorial: docs.cheddar.vihan.org/scopes_&_classes.html very halpful
 
Can't figure out any other way it could fall into that.
 
@flawr: You may or may not like this: imgur.com/gallery/bKgC4rG
 
@El'endiaStarman )= poor guy
 
Yeah. :(
 
 
10:33 PM
thats a...
 
a what??
 
@flawr Real-life Captain Falcon? Falcon PAWNCH!
 
bioe
*no
the green one was Falcon Hulk
 
10:35 PM
my eyes are throwing an error
2
 
@Maltysen top one
 
hey @Downgoat, you should write a blog post on using Map as an Enum
 
@Maltysen thx
@Quill i kinda covered that in my symbols post i think.
 
The alternative is this:
class Result extends Enum {}
Result.initEnum(['ACCEPTED', 'REJECTED']);
 
10:42 PM
@flawr ._.
 
@flawr they ain't know nothing
my house is the most evil of all, and it looks completely normal, hiding in plain sight
 
11:01 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I was trying to play Goat Simulator but it's throwing a segmentation fault (segfault)
I gave up and posted on the forums
 
wtf is goat simulator though?
@quartata ik what segfault is.
 
@EᴀsᴛᴇʀʟʏIʀᴋ have you tried googling it?
 
@EᴀsᴛᴇʀʟʏIʀᴋ What happens when you try to code in C.
 
@Quill yes
@El'endiaStarman lel
@Quill 0/10 not very informative
 
@El'endiaStarman basically
@EᴀsᴛᴇʀʟʏIʀᴋ It's a game. Try Googling it
 
11:04 PM
@El'endiaStarman s/try to code/fail to handle memory allocation properly/
 
Any thoughts on this? I'm gonna post it fairly soon
1
A: Sandbox for Proposed Challenges

Dr Green Eggs and Iron ManWhere should I put my mirror? code-golf string palindrome This is a mirror: |. I just found out that you can stick a mirror in the middle of a string if the string can be mirrored on itself! For example, the string abccba. If you cut it in half the two halves are mirror images of each other: ...

 
C isn't bad, but it's like playing digital russian roulette with a glock
3
 
It's kinda hilarious how Coffee Stain's good games (i.e Sanctum and Sanctum 2) have made far less than the joke 0-effort game
Well that's a little unfair. It wasn't 0 effort. But it's definitely a joke
 
@quartata Sanctum 2 is a fantastic game.
 
The same thing applies in most forms of media. The quality productions are usually built with funds from shitty, clickbaity work
 
11:14 PM
@EᴀsᴛᴇʀʟʏIʀᴋ ಠ_ಠ
@DrGreenEggsandIronMan brb making cheddar builtin for this
@flawr O_O
 
@Downgoat BRB, posting it before you can
 
;_; y u do dis
@DrGreenEggsandIronMan i have qauesitln about the challenge before you post it
 
11:30 PM
TIL your own videos can get recommended to you on youtube ._.
 
"Hey, you should watch this next!" "Dude, I made it."
 
Hello @BaldBantha
 
meanwhile
?
0
1?<
?
0
^ that's a xor gate
 
wat
 
11:35 PM
It will make sense once (and if...) I make the challenge
 
@flawr no, i was wondering how that is xor gate (i.e. explanation)
 
@Downgoat ... And?
Oh, you commented. Nvmd
 
@DrGreenEggsandIronMan no i have another quetsion
 
@DrGreenEggsandIronMan nvm, i didn't actually have questions. i was just trying to make you wait posting that question until I add STDIN to cheddar >_>
 
11:46 PM
@Downgoat make a binary tree builtin
 
like a class? idk how that would work brb googling
 
Didn't we once have a challenge with a JS controller that ran directly as snippet?
 
112
Q: Red vs. Blue - Pixel Team Battlebots

Helka HombaThis contest is officially over. The Blue Team won! I autoran two sets of 50 battles and amazingly, Blue won all 100 of them. Looking at the stats, it is clear that the cooperative entries of PhiNotPi and Sp3000 were the real heroes. Great job you two! In fact, if you disqualify every other memb...

 
@HelkaHomba +1 for making controller in a really good language
 
+0 for not having a choice whatsoever
 
11:51 PM
Do you also have a more readable version of the code?
 
random question: should cheddar have a ispalindrome built in?
 
I'm planning another koth challenge, and I'd love to make it running in the browser
 
@Downgoat no
 
pls halp i made infinite loop in cheddar and ^C is not working >_>
 
You want Control-C, not Caret-C >_>
 
11:53 PM
killall -9 node
 
@quartata why -9?
 
9 is SIGKILL
 
ah ok nvm
ono i forgot to do foo[bar] in cheddar >_> ono
;_;
nvm found workaround:
@"a.ord(b)
 

« first day (1982 days earlier)      last day (2861 days later) »