« first day (1418 days earlier)      last day (2600 days later) » 

12:02 AM
1
Q: Is there a faster / more legible way to call and parse a separate page?

mindofbeholderI built a chrome extension. Part of point of the extension is to call a page, parse the page and see how certain values line up. I'm concerned that this could be done in a better way than what I have below as far as performance is concerned and readability. Any suggestions on this front? chrom...

 
12:37 AM
1
Q: Base object to convert positive numbers into other bases (2 <= base <= 35) in Python

Nathaniel HamovitzI'm fairly new to Python (this is the first thing I've done that really takes advantage of classes). This works and I'm happy with it; just looking for general advice. Especially nice would be input on my comments and how 'pythonic' the code is. #import fractions #unused, on todo class Base: ...

1
Q: Increase the speed of this python code.

Kyle SponableHello all I need to ieterate through a file of words and perform tests on them import multiprocessing import datetime class line_Worker(object): def worker(self, chunks): for l in chunks: num = 0 for num in range(100): print l, num re...

 
12:49 AM
-1
Q: Adding Multiple Message Outputs

James DellThis is the question being asked. I'm trying to get multiple messages for numbers of times a user has guessed the number Write a program that generates a random number and asks the user to guess what the number is in the range of 1 to 100. If the user's guess is higher than the random number, th...

 
1:10 AM
0
Q: Shorten this method to calculate the squares dominated by a queen on a chessboard

AirheadSo, I have a Javascript function that increments a counter for each square on the chessboard as it becomes dominated by a queen and decrements it if one of the dominating queens is removed (only queens, this isn't actually a chess game with all of the pieces, it's essentially the 8 queens puzzle)...

0
Q: Optimising radix-2 FFT C code

Kun CaoI'm a beginner in C programming. I am current trying to work on a project requiring 1024-point FFT implementation using radix-2, Decimation-in-frequency. I attach the FFT function C code below. How can I increase the performance by modifying the C code. #include "i_cmplx.h" /* definitio...

0
Q: Point that are close to a linear equation

David LilueThis is my first post in this community, i'm looking for opinions and some help to get a task done. First of all, this is the code (naive) i have already: f x1 y1 x2 y2 m = [(i,j) | i <- [x1..x2], j <- [y1..y2], (j - y1) >= m * (i - x1) - 0.5, (j - y1) <...

 
1:49 AM
This is more of a Code Review question — Jerfov2 37 secs ago
Looks like you don't get a good response in this site. I hope you will. However if you still don't, I think you should try to ask this on [CodeReview](codereview.stackexchange.com) because that site is more about code perfection and improvement while StackOverflow is more "solving a problem" kind — koceeng 16 secs ago
Code review possibly? — Dev 34 secs ago
 
2:09 AM
0
Q: java method that accepts a parameter and return a boolean

user134145Write a java method named isMoreExpensiveThan that accepts a ReceiptItem as a parameter and returns a boolean. The method should return true if the total cost of the receipt item that receives the invocation is more than the total cost of the parameter. Otherwise false.

 
2:30 AM
possible answer invalidation by Michael Litchard on question by Michael Litchard: codereview.stackexchange.com/posts/158411/revisions
 
1
Q: Guess a number between 1 and 100 (revision 1)

IvenBachI have taken the critiques from the original post (Guess a number between 1 and 100) and tried to refactor. I used int.TryParse and that cleaned up quite nicely. What can I further improve on? //Program.cs class Program { static void Main(string[] args) { //RunTheGame game = new...

 
 
1 hour later…
3:54 AM
0
Q: Python - Calculating Frequencies of Each Obs in the data

zackymo21I am currently attempting to make some code more maintainable for a research project I am working on. I am definitely looking to create some more functions, and potentially create a general class to conduct such data calculations. The code works, however, I am new to python, and was wondering i...

 
4:07 AM
Monkernoon
 
4:25 AM
This could be on Stack Exchange sub-site Code Review — Edward 50 secs ago
 
4:35 AM
-2
Q: Compute a students grade based on weight of assignments

Matt Mclaughlinfrom collections import namedtuple a = namedtuple('assignment', 'weight scores') def average(scores:list): '''average a list of scores''' return sum(scores)/2 def get_grade(grades:list): '''compute final grade based on scores and their weights''' result = 0 for a in grades: ...

1
Q: Functional Pascal triangle in Python (working version)

Sun QingyaoThis is actually a follow-up question of Yet another Pascal triangle in Python written in functional programming pattern, which is put on hold for posting broken code. Again, this is my implementation of a Pascal program, which is used to print an n-order Pascal triangle. I write it to familiari...

 
4:47 AM
0
Q: customized design of vertical menu bar, keep sub menus inside box

user4221591I've designed a vertical menu bar. It is working fine. But I want to give more design to the menu interface. I want box like design for each sub menu i.e. each sub menu will be inside small boxes. How can I do that? Attached is the image file. <div id="aside"> <div class="accordion">Regist...

 
5:04 AM
0
Q: Replacing DataContract serialization with Binary one in Azure Service Fabric

Dmitry NoginAzure Service Fabric uses DataContract serialization, which is a total disaster – it violates LSP (wiki) - see all those KnownTypeAttribute things, making framework development basically impossible. I made the following class be a parent of all ValueObject to convince Service Fabric actually con...

 
 
1 hour later…
6:20 AM
possible answer invalidation by cristan lika2 on question by cristan lika2: codereview.stackexchange.com/posts/157401/revisions
 
@CaptainObvious uh, wat... no.
 
0
Q: Ping Multiple site via python

MakHere is a simple script that i am using to ping 50 sites at a time and check if they are up or not. If not, save the down time with error in mongodb Code: #!/usr/bin/env python3 # -*- coding: utf-8 -*- from urllib.request import urlopen, Request from threading import Thread from time import sle...

 
7:01 AM
0
Q: Assembler for Hack Assembly Language from nand2tetris in Java

shreyasminochaI have been doing a brilliant course on coursera based on the book "The Elements of Computing Systems: Building a Modern Computer from First Principles" by Simon Schocken and Noam Nisan. You can find the specification for the Hack Machine Language and the Hack Assembly Language here. Please adv...

 
7:27 AM
0
Q: Private or protected member variable in abstract class in Java?

Nyng WangFor convenience of subclasses to access the name, I would prefer: public abstract Beverage { protected String name; // Other methods. } public Espresso extends Beverage { public Espresso() { this.name = "Expresso"; } } But I'm not sure about whether the following will...

 
7:58 AM
Monking
 
0
Q: Constructor for reminding in Java?

Nyng WangIs it a good practice to write a constructor in abstract class to remind myself/team when creating the subclasses? public abstract Dairy extends Beverage { protected Beverage beverage; public Dairy(Beverage beverage) { this.beverage = beverage; } // Other methods. } Th...

1
Q: Creating Simple SOLID Code

Syntax ErrorAfter researching for an hour regarding SOLID Principles, I tried to do it myself. Please note that most of these codes were from the ideas of others. I created a simple program which returns specific value from array, depends on what you choose. public interface IArrayPerformer { int GetAn...

 
8:13 AM
0
Q: using modern C++ features in legacy code

schlenkibusI am working on a legacy codebase using MFC and "old" C++ coding style. This function is over 900 Lines long and I added some new functionality: getting a value from a database and doing something with that. In the scope of the function exist over 200 variables and objects. Many of the objects ...

 
8:30 AM
possible answer invalidation by almost a beginner on question by almost a beginner: codereview.stackexchange.com/posts/158260/revisions
 
@Duga rolled back
 
9:03 AM
you should rephrase your question for codereview.stackexchange.com now that it works. and fix your indentation while you're at it. — Jean-François Fabre 46 secs ago
 
9:19 AM
+1 for the recommendation to immediately hoof the code over to CodeReview. The error in question would not have happened if all those global variables had been made locals (x would have popped up as undeclared), and at any rate communicating with global variables makes functions impure and their behaviour extremely difficult to comprehend. Various nice properties like re-entrancy go out the window. — Iwillnotexist Idonotexist 43 secs ago
 
9:35 AM
-1
Q: searching over a range of values? i'm a beginer

user134170(Any body can help my drop down have 3>=5 and 5>=10 10>=15 but how can i write the store procedure for based on 3 condition.")

 
@CaptainObvious no code no glory
 
10:01 AM
0
Q: Is it possible to avoid a boolean variable in this code?

mt0sI develop an app where user can open camera and take a picture, that's why I have an Intent for taking pictures. Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(outputFile)); startActivityForResu...

 
10:13 AM
Code that already works and needs some improvement (be it performance-wise, or by style or what ever) should go to codereview.stackexchange.com. — HimBromBeere 35 secs ago
I'm voting to close this question as off-topic because it is about a review and should thus go to codereview.stackexchange.com — HimBromBeere 55 secs ago
welcome to StackOverflow. Although I wrote you an answer, I agree with HimBromBeere to close this question. Check out the codereview site it's worth it when you want to improve working code. — Mong Zhu 54 secs ago
 
0
Q: Value passing for method parameters

Kasun RandikaLet's say I have a method as follows: public int getSum(int operandOne, int operandTwo) { return operandOne + operandTwo; } So whenever I'm calling this method, How should I do it? What's the best practice? What's the most readable way? Method 1: int total = getSum(5, 10); // integers...

 
10:28 AM
Monking
 
11:00 AM
0
Q: Best way to get the best performance of a Large CSV upload in php

Vikram Anand BhushanSo I am trying to upload a CSV file to db which has around 800,000 rows , I am able to do this on my server with following specs ram 4Gb rows 800,000 time take:305 seconds usgae :15% ram database:postgres (amazon rds) My Upload code looks like this public function handle() { set_t...

1
Q: Implementation of k-d-Tree

lolioiam a complete beginner in C and i have started learning it by implementing binary trees. So have implemented a basic k-d-Tree. I provide two structs and two methods for comparing values on different axis. typedef struct Point2D { double x; double y; } Point2D; int x_comparator(const vo...

 
Kevin Troy on March 22, 2017

What do developers want? And how do they get the job done? Every year since 2011, we’ve asked developers these questions (and many, many more) as part of our annual Stack Overflow Developer Survey, the largest and most comprehensive survey of developers in the world.

More than 64,000 developers told us this year how they learn and level up, which tools they’re using, and what employers should know about working with developers.

Our first analysis of these results is now live.

Check out the findings now to see which technologies are the most popular, most loved, and most dreaded in 2017. You’ll al …

 
0
Q: Matlab downsampling and Envelope extraction from wav File

MoosliI have a question to the Code below, because i'm not sure if i programmed everything right and that the Code really does what i want him to do. I have a Audiofile "03 Black Smoke.wav", this Audiofile i have to downsample to 500 Hz. After that, i have to cut the Audiofile to the max length of 3 m...

 
11:16 AM
It should be posted on CodeReview. — Mistalis 46 secs ago
 
11:33 AM
0
Q: Computing the subtotal of all items on their property criteria: qty * price

Shift N' TabI have an array which represent the item purchases of a customer, and computed the items subtotal in this logic: function getSubtotal(arr) { let total = 0.00; arr.forEach(function(i) { total += (i.qty * i.price) }); return total; // 1274.21 } And yes of course I get the correct re...

 
12:13 PM
0
Q: Static ConcurrentDictionary to maintain static objects

AashishI am using following code to maintain some static information. The problem I see with it is that, if the information retrieved using GeKeysFromCache is modified without using lock keyword it may lead to exceptions in a multithreaded environment. Is there a way to improve this implementation? pub...

1
Q: Tic Tac Toe in Python, converted to use classes

DavidI am new to using Classes and Objects, and as such thought i would edit a previous Tic Tac Toe game i created, this time using Classes. I found it easier using entirely public (Class?) variables (ie, ClassName.Variable). This way any variable can be accessed from anywhere, making utilising said v...

 
0
Q: iOS Architecture, avoiding the massive view controller using extensions

KexI have a project that uses the CLEAN Swift architecture http://clean-swift.com. The whole point of this is to avoid the massive view controller. However it uses a huge number of files and classes that are just sometimes not used. I'm not a huge fan of passing every thing from a view controller to...

 
0
Q: Too many if statements in Ruby command-line app that outputs from JSON file

xeno7I made this application that runs fine, but I feel the code is sloppy as there are many if statements. I'm a beginner so I'm not sure how to improve it, at least not without messing everything up. Any suggestions? #!/usr/bin/ruby require 'thor' require 'json' class ListTrends < Thor desc "l...

0
Q: Implementing operations for Number classes

PuttyI'm currently working on a library that provides a mathematical interface for different operations. Operations like solving an equation or calculate derivatives of a function. With a recent update in the requirements, I have to include Scalar and Complex numbers, as well as Vectors and Matrices. ...

 
That was back before CodeReview existed. If you search here, you'll also find posts that are not on topic any longer after Super User was created, or Unix & Linux, or Ask Ubuntu, or Software Engineering. Existence of a previous question has no relevance; what matters now are the current site guidelines, and under those your question is more suitable for Code Review instead. — Ken White 36 secs ago
 
12:55 PM
possible answer invalidation by Aashish on question by Aashish: codereview.stackexchange.com/posts/158493/revisions
 
1:12 PM
Jess Pardue on March 22, 2017

There are only a few things that you need to know about today’s episode:

Joel is away so Jay has taken over the podcast using Stack Overflow’s new patented JoelBots™ technology.

We are joined by data scientists Dr. Julia Silge and Dr. Dave Robinson to talk about some of the most interesting and fun questions from this year’s Developer Survey. Over 64,000 developers responded to questions like “What languages would you like to stop using?” and “What fictional programmer is the most annoying/realistic/inspirational?” (And why is the answer to all three “Mr. Robot”?) …

 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Array to Tuple in Swift
 
-1
Q: Trying to do cross tabulation in SQL and have the data go by ascending order

Brogrammerso I have been scratching my head for awhile as to how to go about doing this code. I was able to do cross tabulation in SQL, but the data is unordered and I want it to be ordered by ID, here is my code so far: select * From ( select reg.****Student_ID as Student_ID, name.Person_FirstName as ...

0
Q: Object oriented, runtime expandable Sieve of Eratosthenes

EdwardIn answering this question, it seemed to me that it would be nice to have a runtime expandable Sieve of Eratosthenes. This is my implementation of that notion. Design I've created a class named Sieve which has two member functions: unsigned Sieve::expand(unsigned upperlimit); This expands t...

 
1:57 PM
If your code works, the please consider posting your question to CodeReview and ask there to simplify/optimize your code. — Edwin van Mierlo 20 secs ago
 
0
Q: Snake Videogame in python

Matias KI made a snake game in python3 with pygame, please do critique it as much as possible. main.py # main.py # [My Name] import pygame from pygame.locals import * from vector import * import random import colr import sys SCREENSIZE = Vec2(1664, 960) CELLSIZE = 64 assert not SCREENSIZE.x%CELLSIZE,...

 
possible answer invalidation by Emily Alden on question by Emily Alden: codereview.stackexchange.com/posts/158043/revisions
 
2:15 PM
0
Q: How to refactor massive functions that mutate global state

MattI am relatively new dev working on some legacy code that contains several massive functions which all operate on a single global state object. I want to make these functions more managable and less brittle without completely rewriting them. Rearchitecting this solution from scratch would be a l...

 
While codereview is a better location for this question, one quick and easy way you can simplify it is by converting everything to Celsius once it is inputted and then converting from there to desired output. That way you only need to convert from one type as output. — Forklift 17 secs ago
In a code review, I'd reject this, because of the crazy and unreadable bit fiddling. I have no idea what goes on there. — Sean Patrick Floyd 55 secs ago
 
2:35 PM
2
Q: SpaceSort - A new sorting algorithm

StahlA sorting algorithm i have written. Pros - Gives each element a position once. - Few comparisons needed. Cons - For certain sets of data, large amount of extra storage is needed. - Only works with integers. The main reason i post the algorithm here is to learn if it already exists or not. From...

0
Q: Perl project - subversion

Влад МиркосCode running with subversion. example using my $svn ||= VCS::SVN->new({ global => { '--non-interactive' => 1}, host => 'file:///Users/vladmirkos/work/IAP/SVN/tmp/test_svn', local => '/Users/vladmirkos/work/IAP/SVN/tmp', NameRepository => 'mine', })...

 
 
1 hour later…
3:41 PM
Since this works and you're looking for input on improving it, this question is probably better suited for codereview.stackexchange.comj08691 46 secs ago
 
3:51 PM
-1
Q: iOS Architecture, avoiding the massive view controller with extensions

KexI have a project that uses the CLEAN Swift architecture http://clean-swift.com. The whole point of this is to avoid the massive view controller. However it uses a huge number of files and classes that are just sometimes not used. I'm not a huge fan of passing every thing from a view controller to...

0
Q: Find first non repeated character in the string

CodeYogicode.js 'use strict'; module.exports = input => { if (typeof input !== 'string') { throw new TypeError(`Expected a string, got ${typeof input}`); } if (input.length === 1) { return input; } const map = Object.create(null); for (let char of input) { ...

0
Q: Article date extractor

Alexey ZabelinI am quite new to Rust and this is my first library written in it. It's an article date extractor heavily inspired by the original Python library as well as its Haskell port. It is fairly small and most of the logic was taken from the Python library. I want to make sure my Rust code is idiomatic...

 
4:17 PM
0
Q: C program to convert string to floating point

MichaelXFrom K&R Extend atof to handle scientific notation of the form 123.45e-6 where a floating-point number may be followed by e or E and an optionally signed exponent. I only added the part that handles the scientific notation. It compiles and works fine. I think it's way too long and co...

 
4:48 PM
the increase method is fine. you could make the get accessor of the three int properties return the dictionary entry instead. I'd recommend asking this on [codereview.stackexchange.com](codereview.stackexchange.com) instead. — dlatikay 46 secs ago
 
Monking!
 
0
Q: Python fractal tree using SVG

lukasszI made a simple program to generate fractal tree using PATH object of SVG. Any suggestions? import math from random import randint # const - upper limit for randint s = 10 """Simple fractal tree using SVG and recursion. Usage: Create Root object bt Branch(x1=400, y1=800, x2=400, y2=600, ...

 
Monking
 
Monking
WTH it's carnage with the questions today. ..
 
5:05 PM
s/today/anymore/
TTGTW!
 
posted on March 22, 2017 by CommitStrip

 
DVLR
 
5:20 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Abstract factory using generics
 
5:35 PM
possible answer invalidation by Dmitry Nogin on question by Dmitry Nogin: codereview.stackexchange.com/posts/158462/revisions
 
5:51 PM
Should probably be posted to Code Review SE. — Fred Larson 36 secs ago
 
0
Q: Structured Set of Dictionaries for Table Lookups

Brandon BarneySomewhat recently I encountered an issue where my projects were simply taking to long to run. A lot of my macro work comes down to taking multiple tables (generally formatted in the same way) and joining together these tables based on specific users. This led to instances of loops that would loop...

 
@CommitStrip The Node.js story.
 
@Phrancis and every npm package ever
heh
 
6:07 PM
0
Q: One method for changing one of the properties C#

MadcodeI have a few resources set in my class – coins, diamonds, hearts, enum of these resources names, and method for increasing specified resource. I want to make single "Increase" method for all resources that wouldn't have switch statement. Sort of single-line not overloaded "generic" method indepen...

1
Q: March Madness Simulator

Matias KIt's a march madness simulator for the final 4!!! Please be as critical as you can :) # March Madness Program import random from bs4 import BeautifulSoup import urllib3 import re import time def getTeams(): """ Get team data """ website = 'http://www.ncaa.com/rankings/basketball-men/d...

0
Q: Excel 'Big' Data Processing Followup

Emily AldenPrevious Question (Initial Level Optimization) : Excel 'big' data processing with vlookups Code Purpose: Recalculate 25 columns of 500,000 rows each based on new information (provided by a different macro). Before the previous thread it took 28 hours to run, now it takes 8, my goal is under 3. ...

-1
Q: Cartesian Product Sample

Jeffgiven is these data: setA={1,2,3}; setB={'a','b','c'}; output should be like this: (1,a) (1,b) (1,c)new line (2,a) (2,b) (2,c)new line (3,a) (3,b) (3,c) With the use of for loops only pls help

 
6:20 PM
0
Q: MyVector stores a collection of objects with their names

RtyuiThe task is to find all mistakes and drawbacks in this code, for example, premature optimization or inefficient code template <typename T> class MyVector : public std::vector<T> { private: // Use copy-on- write idiom for names for efficiency std::vector<std::string>* m_names; size_t*...

 
The title is funny, but this isn't Code Review, where you try to describe what your code is doing. Instead, describe what's going wrong. — QPaysTaxes 10 secs ago
 
6:37 PM
0
Q: One-Off String Detection. Questions about complexity

Michael LitchardProblem spec from CareerCup. Given two strings, return boolean True/False if they are only one edit apart. Edit can be insert/delete/update of only one character in the string. Eg. -True xyz,xz xyz,xyk xy,xyz -False xyz,xyz xyz,xzy x,xyz module Strings.OneLetter where` import Prelude i...

 
6:49 PM
0
Q: UnitOfWork, Dependency Injection and the need for an application service to complete and begin a new Scope/UoW

Marc WittkeTopic is about a LoB web application written in C# for ASP.Net Core. We're following the blue book DDD architecture. We're using SimpleInjector as dependency injection container. Every request opens a new injection scope and implicitly a UnitOfWork and a database transaction which is committed/co...

 
7:02 PM
If you're looking to improve working code, you might want to try Code Review. — glibdud 38 secs ago
 
Greetings, Programs.
 
Greetings, Users.
 
Appreciate about the source code, I'm working on it. I need to strip it down to those "important parts" - I may discover what is wrong in the mean time but if not I'll try to post a few lines of meaningful code. (I don't expect anyone here to do a code review on 1500 lines of Python!) — NickGB 15 secs ago
 
7:21 PM
0
Q: Excel VBA Object Read Write access

user134231I'm working through a problem I have with Excel VBA. I have two object classes. Class clsLoadStep stores three copies of class clsLoad objects. Class clsLoad simply stores a value and a string stating where that value came from. One clsLoad stores a max value and another a min value. My problem c...

 
7:40 PM
0
Q: C#, PI Calculator, Interview Challenge

LearningToCSharpIn the post linked below Greg Beech says that he asks C# candidates to produce a formula that calculates PI Given that Pi can be estimated using the function 4 * (1 - 1/3 + 1/5 - 1/7 + ...) http://stackoverflow.com/a/406948/5398076 I'm far from C# interview ready, but I like the challenge. Here ...

 
8:17 PM
0
Q: Is it code an example of a good practice - Snake game

Yyyy UUUUI put my code below to ask you for a review and ask you if this can be considered a good and clean code? package com.RGuSnake; public class Main { public static void main(String[] args) { Snake.getInstance().createBoard(); } } package com.RGuSnak...

 
8:29 PM
0
Q: Ruby sudoku solver using backtracking (interview)

juliangonzalezI was required to implement the code to a spec file I was provided in Ruby. I was rejected with the message "The quality of your code isn't sufficient for this position". Can you please tell me what can be improved in order to achieve higher quality? game_board_spec.rb (file provided) require '...

 
If the code works and you just want a review please ask at Code Review rather than here — Sami Kuhmonen 40 secs ago
 
9:06 PM
0
Q: Accessing array elements in a recursive method

Peterclass RecursiveMax { public static void main(String[] args) { int[] arr = {10, 5, 7, 9, 15, 6, 11, 8, 12, 2, 3}; int max = recursiveM(arr, arr.length); System.out.println("Maximum element: " + max); } static int recursiveM(int[] arr, int length) { if (length == 1) ret...

 
9:28 PM
0
Q: Breadth first search - Multidimensional arrays

user3667111So I have some code which performs BFS from a goal state and for given positions it stores the values in an array of n dimensions. This is for the sliding tile puzzle, so say for instance I want to store all the permutations of 7,8,11,12,14,15 such: static int[] stored2 = {7, 8, 11, 12, 14, 15};...

 
Gabe Koscky on March 22, 2017

O primeiro trimestre de 2017 já caminha pro fim e o Stack Overflow em Português continua muito bem, obrigado. Cresceu bastante em 2016, começa o ano entre os 10 sites mais ativos da rede e a expectativa pra esse ano é de continuar crescendo, e ajudando cada vez mais gente, construindo ainda mais conhecimento de qualidade em língua portuguesa.

Saímos do Carnaval à todo vapor e atingimos – pela primeira vez – a marca de 100 perguntas/dia na média das duas últimas semanas:

Média 2 duas semanas; últimos 6 meses …

 
@Feeds Qué?
 
@Feeds estado de so en espanol?
no, portugues
 
10:08 PM
0
Q: Is this ok to do this for debugging purposes? Or is there any disadvantages of doing it this way?

dsadnickI'm working on a large application and I like to see my output from API calls. I have been doing this latley to view my info in the console instead of using a printr or vardump and was curious if its a bad debug practice. echo '<script>console.log('.$searchTracking->doSetActivity($trackingArray...

 
0
Q: Create exact replica of react component with different name

user2602079I have a react native component called "width". It has 3 width values which have associated <TextInput>s which map to the redux store as {width:{width1: "somevalue", width2: "someValue", width3: "someValue"}} I need to create an exact replica component but called thickness and it needs to map...

 
10:24 PM
@CaptainObvious iffy... doesn't seem to be seeking a general code review
I think it'd be better on SO, IMHO
 
possible answer invalidation by Matt Mclaughlin on question by Matt Mclaughlin: codereview.stackexchange.com/posts/158456/revisions
 
 
1 hour later…
11:26 PM
0
Q: Should objects in classes be private or public?

asmcriminalI am discussing with one of my peers about proper encapsulation. We had to write this code. One of the specifications is: "The Student object has to have a Grade object called finalGrade. Code hint: Grade finalGrade;" This is my code public class Student { private String firstName; private ...

0
Q: Insertion Sort in Ruby

austins28I have a simple question about insertion sort using the ruby coding language. I am teaching myself algorithms with the text book "Algorithms" by Cormen, Leiserson, and Rivest. I derived this algorithm from their pseudocode, it works, but I am having trouble understanding why one of the lines ...

 
11:39 PM
0
Q: Game Permission System - Needs improving

Liam SavageI have just finished coding a permission system for my game server but one method in the class is seeming to be very complicated, and maybe some people on this site can help me improve the method? Let me walk you through the permission system, which will give you a better understanding of the qu...

0
Q: (Simplifying code) Pick what maintenance check required for game

DarkMatterMattI have a python script that plays Airline Manager 2 (on Facebook) for me. So far it can depart flights and buy fuel when the price is good. I would like the program to also automatically plan maintenance for aircraft. When an A-Check is due (hours till A-Check == 0,) the A-Check must be performe...

 

« first day (1418 days earlier)      last day (2600 days later) »