« first day (1888 days earlier)      last day (2956 days later) » 

12:01 AM
@epicTCK That may as well be :P
 
posted on March 30, 2016 by CrazyPython

In the badges section, exactly zero people have gotten the "Tenacious" badge (Zero score accepted answers: more than 5 and 20% of total) or the "Unsung Hero" badge (Zero score accepted answers: more than 10 and 25% of total). This means that our community loves to fertilize itself by giving out up votes and that we do it more often than other communities. yay for us

 
@AlexA. assuming the silence was due to eveyone being distracted....
 
@AshwinGupta you can help me make Cheddar if you know Java/JavaScript
 
In the badges section, exactly zero people have gotten the "Tenacious" badge (Zero score accepted answers: more than 5 and 20% of total) or the "Unsung Hero" badge (Zero score accepted answers: more than 10 and 25% of total).
 
not sure how darude sandstorm could be very distracting but....
 
12:02 AM
@Downgoat What's Cheddar? Is it this new platform that people use now?
 
Hey folks, any more seasoned programmers around?
 
That's a matter of opinion
 
Silence? When was there silence?
 
@CrazyPython really tasty cheese
 
@Quill Javascript: make cheese in your browser!
 
12:03 AM
Seasoned: with lots of curry on top
 
@BernardMeurer Seasoned but on mobile and habitually lazy
 
No, jk, I meant as anyone who has somewhat of a backgroud with working in the field/in teams
 
@BernardMeurer I'd rather basil
 
What's your question
 
@BernardMeurer Most of PPCG's higher rep users are adults with programming jobs
that said, I have one of those too
 
12:05 AM
@Quill ... >_>
 
@Doorknob You're a special one <3
 
In the badges section, exactly zero people have gotten the "Tenacious" badge (Zero score accepted answers: more than 5 and 20% of total) or the "Unsung Hero" badge (Zero score accepted answers: more than 10 and 25% of total).
 
@Downgoat btw had an Idea for a golfing (or regular) languege: x+y; would set x to x+y, but z=x+y would not. Basically, an undefined statement will not be undefined, but set as the value of the statement's first variable argument...
 
I'll just go to it then; I've worked on a couple of projects in which I got known around as "stalin" because I was very harsh with following the contribution guidelines (not pushing to master yadda yadda) and with general code styling and stuff
 
probobly would make lots of problems, but its an idea
 
12:06 AM
Of the moderators only Alex has a programming job
 
if anyone wants a quick lol, I just ran sudo rm -r etc while in the / directory.
 
Now I've just recently joined a new project where I'm just being myself and, well, taking care of that; but there's this guy who thinks that's all rubbish and just won't comply
 
@quartata Whoa
 
and I really don't want to have to go Stalin and force it
How to deal with it?
 
@BernardMeurer try Programmers chat
 
12:07 AM
Thanks @Doorknob!
 
@CrazyPython It's a programming language I'm making
 
Code Golf is probably the worst place to ask about good code style :P
 
also workplace.se
 
@Liam That was a VM, I'm assuming, right?
 
@CrazyPython You said that a few minutes ago
 
12:08 AM
@Doorknob I like to consult the devils themselves :p
 
@AlexA. oh good, I thought I was imagining things... >_<
 
@CrazyPython nope. And I didn't have a backup
 
@AlexA. no response, sorry if it seems like spam
 
@Dennis +1 for freehand circle... and yes I am stalking chat msges that I missed out on
 
@BernardMeurer what do you mean by "being yourself", are you changing code styles, naming structure, project styles etc
 
12:09 AM
@Quill Being an schmuck and bending people to my will while making their lives miserable :)
 
...renaming all index variables to "Bernard"
2
 
No, jk, I mean as in just doing my thing and trying to put order to the current code chaos the project is
 
@Shog9 for (Bernard in theStore) { beer.get("me", 1, Bernard) }
 
That's a Best Practice right there.
though in seriousness, I'm pretty sure there's a TWP question about this exact thing somewhere
 
there's probably 15, but you can't really close them as duplicates
 
12:12 AM
2 days ago, by Downgoat
@QPaysTaxes Welcome to Programming Puzzles and Code Golf! This website is tagged so you need to make your code as short as possible, you can start by removing all that horrible whitespace and making all variable named 1-char long.
 
105
Q: How do I tell my colleagues that the codebase they've built is a total mess and their practices are ancient?

user1807The situation For a few months, I've been working with a new team in a new company. The company offers some web services and the team's role is to develop and maintain those services. Problem #1: the team is not a team, it is a set of individuals. They do not collaborate with each other. Everyo...

 
@Shog9 Thanks!
 
@Downgoat haha
 
I have to be gentle, last time I tried to do that it ended up being an outright war of people who wanted to follow PEP8 and those who didn't
and I'm not even mentioning PEP257
 
@Shog9 I should read this. I'm the only programmer in a group of non-programmers who built the entire codebase.
 
12:14 AM
Obviously I won because using tabs is for twisted people
3
 
@AlexA. oh, that's... fun...
 
@BernardMeurer +1, wait, no, -1
 
@Downgoat You're a tabber?
::holds knife::
 
@BernardMeurer See, I knew I liked you. Spaces forever.
 
I'm a spacer, but tabs > spaces
@BernardMeurer O_O
 
12:15 AM
@AlexA. :D
Tabs are just as bad as switching semicolons for that greek character that looks the same but doesn't work
 
@Shog9 Also there's no version control and so far they've rejected my attempts to get the group to use it.
 
@Downgoat that's clearly wrong; space is 32 while tab is only 9.
5
 
@AlexA. version control?!?! >:U I should have control over version numbers!
@Shog9 but here, we are fond of custom encodings, tabs is probably > spaces
 
@AlexA. I had good luck, once upon a time, setting folks up with a script that'd watch for changes and periodically sync with version control. They "deployed" by copying their stuff to a special folder and could pretty much ignore the existence of anything else if they wanted to.
 
@AlexA. I had a similar thing before my newer colleagues arrived, I just used version control on a GitLab repo and submitted my code from the release branch
 
12:19 AM
@Shog9 I like that idea but I already know that they'd tell me it doesn't suit their workflow (because it's something different). It's worth a try though. Thanks!
 
Don't get me wrong, it was extremely messy because they'd just drop whatever in there (including file_1, copy of file_1, file.bak, file.back3...) but it meant I could always rely on having their stuff along with a clear chronology of changes if I needed it.
 
Everyone edits the same files, all in production, with no tests
 
heh...
Well, that's easy then. Just sync production.
 
I once proposed we physically punished those who force push to master, I didn't have much support though
 
Eventually, you quietly change prod to staging, set up continuous integration, and detail the changes in a long email that no one will read.
 
12:22 AM
@BernardMeurer what is wrong with force pushing to master?
 
@Downgoat What's wrong with murder?
 
@BernardMeurer it's not legal and is morally incorrect?
 
HA
There
1. It's not legal (or it shouldn't be at least)
2. It's morally incorrect
Force pushing to master is literally the version control analogue of sexual abuse
 
@BernardMeurer I have forced pushed to master and I'm not in jail?
 
Awesome, now I have a summer project :)
 
12:26 AM
@BernardMeurer wait what ._.
should I have switch statements in Cheddar?
 
Yes
But make them good. The way R does switch is garbage.
 
Source Control Inquisition
 
:/ making a language just keeps getting harder and harder...
 
that should be a thing
 
Nobody expects the
 
12:31 AM
@AlexA. how do I make the good?
 
implicit break if no return/continue maybe?
 
34
Q: How to use the switch statement in R functions?

SimonI would like to use for my function in R the statement switch() to trigger different computation according to the value of the function's argument. For instance, in Matlab you can do that by writing switch(AA) case '1' ... case '2' ... case '3' ... end I found this...

oh wow @AlexA. was right
 
@Downgoat var the = good :: sigh ::
 
Ok, so should I have the syntax something like:
 
@Quill Yeah. It's bad.
 
12:33 AM
that will mean instead of case 0: case 1: to make it work for 0 and 1 you could have case 0, 1:
 
switch variable {
    case 2 {
       print "variable is 2"
    }
}
 
@Downgoat No
 
@Downgoat I like this
 
@NathanMerrill I woudl aggree byt e oke like switch statements
:28638329 ? D:
 
^ Why not that?
 
12:34 AM
@Shog9 That's an intriguing idea. Perhaps I'll give it a shot and see what happens.
 
switch variable {
    case 2:
       print "variable is 2";
}
 
@Downgoat switch statements can always be done in a better way
 
@AlexA. or get a job where they use version control
 
if you are doing string parsing, a Map<String, Function> is better
 
Do you prefer case statements with : or {?
 
12:36 AM
Wait, this is a brace language, use {}
Even though most don't
 
okay
+1
braces are the best
 
@Quill I like to think I'm a fairly capable guy but so far no company seems to agree enough to want me. ._.
 
Don't use braces for properties though
 
@MarsUltor what do you mean by that?
 
It'll probably be annoying for properties: foo := {a {1}, b {2}}
 
12:37 AM
@MarsUltor oh, no, I wouldn't do that
@MarsUltor is that supposed to be an object?
 
@Downgoat Yes
 
I think this challenge has an interesting idea. Would it work better if the submissions had to compile/run error free? codegolf.stackexchange.com/questions/75899/…
 
Probably the only place not to use braces
 
should I make object syntax like JSON or like PHP?
 
@Downgoat what's the goal of the language?
 
12:39 AM
to be a high-level dynamic language
that has nice syntax
 
@Downgoat JSON
 
ok
 
isn't that like the goal of every language?
 
@NathanMerrill C isn't high-level. Or dynamic.
 
C is pretty high level
 
12:40 AM
in its day, it was
 
1 min ago, by Downgoat
that has nice syntax
this apparently wasn't Python's goal...
 
Python's goal was to not suck I believe
and it somewhat achieved that
 
not every goal is achieved...
 
it has a very well defined goal: python.org/dev/peps/pep-0020
 
It's basically Perl but without having having the requirement for a beard to code in
 
12:42 AM
class initializer should be like: ClassName(args) {property: value} IMO
 
@MarsUltor assignment is := in Cheddar. Should I use : in classes?
 
Hmm
I was thinking more like JSON syntax
but := works as well
 
you could make all assignment :
would that even work?
 
@NathanMerrill oh, I would never do that
 
I don't think I've ever seen code that does that
 
12:44 AM
@NathanMerrill you could just change the assignment operator in the config, but you shouldn't
 
what will = be used for?
 
@AlexA. What language/s do you do for work?
 
that's what you should do! Don't define a syntax
 
@MarsUltor equality checking
 
the syntax is given as input
 
12:45 AM
@MarsUltor I think assignment is used less than equality checking
 
@Quill Currently SAS but SAS is clunky, ancient garbage and I don't want to work with it anymore.
 
is it? I can still change it now...
 
== is instance checking then?
 
== has no defined use
 
You may want an instance checking operator though
 
12:46 AM
@Downgoat Make it string concatenation as a big middle finger to the programming community.
 
@MarsUltor I'll make that an infix keyword
@AlexA. PHP has already done that
 
@Downgoat Like Python's is?
 
@ChrisJester-Young yeah
 
oh wait my bad, I mean foo has the same memory address as bar
 
@MarsUltor I will think about that, new operators will be hopefully really easy to add
 
12:47 AM
You know, somebody should make an easy to use syntax tree parser
but not attached to any language
therefore, you can simply write an interpreter that generates a syntax tree, and it'll make the rest of the language for you
 
@AlexA. so what's after that for you? Are you gonna go for a data science role with R? And weren't you learning Python as well?
 
@NathanMerrill like lex&yacc/bison?
 
googling...
 
@Quill I think I have a pretty advanced knowledge of R and I already have a background in statistics. (Undergraduate minor and I'm currently doing a master's in applied statistics.) "Data science," though a term I've not yet come to accept, is where I'd like to be.
 
@NathanMerrill That's ANTLR
 
12:50 AM
no, antlr simply recognizes grammars
 
@NathanMerrill Sounds like a middle school English teacher
 
@NathanMerrill And parses syntax
 
this takes a tree of "Class with member X, function Y", and does all of the compiling
 
I'm not talking about the String to Syntax tree step, I'm talking the Syntax tree to asm step
 
12:52 AM
@NathanMerrill The easiest way is probably to use an ANTLR-generated tree
 
@Downgoat BTW, test.js is broken
 
reallly? checking
 
@Quill Hah. I just don't really see how it's distinct from statistics, since the same tools of statistical inference and analysis apply, yet it seems to be surging in popularity without really mentioning stats anywhere.
 
@MarsUltor oh, I don't think I've built yet
 
12:53 AM
@AlexA. terminology is important, perhaps
on a side note, do you have your moderator here on your resume?
 
@Quill What do you mean?
 
@Downgoat Oh wait nvm
 
@Quill Actually no
 
yeah, Lex/Yacc is not what I'm looking for
 
@MarsUltor I also haven't finished the property.es6, so it might now work
 
12:54 AM
@AlexA. Perhaps "stats" is a boring term for prospective employees and employers, "data scientist" sounds more futuristic and cooler
 
@Quill Oh, I see. Yeah, I think you're right.
 
PPCG is today's featured site on the Stack Exchange home page
 
@Quill I'm not surprised, we are pretty great ( Í¡° ͜ʖ Í¡°)
 
@Downgoat that's true :)
 
Fun fact: The Ubykh language has 84 distinct consonants and... 2 vowels.
3
 
1:04 AM
Are gotos inherently bad, or can I use them in certain cases?
 
@Downgoat gotos are bad
 
are you calling me bad, gotos bad, or both?
 
@Downgoat I've only ever used gotos in Blitz 2D/3D when it was near impossible to do what I wanted any other way.
 
well I'm using JavaScript so no matter what I do, it's bad...
 
You don't have to make it worse...
 
1:07 AM
@Doorknob Is it related to Welsh? :P
 
haha
 
Gotos are never needed
if they are, its the fault of the language design
 
Oh, I was about to say I use them often in SAS macros
But that's the language's fault
So I feel better about it
 
Oh, also, an alternate pronunciation of its name (spoken in the same language) has the amazing /ʙ̥/ bilabial trill sound.
 
0
Q: Child Phenotypes

NuffsaidM8The Challenge Everybody loves genetics, right? In this challenge, you will be given the genotypes of two parents. You must find each possible genotype of a child produced by the parents. You must account for dominant and recessive alleles as well as incomplete dominance and codominance. An exam...

 
1:08 AM
> Everybody loves genetics, right?
 
does anyone know why this code isn't working:
 
get rekt, Raymond
 
seems to be an error at line 49
nevermind, I forgot a parenthesis
 
Why is it called "The Nineteenth Byte" anyways?
 
31
A: Let's think of a creative name for our chatroom

dmckeeWell, the traditional generic name for the country club bar is "the nineteenth hole", which suggests The Nineteenth Byte or something like that.

 
1:10 AM
ninja'd
 
31
A: Let's think of a creative name for our chatroom

dmckeeWell, the traditional generic name for the country club bar is "the nineteenth hole", which suggests The Nineteenth Byte or something like that.

ninja'd
 
@Doorknob Thanks.
 
\o/ my property parser works!!!!!!
oh, wait, there's no output
 
@Downgoat Huh?
 
Shit
 
1:12 AM
What "property parser"?
 
@CrazyPython I'm making a programming language called Cheddar so I'm trying to make a parser to parse the property names, e.g. foo.bar.baz("a", 24)
 
how do you do a single quote match in regex? my regexfu needs training
 
@Downgoat I do know java!
 
@Quill '((?=\\*)\\.|.)*?'
 
@Quill You mean a regex that matches a single quote?
 
1:14 AM
@Downgoat I wanna help you make Cheddar! (What's cheddar?)
 
@AlexA. one of these '
 
@Quill Then your regex is '
 
if you know deterministic finite automata, the code's logic should come easily to you
 
@Downgoat Have you tried nltk or another natural language lib? That way you can parse it with strict grammar definitions instead of just regex.
 
If you only need to match one particular character, the character alone suffices as a regex since it will only match that character
 
1:15 AM
@Downgoat seems cool, I'd love to help but I probably won't be very useful since I don't know very advanced things. I bet I'd learn alot thought trying to help. If you give me some easy jobs I could do stuff
 
@CrazyPython I'm not using regex?
 
What are you using then?
 
@Downgoat idk what that is but I'll read up on it.
 
@AlexA. -1 can't match *
 
In theory of computation, a branch of theoretical computer science, a deterministic finite automaton (DFA)—also known as deterministic finite accepter (DFA) and deterministic finite state machine—is a finite state machine that accepts/rejects finite strings of symbols and only produces a unique computation (or run) of the automaton for each input string. 'Deterministic' refers to the uniqueness of the computation. In search of simplest models to capture the finite state machines, McCulloch and Pitts were among the first researchers to introduce a concept similar to finite automaton in 1943. The...
 
1:16 AM
found that thanks ;D.
 
I mean, to parse the language
 
@CrazyPython oh, lots of code.
 
Yeah a natural language thing would be useful
thats how they did python
 
python: There should be one-- and preferably only one --obvious way to do it. so basically the opposite of TMTOWTDI perl
 
@epicTCK TMTOWTDI?
 
1:17 AM
theres more than one way to do it
 
There's more than one way to do it.
 
Mar 17 at 3:36, by Vihan
nevermind I googled it
 
@Downgoat So in other words its just a series of steps started by an input character sequence?
 
@Dennis Hmph. I have been ninja'd
maybe b/c my das keyboard is taken apart right now I have to use my laptop keyboard... D:
 
How many of you guys have voted in the primary?
 
1:19 AM
@AshwinGupta yeah, it's basically defining the syntax as "sentences". Based on what token is occurred, the interpreter goes to a different state and parses from there.
 
@CrazyPython Over 300.
 
@CrazyPython Probably every one who's in here
 
@Downgoat okay I sort of get it, so what do you need it for?
 
@Chris _Jester I mean directly, you, not the community.
 
@AshwinGupta It's basically how the lexer is structured, /tok/ contains the lexer / tokenizer classes. /literals/ contains the states and /parser/ contains the parsers
 
@Downgoat got you.
 
@NathanMerrill regex = BAD for making a parser
regex is not recursive
recursion is important
_Tokens: [Object]
 
use retina to make your parser lol
 
JavaScript is great for debugging...
they might as well say _Tokens: [Some Value]
 
@Downgoat I'd use a grammar specification, just like python did
 
1:22 AM
@Downgoat that's just for their switch statements
 
This es6 lang seems alot more like Java then JS.
 
@NathanMerrill still
 
I'm getting a steady stream of rep from this (codegolf.stackexchange.com/questions/76604/…) question despite about 8 down votes and a blip of -2 for a while
 
regex in switch sounds like a good idea
 
@CrazyPython eh, I'll write up a formal grammar spec later
 
1:23 AM
but look at that syntax
all caps for keywords
 
@Downgoat No, I mean grammar for actually parsing the code nltk.org
 
@Downgoat where can I get a compiler for es6?
 
@CrazyPython Oh, I'm not planning to do that.
@AshwinGupta use babel-node
 
@Downgoat and just to be clear, the language is java or js?
 
JS, but pretty similar to Java
 
1:26 AM
mkay
Alright downgoat, what should I work on?
 
if you can make an object literal parser that would be great.
use:
import CheddarLiteral from './literal';
import * as CheddarError from '../consts/err';
export default class <Class Name> {
    exec() {
        // this instanceof CheddarLiteral === true
    }
}
you may have to dig through the code to figure out how CheddarLiteral works though
 
/\w'|\w/ig.exec`R'R`
why won't this match both in the string?
 
@Downgoat okay I'll try when I can. I'm honestly probably useless though.
 
@Quill exec only does single match
use string.match(regex)
 
@Downgoat what type of literals will you accept for objects?
 
1:31 AM
thanks
what kind of single match returns an array...
 
@Quill JavaScript single match
 
@Quill Presumably ones with multiple capture groups, but that depends on what language you're using. (I'm thinking mostly Perl and Ruby.)
 
@Downgoat What's broken?
 
In Cheddar? function calls, they seem to enter an infinite loop. I'm debugging right now
 
0
Q: Change the stackexhange subdomain to "ppcg.stackexchange.com" and let the original redirect

CrazyPythonA large amount (20-60%) of the questions here are not code golf questions. It might also confuse new users.

 
1:42 AM
user image
9
Such nice, round numbers...
 
Congratulations on reaching 70k @Dennis! \o/ \o/
16
 
@Dennis Congrats on 70K!!!
ninja'd
 
Thanks! :)
 
also, congrats on 1K answers, that's a lot of people outgolfed
 
hahaha
 
1:49 AM
0
Q: Final Fantasy XV UNCOVERED!

kirbyfan64sosSince I am INSANELY hyped for the Final Fantasy XV Uncovered event, I want you to write me a program to tell me when it is!!! The input Your take input in the form of HH:MM XDT, where HH is a number in the range 1-12, MM is a number between 0-60, and XDT is a time zone, with X being one of E (e...

 
oh no 108 bytes, well, that didn't turn out how I though
 
@Doorknob Or .
 

« first day (1888 days earlier)      last day (2956 days later) »