Top new questions this week:
|
I made this Tic Tac Toe game and I would like to know your opinion and what can be improved. I also want advice about making it check if someone wins. I'm 10th grader, so I still need to learn a lot.
...
|
Following on from my two previous posts.
An alternative vector
An Alternative Vector (Copy Assignment Operator)
I have written a detailed blog about how to write a minimal vector like class. This ...
|
Inspired by a PPCG answer, I wrote this code, which shuffles the autoboxing caches of Number subclasses.
This leads to, among other things, outputting 2 + 2 = -72 after invocation of ...
|
I'm looking for some feedback on my lock-free queue, based on Disruptor, mainly for any potential concurrency issues, such as where I need additional fences. It looks correct to me, and I can't seem ...
|
I made a small demo in JavaScript using HTML5 canvas, which renders a rotating sphere. The sphere is generated by first creating a set amount of points (currently 50, represented by vectors) randomly, ...
|
I'm currently attempting to learn Haskell after a fair history of imperative programming. When I saw the Pizza Hut Pi Day math problems, I thought the first one would be a good candidate for my ...
|
Rubberduck has been using an extension method to export code files, notably for source control purposes.
While testing source control, I ran into a weird bug in the VBIDE API, which caused UserForm ...
|
Greatest hits from previous weeks:
|
I've recently made a calculator using Java and Swing. I'm okay with the results but I'm curious what are the major flaws I've made (assuming there are, because it is my first program making GUI). I ...
|
I have the following .click() functions:
$('.tab').click(function(){
$('.tab').removeClass('activeTab');
$(this).addClass('activeTab');
});
$('.edit').click(function(){
$(this).hide();
...
|
Can you answer these?
|
I'm learning OOP and totally new to this way of coding. I've always scripted PHP the procedurial way. Now I've written a working class, which creates a database connection and has the method to create ...
|
The goal: A set of configurable options, combined with a standardised data source, to produce a standardised Report.
This question: One module of said document, with accompanying code.
Input: ...
|
I've written a very simple 2-body gravitation simulator in MATLAB, but I think I've done something wrong with the physics, particularly where I define velocity as each frame is drawn.
%% 2-body ...
|