Given a non-negative integer n, output the nth Euler number (OEIS A122045).
All odd-indexed Euler numbers are 0. The even-indexed Euler numbers can be computed with the following formula (i refers to the imaginary unit):
Rules
n will be a non-negative integer such that the nth Euler number ...
@MistahFiggins The current room owners can be viewed here. They consist of the site moderators, Christopher Jester-Young (one of the pro-tem moderators who was a large part of the site and TNB when it was very young, but isn't around anymore), and the five who were chosen in August by the mods.
@quartata Java is cool :) I'm making a small app using Processing
Just to get comfortable with Java
Anonymous
00:59
@DJMcMayhem It's important to note that the election hasn't been sanctioned yet (though it surely will be), so that's essentially just a survey to determine who would be interested in stepping up. The votes have nothing to do with it (and won't have anything to do with it even with official sanction).
It makes sense, given that people can downvote too
To avoid that, you should probably use comments on the original question as voting, a la Best of 2016
Anonymous
@MistahFiggins Personally, I don't think that downvotes are such a bad idea. Since we can't feasibly implement anonymous STV without off-site resources, being able to downvote candidates that you are strongly opposed to is useful.
@MistahFiggins New room owners can be appointed on chat, but not new moderators. The only way to become a chat moderator is to first become a site moderator for one of the Stack Exchange sites, which automatically makes you a chat moderator in all Stack Exchange chat rooms.
@ConorO'Brien Huh, okay. That's generous, but I guess it makes sense. The only odd thing is it's not much of a "time capsule" if I submit on December 31.
I was under the impression initially that the language would be essentially secret until 2018, where we would have to learn the language at the time to polyglot
@ConorO'Brien better: import {equal, defined, repr} from "../src/funcs.js" or using normal node: var {equal, defined, repr} = require("../src/funcs.js")
@MistahFiggins You do get to publish the language during 2017? That's what I thought at first, but on a reread it's not entirely clear from the form heading.
@ConorO'Brien I don't have a specific recommendation, but my criteria would be: imperative, good IDE comes with or is easily available, minimum boilerplate, and above all a good tutorial that lets them program interesting stuff quickly.
@Downgoat tbf i actually like the 2d language model; it's quite intuitive. With some dev, I think it could be a nice language model for beginners. A while ago I intended to make a readable 2d language, but then gave up and made reticular.
@ConorO'Brien I love me some Python, but the tutorial question is where I have some doubts. Because I just glanced over the Python tutorial again, and it isn't for programming beginners. It's for people who are already familiar with the concept of programming and are just new to Python. Same for the Ruby tutorial I looked at. Finding a good absolute beginner tutorial is not easy.
> This comment is still going as the previous `*/` did not close this comment. Note: the `*/` before has a zero-width space between the * and /. This is why the comment didn't end
a comment about the comment
also I need some advice on how to use subprocess.Popen on language agnostic challenges
@Downgoat Sorry, but that's not a programming beginner's tutorial. Already on page 2: what is syntax? What are variable names? Type? Object? Class? It's fine for people who are already programmers and are familiar with the terminology, but newbies will be intimidated and discouraged within 5 minutes.
> Learn Ruby The Hard Way is the same highly popular way for total beginners to finally learn how to code but for the Ruby programming language. Learn Ruby The Hard Way takes you from absolute zero to able to read and write basic Ruby to then understand other books on Ruby. No experience necessary to begin, and you can even try the book out for free to see if the method works for you. If you've always wanted to learn to code but have no idea where to begin, then this book is for you.
Overviews are for people who know programming but each section does describe in detail what each is
> Comments are sections of code which are ignored by the interpreter. You may use them to write notes describing your code or to aid people reading your code in understanding it
@DestructibleWatermelon Byte of Python looks pretty good. (My main complaint so far is that it doesn't seem to mention Idle, which is much nicer than using Windows cmd. OTOH, I get that they're trying to be OS-neutral.) Shame it's not higher on the Google results. How did you find it?
@quartata It appears I've never worked in a professional environment. :P (Granted, I've never held a full-time programming job or worked on a team of more than 4 people, so that's probably why.)
@ConorO'Brien I had an internship while in college. Now I work for my theology school's IT department doing mostly Linux server maintenance, database stuff, open-source code management, and occasional improvements to some in-house code my predecessors threw together. I am currently the only person in the department who even knows how to program.
So some of these conversations are probably good for me--if I ever end up programming in the corporate world, I won't be completely shellshocked. ;)
@DLosc wow, that's pretty cool! but also, kinda sad. You should show your colleagues this video, it's pretty persuasive. Unless you like being the only programmer, haha
@DLosc That's not to say that you won't run into code bases with no tests. Usually that's because of either laziness or the code base being too big and ancient
@quartata Oh, yes, I'm sure bad practices can be found anywhere. Our in-house code looks like someone tried different stuff until something mostly worked and then walked off the job the next day. One of my proudest (but also "wat") moments: discovering a huge nested loop that ran before loading every page and did... absolutely nothing. Deleted it and the pages loaded 2 seconds faster. :D
making a stack exchange chat client written in Ruby and GTK+ and I am going to release Linux and Windows versions. Will support multiple rooms, stars, etc.
@ConorO'Brien I really appreciate Learn Ruby the Hard Way's philosophy. Attention to detail is something that's so critical for programming, and super helpful for other things too. My main complaint so far is the same as for Byte of Python: beginners shouldn't be required to learn command-line before learning to program. Once you know how to program, command-line becomes much easier.
> Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
I need to use interactive io and thus communicate() is not going to work
how can I prevent deadlocks, or is this not a real concern?
I wrote a calculation that finds coordinates on an edge of a square, but it came out as a really long nested tangle of conditions. After some reduction and finding common pieces I arrived at this example:
// targetX, targetY, sourceX, sourceY are provided as parameters
let tx;
let ty;
co...