last day (17 days later) » 

21:19
7
A: Print the character names

David ArenburgR, 54 bytes library(Unicode) cat(u_char_name(utf8ToInt(x)),sep="\n") Usage cat(paste0(u_char_name(utf8ToInt("Hello, World!")), "\n")) LATIN CAPITAL LETTER H LATIN SMALL LETTER E LATIN SMALL LETTER L LATIN SMALL LETTER L LATIN SMALL LETTER O COMMA SPACE LATIN CAPITAL LETTER W LATIN SMALL LETTE...

@BetaDecay thanks :)
@edc65 that easy to fix, I just thought of it as a bonus.
@edc65 fixed it.
+1 and welcome to PPCG. Depending on the question, kindly consider adding function(x) or a function reading from stdin like scan or readLines, otherwise this is stretching the rules a bit.
function(x)cat(Unicode::u_char_name(utf8ToInt(x)),sep="\n") would be an acceptable solution for example.
@flodel I already have that... You are right regarding reading from connection though, need to add that too.
Well, you don't have function(x) in your byte count... See this for example: codegolf.stackexchange.com/a/55702/5163. Or look at other people's R answers, you'll get the idea (and learn some of the tricks too :-)
@flodel where is it written that this should be a function? Most of the answers here aren't wrapped into functions neither
21:20
hi David
hi
awk and Python answers are functions?
I also dont see this requirement in the question
but you are right regarding the connection part
The question asks to write a program. Writing a function is an acceptable form of answer when you are asked to write a program.
Another possibility is to write something that will run through Rscript, where you need to read your inputs from stdin.
hmmm I guess you are right
The question hinted there as well with "Input should come from a file or from user input, not just a string in code."
yes, that is the cinnection part, I agree
though me and many others also used packages
doesnt look like many follow the rules here
21:24
well, let's look
let me work it out anyway
(I was not talking about using packages though)
The java guy has "152 if read from command line".
The python guy has "input()" which reads from stdin I assume
yes
i already agreed like 10 times :)
thought the Python answer isn't a function
It is a python script. It reads from stdin, that's an acceptable solution in my book.
You said "doesnt look like many follow the rules here", that's why I was going through the answers.
I tend to disagree.
but the rules were also not to use external package
you only talking regarding the stdin
you also said that you should write a program
the python answer follows 1 out of 3 rules
it reads from stdin
but its not wrapped into a function and it imports an external package
in order for it to be a function it should define def (like function in R)
21:31
agree with you about external package. So yes, that's a violation.
But it is a script, a form of program. No violation here.
so gow should be my answer be written in order to it be a script?
Your solution is a script as well, a form of program. But it uses x as input which is undefined so it won't run properly. So either you keep your answer as a script but you need to replace x with scan or something like that to read the input from stdin. Or you can choose to turn your script into a function, the other form of acceptable answer.
yeah, you added a nice alternative
My solution was a script:
write(gsub(".","*",scan(,"")),"")
Your solution, as a function would be
function(x)cat(gsub(" +|$","\n",gsub("\\S","*",x)))
See how what you chooses between script or function can make a difference on the word count.
or just to use scan like you did
not sure if implicaple in that case
but Im editing the other answer with scan
so btw, it seems like you left SO in favor of this site, why is that if I may ask?
21:46
Well, I felt I was spending way too much time on SO. So I set a goal of 1,000 answers and done. I don't spend nearly as much time on codegolf, just once in a while.
yes, that makes sense
i spend way too much time on SO
added scan btw
this is a nice site but everyone code here using this strange Pyth language which practically unbeatable in byte count
Yes, there are quite a few languages like it... Doesn't take credit away from these guys, they come up with pretty creative answers. But I feel your pain. I've answers 40+ questions and only two were accepted.
One was thanks to an R package, the other because it was hard enough that only a handful of people answered.
its not really a pain :)
But otherwise its fun.
agree.
actually i had a nice start here
21:57
yep.
got lots of credit which I dont deserve probably
anyway, thanks for the guidance
time for me to go asleep
k, see you.
btw, you and me are competing for the top 20 users all time on SO :)

  last day (17 days later) »