Basically I replaced n with aData[i] in the Non-working implementation. Am I missing something fundamentally wrong?
Passing implementation:
static long[] sort(long[] aData) {
for (int i = 1; i < aData.length; i++) {
long n = aData[i];
int j = i - 1;
while (j >= 0 &&...
No worries, I'm muddling through it rather blindly and have been getting things to work, but want someone to see if my code needs major refactoring before I get any further.
Looking for almost purely code review, as I am new to Tkinter and am not sure if there are major style guidelines I have grossly overlooked. I am using Matplotlib to animate some functions and display them in a GUI using Tkinter.
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
im...
On the other hand there's users who will claim that their code is working as intended because they intended it to have the bug that they couldn't solve
Though I see a suggestion just now that I should keep a CardJson objects for deserialization and a Card object that uses the deserialized JSON to build up the real property
I'm working with some math-heavy code in JavaScript. I just realized that there's a render that currently takes about 30 minutes. 95% of that time is spent in a single ~40 line function that I've pasted below. I am not extremely well-versed in JavaScript math optimization, so my first attempts to...
I'm currently creating a class that will have a bunch of my most common database functions. This is the first method I've made, I would appreciate any feedback, thanks!
public static function insert($table, $params) {
// Define initial query
$query = "INSERT INTO `{$table}` (";
// F...
If I get a compile error instead of a runtime infinite loop, I'll call that progress
Actually, this is exactly what I needed to do, now my (wrong) functions are breaking because the pointer is pointing (correctly) to NULL instead of random garbage memory location
Error: pushTest() expected length 1, but actual length was 0
@CaptainObvious uhhhhhhhhh that's not how you build queries
@EBrown Looks like the filter works great, but it's not clear what format you are supposed to enter the dates as. Thankfully, looks like multiple formats work (even mismatching formats on same query)
@Phrancis You say repeated code isn't a bad thing because that's more maintainable. I'm having trouble parsing that, it's usually the other way around.