By doing exactly not that, you will have a reasonable chance at gaining reputation.
Instead...
Ask good, interesting questions;
Answer questions with useful advice;
Check out the Tour and Help Center for more details.
you didn't have to delete it. I mean, if you just moved the 2nd conditional after the first function call, you do reduce branching on the found case by 50% per iteration
problem is that this JSON object contains much, much, much more information than what Ismael needs, and perhaps the API would have a way to only request a question's tags
I'm pretty new to C# and was just wondering if there is a better way I can write this calculator that I made. Open to all feedback:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AnthonyCalcul...
@DVK - I stand corrected. I should have said his zombie. Unfortunately, writing letters to zombies is an exercise in futility. They never write back. — Wad Cheberyesterday
but our zombies sometimes leave a green checkmark :)
^^ someone with an account on scifi.se should flag that comment thread. way too chatty. and mentions nazis early on.
scrollbarH.css({display:"none",position:"absolute",height:"5px",width:scrollbarH_length+"px",top:scroller.innerHeight()-7+"px",left:0,background:"black",border:"1px white solid","-webkit-border-radius":"5px",opacity:"0.9"});
TL;DR This is not a code review site. If you have a specific question, please show what you have done. However, a hint: undefined behaviour is well known to behave different on different systems. I'd check for this. — Olaf23 secs ago
In connection with the moderator elections, we will be holding a Q&A with the candidates. This will be an opportunity for members of the community to pose questions to the candidates on the topic of moderation. Participation is completely voluntary.
Here's how it'll work:
During the nominati...
Problem is, if you need the documentation reviewed, we need to see the code that goes against it. And while you're on this site, you might as well get the whole thing peer reviewed, no? Why not just include the code, and mention your specific concern about the docs comment? — Mat's Mug6 secs ago
This is a simple example of script to run the CDM to test the performance consistency of the drive in Windows environment.
Please let me know if you find any place can be better improved(it may be a bit confused as some lib are called, but the logic still there), thanks.
Code:
! /usr/bin/env p...
enter code herei have dhcpd.leases file in that there is list of MAC And IP so whichever mac matches it should take that IP... the file path is Vi /var/lib/dhcpd/dhcpd.lease
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4...
After the advise from this code review I have come up with the following changes. I'll go in the same order as my previous post. This post is mainly for an updated version so that others can see the previous posts suggestions. If I have made any mistakes please let me know.
ObjectPoolManager.cs...
public class ValidSudoku {
public boolean verifySudoku(int arr[][], int num, int i, int j, int row, int col) {
return (verifyRow(arr, num, i, j, col)
&& verifyCol(arr, num, i, j, row)
&& verifyGrid(arr, num, i, j));
}
public boolean verifyRow(in...
Im trying to make a console calculator to get some Experience but it is only returning 0 when i do a calculation here it is
import java.util.Scanner;
public class TimeAlgorithm {
public static int FirstNumber, SecondNumber, Answer;
public static Scanner Scan;
public static Scanner Scan2...
I used the following code to create a linked list of pointers which are each having a length of the english alphabets plus one for the apostrophe.
Im trying to load words from a file, dictionary into a trie data struct. But I think its not getting loaded properly. Could anybody tell me the mista...
I've recently adopted the MVVM paradigm in my current iOS project. So, we know that anything UKKit related should not be in the viewModel and not tied to how the UI is. viewModel should not know anything about the UI it's serving. So I get this.
However in my current viewModel I am handling a l...
Whenever using ArrayList, the method containsAll(collection) runs in time \$\mathcal{O}(mn)\$, where \$n\$ is the size of ArrayList and \$m\$ is the length of collection. However, it relies only on equals(Object)-method.
I have this subclass of ArrayList that does the same in time \$\mathcal{O}(...
currently I am making a small 2D game with the use of Allegro 5 library.
So I am making use of inheritance eg. sprite chass as the base class and player class as the child class, but I want to know if it's a good idea to approach it in this way and other ways that are better to do this, if there ...
Pastebin code view
Hei, i make a php script, who draw 6 numbers random. I input another 6 number and compare with random number, if random is equal to input number, you win. I am newbie in php, starting to learn about 1 week ago, work to learn. What i do wrong and what i do good? Is difficult t...
@Quill that "you didn't review the code"... are you sure you posted that to the right answer?
Welcome to Code Review! You have presented an alternative solution, but haven't reviewed the code. Please explain your reasoning (how your solution works and how it improves upon the original) so that the author can learn from your thought process. — Quill36 mins ago
I've recently coded an event manager with performance as the main factor.
I'd like to know what you think of it and what could be made better.
EventManager
public class EventManager {
public static EventManager mouseRightClick = new EventManager(EventType.mouseRightClick), mouseLeftClick =...
I want to do some object-oriented programming in Lua, and I decided on something like this:
local B = {} -- in real life there is other stuff in B
B.Object = {
constructor = function() end,
extend = function(this, that, meta)
if not that then that = {} end
if not meta then meta = ...
Inspired by a Stack Overflow question, I decided to take a crack at the Google Code Jam's Minimum Scalar Product problem as an opportunity to practice my Haskell.
I'm not claiming any algorithmic awesomeness (this is just a reference implementation for checking correctness later).
This is my fi...
I've never seen a tag synonym created via the voting mechanism and I see evidence that the system isn't working to create synonyms without moderator intervention.
Does anyone have any figures about the number of synonyms that are create by votes as opposed to the number created by moderator fiat...
I have a written some code which helps me to get OAuth Access Code from Reddit. Reddit uses standard OAuth2, so like any other OAuther server, here's are the steps to perform:
The client/app sends app key, app secret and redirect URL to browser.
User authorizes it and gives permission.
Reddit s...
For a puzzle I had to brute force a password. I've never used goroutines before, and I don't have much experience in concurrency, but I managed to come up with this
The password was of length 12, the left and right halves had to output a certain value when run through cksum, and when put togethe...
The program sorts the array from lowest to highest and outputs the index of the searched value:
public static void main(String[] args) {
Integer[] random = {6, -4, 12, 0, -10};
List<Integer> list = new ArrayList<Integer>(Arrays.asList(random));
Collections.sort(list);
Integer[] ...