For an assignment, I wrote a minimal HashTable implementation (it only supports additions; no deletions).
To resolve collisions, it uses Linear Probing (required by the assignment).
I'm looking for general feedback regarding style, practice, and these things specifically:
I've gotten out of t...
> Could not resolve this reference. Could not locate the assembly "SD.LLBLGen.Pro.DQE.SqlServer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=*dontknowifpersonal, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. DALDBSpecific
As my question Modular arithmetic was hard to review and terribly long, I've added a few comments to the easier part, namely IntModulus.
The code uses Guava and Lombok. As usual, feel free to ignore my slightly deviating coding conventions.
My concerns are speed and correctness. The whole code ...
As my question Modular arithmetic was hard to review and terribly long, I've added a few comments to the easier part, namely IntModulus.
The code uses Guava and Lombok. As usual, feel free to ignore my slightly deviating coding conventions.
My concerns are speed and correctness. The whole code ...
Are a 'graduated' site minimum rep requirements different that a 'beta' site's requirements, if so, will the lower rep users lose privileges when we get the new design?
My assignment was to make a "Lending Library" that keeps track of items. We were advised to create two classes and a main method.
What I am unsure of is if any of my code would be considered bad practice or unnecessary, especially when it comes to declaring objects and instantiating classes.
...
My assignment was to make a "Lending Library" that keeps track of items. We were advised to create two classes and a main method.
What I am unsure of is if any of my code would be considered bad practice or unnecessary, especially when it comes to declaring objects and instantiating classes.
...
I have array contents with some date ranges, fetched from the database:
$calendar = array
(
array
(
'check_in' => '2015-01-02',
'check_out' => '2015-02-28'
),
array
(
...
I have a pointer to an array holding ,say, four pair of 8-bit values such as this
MSB-lsb-MSB-lsb-MSB-lsb-MSB-lsb
^
|
bufPointer
I am going to advance in this queue and populate the fooStruct structure's 16-bit members with these four 8-bit couples.
I can do this in two lines as below for t...
This is my first time writing a Swing+Groovy application that successfully inserts data to SQL tables. It may look like example code, but it is more test code, as I will eventually expand this to a much bigger application, and would like to see if I can improve it before expanding it.
What it d...
sql.eachRow('''SELECT 1
id
, first_name
, last_name
, phone
, date_of_birth
FROM test
ORDER BY id DESC;''') { row ->
println """
New data appended to table:
Person Id: ${row.id}
Name: ${row.first_name} ${row.last_name}
Phone: ${row.phone}
(the println string is indented back to the left so that the spaces don't get printed into the console)