@πάντα ῥεῖ Thanks for the suggestion. I was not actually aware of Code Review .. but from their on-topic guide, it looks like they do not like simplified/minimal examples. — Michal Kaut1 min ago
If you have working code that you just want peer reviewed, post to Code Review. All relevant code must be in your post itself (whether you're posting a question here or at another Stack Exchange site), not on an external site. Please re-take the tour and review the help center pages before posting your next question here. Good luck. — Ken White57 secs ago
Things I like:
Going last row to first, so as to avoid messiness with row numbers that occur when deleting whole rows.
Good use of With
Good function naming of GetTickCount (at least, assuming it does what it says it does)
And now that that's done:
Option Explicit
This should be at the ...
I had been writing code for segmented sieve of Eratosthenes. This code is for the Prime Generator problem from SPOJ.
I previously had posted a question here at code review when I had TLE problem because I was using Sieve of Eratosthenes. But the answers didn't help me avoid TLE.
So I started u...
WebSQL (I think its actually IndexedDB) is a client-side db for data, so it's actually pretty useful for storing data. And it supports indexes, so thre's that.
@N.Wouda well, when I'm confident with the completeness of this script I intend to post it to Code Review, and I likepep8 and its guidelines. — cat27 secs ago
I'm getting paid decent money right now to find a $2.58 discrepancy over a several-month-long period. It feels a bit obscene, TBH. But customer wants it done...
@Zak might know that^ kind of feeling, accounting is #Fun
In my way of learning OOP, I am developing a little CMS using the MVC pattern. I would like to have some feedback about my router class, mostly about if I am correctly using OOP.
Right now, I have a .htaccess file redirecting requests to an index.php file, both of them in the root directory of t...
what is this: .Version? ....could you possibly add the code inside myClass ....I recently posted this, just the other week, so I would be VERY interested to see how you have written myClass: codereview.stackexchange.com/questions/116253/… — whytheqjust now
I have completed a coding challenge from Free Code Camp. The challenge's user stories are as follows:
I can create recipes that have names and ingredients.
I can see an index view where the names of all the recipes are visible.
I can click into any of those recipes to view it.
I can ...
I'm learning some Python with my kids, and we're making a program to generate D & D characters from user input.
One portion of the code is to generate stats, which are a set of six numbers where each number is the sum of three random values from 1-6. We're total softies, though, so for each valu...
Referring primarily to here, it suggests that values which are constant in JavaScript (using the keyword const) should be named in SHOUT_CASE. I'm of the opinion though that mutability is much more important (and rare) than immutability, at least in JavaScript, and that having so many variables p...
One fast question: I do insert some data in a db, or better I try so. I'd like to return an object if I succeed or return false if not. What's the best way to do this? Actually returning true and false and the object itself as a reference? -> bool foo(ref bar), or should I go with object or null, or should I go with the object if success and null if not procedure
depends what abstraction level the thing is at. if it's dealing with connections and actual T-SQL, let it throw. if it's an abstraction that can handle all reasons a query could fail for, let it try and return false.
I have a easy function but it have a redundant content.
function showHide(link,divObject){
if($(window).width() > 992) {
$( divObject ).slideToggle("slow",function(){
if ($(this).is(':visible')) {
$(".component-header").removeClass( "arrow-down" ).addClass( "arrow-up" );
...
I'm trying to do a site, it have an administrative side and a client site, but my problem is that i upload the image and put the description of that, but when i save it, the image goes to the folder, but in my data base there is nothing. here i let the code, if someone knows what's happened i rea...