« first day (714 days earlier)      last day (3303 days later) » 

12:51 AM
@mrrorincorporated Ok, so which one came out as being faster? There's your answer there. Do you want us to improve your code? That seems like something suited for codereview.stackexchange.com, although again, you'll need to actually post your code. — Asad 43 secs ago
 
Hi, @StackMonkey.
@StackMonkey Question - what is the zombie count for today?
@SimonAndréForsberg What happened to @Duga?
 
1:15 AM
@Hosch250 I think @Duga is still around, just rolfl created a bot using the same code. Although, I'm not sure.
 
Yeah, not sure.
@rolfl Did you boot @Duga to keep the competition down? (JK).
 
0
Q: Creating a game of Checkers in C#

ZanpoSo I am having a tough time understanding how to get the program to read my inputs via button presses for each cell. It's a more of a primitive checker game, but I seem to be getting super confused with how to get it to recognize the inputs. I apologize for my code being a bit jumbled. public pa...

 
Come on, guys, what's up with VTC'ing without leaving a comment?
I think I need to post something on meta to get people's attention.
 
 
2 hours later…
2:59 AM
ACTIVITY
 
3:23 AM
Question might be more suitable for codereview.stackexchange.comLittlePanda 12 secs ago
 
0
Q: Natural mergesort

NgmThis is a problem from Robert Sedgwick's Algorithms book: Write a version of bot tom-up mergesort that takes advantage of order in the array by proceeding as follows each time it needs to find two arrays to merge: find a sorted subarray (by incrementing a pointer until finding an entry tha...

 
You can delete your post from here and post this question on code review, but make sure that your code works! — LittlePanda 7 secs ago
 
0
Q: WinForm Calculator- Looking to get cleaned up

MrMooseusing System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace BaseHexWinCalc { publi...

 
3:42 AM
I can't see the problem I have in this lock-less atomic code i have when it is using 12 threads concurrently... hmmmm
 
@rolfl Uh oh.
That is funny.
I voted every post on the questions...
Let me fix that for you.
 
cough cough I guessed as much....
Don't vote just to vote... that's not why I pinged you!.
 
I know.
At least you got the rep cap.
That is what we were aiming for anyway, isn't it?
 
> Legendary - 137/150
 
1
Q: Implementing Singly Linked List

codeI am implementing, in my SinglyLinkedList class, an interface where I redefined linked list. I am trying to learn data structures. Please, let me know what I can approve upon in my code. Thank you. import java.util.Collection; import java.util.*; public class SinglyLinkedList<E> implements Li...

 
3:45 AM
Got it?
 
I got cap, yes... do you know the text 'reputation' page?
 
Yeah.
Well, depends, I think I do.
 
Oh, no.
I didn't.
What's up?
 
-- 2015-04-16 rep +105  = 60822
 2     87193 (10)
 2     87193 (10)
 2     87193 (10)
 2     87193 (10)
 2     86936 (10)
 2     86813 (10)
 2     36910 (10)
 2     87206 (10)
 2     87193 (10)
 2     87174 (10)
 2     87193 (10)
 2     86898 (10)
 2     86936 (10)
 2     86881 (10)
-- 2015-04-17 rep +140  = 60962
 2     82983 (5)
 2     86898 (10)
-- 2015-04-18 rep +15   = 60977

** rep today: 15
** rep this week (2015-04-12 - 2015-04-18): 910
** rep this month (2015-04-01 - 2015-04-30): 1835
** rep this quarter (2015-04-01 - 2015-06-30): 1835
That's my page.
 
3:47 AM
OK.
 
So, yesterday was just 140.... ;-)
 
I gave you two votes, the rest can wait.
Because of the reversal?
Well, the cap still counted.
 
I'm not sure it did. I can't recall what it was before... 137 or 136
 
Hmm.
It appears to count as 200 yesterday and -55 today.
Anyway, no use crying over spilled milk.
I really wonder why it didn't get reversed the time Legato gave me some 140 points inside about 40 minutes.
It happened over two days UTC, maybe he exploited an unknown bug.
I really would like to make a calculator, but I can't with finals beginning to get closer and closer.
There are only 2 assignments that haven't been posted, and the rest should be submitted soon.
 
Well, the calculator challenge needs more entries.... and I am off to bed. Have a good evening.
 
4:00 AM
Night.
 
4:21 AM
Fired at a zombie, want to validate the kill?
0
A: Photo gallery layout

Hosch250First, I will start with the good: <figure> <img src="photo1.jpg" /> <figcaption>Photo 1</figcaption> </figure> It is excellent that you use the HTML5 tag figure instead of a plain old div. You may just have removed this for brevity (many people do), but when you write HTML, you shoul...

If I get 5 validations, I get a silver badge.
@JaDogg Congrats on Vox Populi.
 
4:36 AM
Night, all.
 
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com. — chepner 55 secs ago
 
@Hosch250 Night!
 
4:56 AM
I think I'm a bad Code Review user. ;P
I keep asking for code reviews in semi-niche tags, which probably isn't helping the answered/unanswered ratio much. :)
...anyone know Clojure? :D
0
Q: Simple, functional URL parsing library in Clojure

Alexis KingI recently wrote some code to handle parsing of URLs, even if those URLs might not be one hundred percent perfectly well-formed. (This constraint made using Java's URL class impossible.) The resulting, relatively short library is presented below. (ns fuzzy-urls.url (:require [clojure.string :...

 
@Hosch250 Thanks
 
@AlexisKing That's a lot of parentheses... is Clojure related to Lisp? ;p
 
@sᴉɔuɐɹɥԀ Clojure is indeed a Lisp. ;D
 
Ah, guess that explains it
Maybe smack the on there?
 
1
Q: Simple, functional URL parsing library in Clojure

Alexis KingI recently wrote some code to handle parsing of URLs, even if those URLs might not be one hundred percent perfectly well-formed. (This constraint made using Java's URL class impossible.) The resulting, relatively short library is presented below. (ns fuzzy-urls.url (:require [clojure.string :...

 
5:04 AM
@sᴉɔuɐɹɥԀ The tag is relatively useless, usually, since most Lisps are pretty different, but it probably wouldn't hurt.
 
113
questions tagged

lisp
Stats

created

4 years ago by ChaosPandion

viewed

17 times

active

1 year ago

editors

3
Top 5 answerers are 5 people I've never seen around (not meaning they're not around, but eh)...
 
@sᴉɔuɐɹɥԀ One of them is Chris Jester-Young, who constantly battles with me over answering questions on Stack Overflow. :P
 
I hate to say this, but the way CR currently is populated (considering regular users)... You might have better luck on SO?
 
Also, he recently got hired as an SE employee.
 
5:07 AM
@sᴉɔuɐɹɥԀ I'm not sure this sort of question is really on-topic on SO.
 
Well, it's not explicitly off-topic on SO. Just not particularly well-received. But at least you'd get a bit more exposure. It's your call, really
 
It's not pressing. I just figured I'd post it here in case someone decides they wanted to answer it at some point. :)
I just feel slightly guilty for contributing to The Problem, haha.
 
@AlexisKing It's not a "problem", if it were we'd be all gone by now :)
It's a fun challenge, merely
At least, I think most see it that way
> The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
ORLY? This exact same query worked perfectly fine in IE11 earlier today, now I'm home on Chrome and it fails...?
 
Is this in SE DE?
 
5:18 AM
Ah, yes. I'd guess it probably has little to do with the browser, considering the query isn't exactly dependent on anything client-side. :p
 
OH. I'm running this on SO. Let me try CR
 
That would explain that. ;)
 
Boom, that did it
> 14662 rows returned in 1134 ms
Not too bad
 
5:56 AM
1
Q: 1st questions with answers within X hours

sᴉɔuɐɹɥԀI recently challenged @Hosch520 with writing a query as such: Find first questions with answers posted within 24 hours And he did great. I figured I would have a go at it too. Turns out I learned valuable things about data subsets, so here I am seeking review. I did not specify whether to ...

 
@nhgrif ^^ in case you're interested!
 
 
1 hour later…
7:10 AM
-1
Q: Search number of line in a text file and print the counted number with that line in excel sheet also avoid the if matched earlier

Vijay Kumar SinghI want a javascript that match each line and count the number of matched line and print it on excel sheet with that line along with matched count also avoid if matched line come again. Thanks Assume text file like this Vijay Kumar Garg Apoorv Tiwari Himanshu Awasthi Rajhans Tyagi Rajhans T...

 
7:44 AM
You would have more luck posting this on codereview.stackexchange.com rather than here. — Blair 7 secs ago
This is more a Code Review request than a SO question, — gboffi 18 secs ago
 
8:09 AM
0
Q: Is it possible to get the "Informed" badge in Code Review meta?

stefanIn fact, for me it seems not possible! Everytime when I open http://meta.codereview.stackexchange.com/tour to read the entire tour page to get the "Informed" badge I'm redirected to http://codereview.stackexchange.com/tour.

 
0
Q: Need to clean this python code

Olivia CassendreThe objective of this code is to create a hexagonal gird (honeycomb type). This code is written by a friend and it contains lots of junk that do not contribute towards the objective. import time import math import pprint import random import string import tkinter import numbers Tau = 2*math.pi ...

 
8:26 AM
0
Q: LiveDate version 2

Kid DiamondMy LiveDate object is now pretty much finished, but before I considered it that I'd like to get a last full review of it. Also, what would be better to do; importing the whole dependency object or just the dependency function into the IIFE? LiveDate.js var LiveDate = (function (padNumber, send...

 
8:41 AM
0
Q: DAO layer in Spring application

Branislav LazicLet's say I have a Java web application driven by Spring and Hibernate. Let's discuss only about DAO layer. So instead of writing DAO interface for each implementation class I decided to write one DAO interface which will be implemented by all classes in DAO layer: public interface AbstractDAO<T...

 
This is better asked in Code Review I think. — justhalf 36 secs ago
I'm afraid your troubles only begin. There is a lot of things wrong with your code. I recomend you to ask someone to review it if you planning to get any better. — user2418306 21 secs ago
This is definitely better suited to Code Review. — Vaibhav Sagar 41 secs ago
 
9:28 AM
0
Q: Could my intro to Python classes be written better?

Colby CoxI am Colby. I have been using Python to learn programming, but I am just recently beginning to utilize classes. I have a basic game below. Please review and let me know what I should improve on. Thanks!!! import random class Game: def __init__(self): self.winningNumber = random.ran...

 
 
2 hours later…
11:10 AM
Monking
 
@skiwi Monking.
 
For people with experience with REST APIs and JavaScript: Do you know how to block rendering the page until a set of calls has returned an answer?
If that makes sense on this Saturday morning early afternoon
 
blocking a page isn't very friendly
Showing a loading screen is probably nicer
 
But say you are on the index page and go to an overview page, which needs to load a number of entries from the database via a REST call
Then you could show a loading screen when going to the overview page, but once you get there, you do want the REST call to have completed, does that make sense?
 
I'm thinking more along the lines of: in the result view, showing a loading indication (spinner) but keep the rest of the app responsive and usable
 
11:25 AM
Hmmm, I'm not too sure
If you're talking about a simple detail page, do you then want a new loading screen that waits until those details are loaded? When you just got onto that page via a loading screen
I fully understand using loading screens when clicking on "more details" for example
 
No. No loading screens
Loading.. segments
 
Yeah, that's what I meant ^
Spinners and blocking of that segment
 
yes, and then just replace that div with the actual content once the call is finished
no UI blocking
 
So then you get, homepage -> open overview -> 100ms loading spinner -> overview loaded -> overview goes to fetch data -> 100ms loading spinner again -> overview is loaded
 
Hah. The code that randomly stopped working last night, randomly started working again this morning
fixed
@skiwi Your pageloads need spinners?
 
11:30 AM
The double loading spinner bugs me a bit, because the user only initiated a single action and then he needs to wait two times
@JeroenVannevel It's still theoretical... so it might be the case
 
I don't think people do spinners for pageloads
 
But lots of sites also use AJAX requests for loading a new page nowadays, right?
 
Yeah, look into Single Page Applications
they're the hype
 
I need to definitely read some more before I can start implementing
I tried to work with Spring MVC and JSP (Java Server Pages), but that just doesn't seem to work together with AJAX
so REST APIs it is
 
12:26 PM
> IllegalFormatConversionException: %d can't format java.lang.String arguments
I'm passing in an integer..
String.format("MatchId:%n\tWinningTeamId:%d", answer.getMatchId(), answer.getWinningTeamId())
Is something wrong with this format string?
ooooh
%n isn't a thing
 
12:45 PM
2 things I would do first. 1) accompany any examples with a jsfiddle 2) keep them as concise as possible. If I'm honest, the code is messy, and I'm guessing you're trying to learn certain concepts at the same time as Raphael. I think its becoming too difficult to track your 'this' objects and functions. I also suspect you are recreating sets of functions for each object, which I assume is not necessary (maybe use code review stackexchange for suggestions). Rather than trying fix a bug in something messy, I would try and clode with clarity, maybe add comments if neccessary. — Ian 23 secs ago
 
@JeroenVannevel %n is a thing, it's a newline
 
@rolfl That explains the random newline then
 
(no I cannot think of a great reason for it, except it is platform dependent, wheras \n is not).
> 'n' line separator The result is the platform-specific line separator
 
1:40 PM
0
Q: Backbone/requireJs and Circular Dependencies

LaurentI try to have a main App view with references of all my views to manage and call transitions between theses views. But, by the way i have circular dependencies my code app.js define([ 'jquery', 'underscore', 'backbone', 'views/viewOne' ], function ($, _, Backbone, ViewOne) { ...

 
I filed the defect report. Hopefully it gets resolved soon. I have a code review coming up and I hoped to have some nice, easy to read fully linked javadoc. — Selena 26 secs ago
 
2:02 PM
0
Q: Optimized board representation for the 4x4 sliding puzzle

maaartinusInspired by this question and my answer to it I told myself I could try an optimized version for a 4x4 puzzle. There are only \$16!\$ possible states, so the state fits into a single long. However, representing the state as a primitive is ugly and precludes generalizations to bigger puzzles. Bef...

 
hi
 
2:15 PM
hey @nhgrif
 
I think a "full code review" should better go to codereview.stackexchange.com And instead of relying on the eyes of others, you might consider to run a profiler to understand more exactly where/when problems occur. — Jägermeister 28 secs ago
Solving known problems (including known memory leaks) is outside the scope of Code Review. — nhgrif 14 secs ago
 
2:43 PM
Is AngularJS really popular in the frontend world?
 
No idea.
 
0
Q: Generating letter combinations

ForceBruIt's about two months since I posted this question on CodeReview. I've been working hard to improve the code posted there and came up with the following. #include <stdio.h> #include <stdlib.h> #include <string.h> typedef unsigned long long ull; int main(void) { ull start=1, stop=100,cnt; ...

 
3:04 PM
0
Q: General feedback on Web API using Repository / UnitOfWork

Scott SmithLooking for feedback on a repository I setup based on a blog post I read here: https://codefizzle.wordpress.com/2012/07/26/correct-use-of-repository-and-unit-of-work-patterns-in-asp-net-mvc/ I have just recently got more into .NET within the past year, so any feedback and/or best practices that...

 
3:18 PM
0
Q: How to know where to implement for-loop?

Aliakbar AhmadiI've written following bash script in order to start multiple instances of a programm daemon (bitcoind = Bitcoin daemon) starting upon multiple independent conf-files: #!/bin/bash #This is a script for creating a test network consisting of 2 bitcoin regtest peers. #Step 1: creating data director...

 
I have the fun job of picking out a laptop for a family member.
 
i recommend something with cheap spare parts
 
She is going with Windows, apparently.
I'm looking through HP and Alienware because she needs high-performance.
HP gaming/Envy systems.
 
3:24 PM
Well, don't get Alienware... because for as much shit as people give Apple for overpriced products...
 
OK.
 
I should be getting a brand new top end MacBook Pro sometime this summer though, from new work.
 
I have an Envy, and I really love it.
 
0
Q: Which exception should be thrown and where

KrowiFirst some introduction to my question I hope the extension methods ThrowArgumentNullExceptionIfNullOrEmpty and ThrowNullReferenceExceptionIfNullOrEmpty are straightforward. I have a property in my class called ConnectionString. I can set this property through a method called SetConnectionStrin...

0
Q: Please help me to make this code more easy to understand of Markle-Hellman Cyptosystem

BROYI have converted this code from Java to C#, but, do not understand the entire code. Especially, the masking. Please, tell me how to make Encryption and Decryption functions more easy to understand. public class SupIncrGenerator { public static List<BigInteger> GetSupIncSequence(BigInteger f...

 
My blog admin pages are loading ridiculously slowly.
And they're not loading entirely correctly.
 
4:04 PM
New post: Programming, Objectively http://importblogkit.com/2015/04/programming-objectively/ #programming
 
4:19 PM
AngularJS looks both powerful and difficult to understand easily
 
I DID IT
I mastered Android
Slight sidenote to self: if you're trying to display an updated list, call notifyDataSetChanged(). Don't try to redraw the entire fragment. Java doesn't like that.
 
@JeroenVannevel on Android?!
 
Java doesn't like developers, JK.
 
I am horrified by the way UI building is done in Android
WP wasn't much better
I'll assume this is something integral to UI building in general, but still
 
Not sure how you did it, but I use a XAML page like a webpage for the UI.
 
4:31 PM
I'm making a really straightforward UI and the hugely convoluted way of how things are done or how you're supposed to bypass random restrictions.. It's yuck
I'm using XML as well but that isn't remotely everything that comes with building a UI
You've got fragments, adapters, listeners, more adapters, black box magic, etc
 
I just have a XAML page, its connected C# page (code behind), and another C# page for the VM.
 
@JeroenVannevel I like the black box magic most
 
Ehhh I don't like it
But I suppose that'll improve the more I know about Android's internals
For now I'm just glad my stuff works
2
 
@nhgrif requesting that "new posts of import blogkit" rss feed be added to the room ;)
 
I'm voting to close this question as off-topic because it is asking for code review. — Felix Kling 17 secs ago
 
4:43 PM
0
Q: Travelling Salesmen Problem - Dynamic Programming

Prasad ShindeHi I wanted to review my TSP program for correctness in my approach. Although I have not implemented one function subset which would be simple. Sorry for not adding comments in the program I wanted to verify if I'm proceeding in the right directions : public class TravellingSalesmanProblem { pri...

0
Q: SecureString as SqlParameter value without GC concerns

jnm2The purpose here is to make it easy to use sensitive data that is already in the form of a SecureString (example) without converting it to a String object and risking more leaks than necessary. SecureString isn't about total security, but it is about reducing attack surface. For example, when yo...

 
5:05 PM
0
Q: Excel Laboratory Data Entry from Python 2.7

big_ligandsI've written a script to automate the entry of laboratory instrument data into an Excel spreadsheet using pandas and win32com. I've got the script functioning correctly, but it is painfully slow. In an attempt to profile the code, my acfmp_ToExcel function seems to be the culprit. I've pasted th...

 
5:22 PM
@JeroenVannevel It's not. UI for iOS is way better than everything else I've done.
 
Just read your post on OOP.
I still like the Library thing I did to learn OOP.
Also, it reminds me a bit like a computer.
That is, a static class does.
 
@Chaithra It is not clear what are these codility tests. I think that it is enpugh that there is a code review of your code. by other members of the team:) — Vlad from Moscow 53 secs ago
 
You connect to the computer through ports (public methods), which use the private methods (the processor, drive, and other stuff), which you most likely don't know a thing about and don't need to know about.
 
0
Q: Minimal Map implementation with weak values

FeuermurmelWhat follows is an implementation of the java.util.Map interface with weak values. This means that entries should be removed from the map when their values become weakly reachable, in the same way that WeakHashMap removes entries whose keys have become weakly reachable. It is intended to fully i...

 
And so I've wasted my morning finding a computer for someone when I intended on doing school...
> If your code isn't working as expected, it won't help you any if we make it do what you didn't want it to do better.
 
5:40 PM
I found a supercomputer in a laptop's body (well, not literally, but close enough!) for about $3k - a Zbook from HP.
That is too expensive, though.
Just saying, for anyone who wants a supercomputer in a laptop's body at that price.
 
@Hosch250 Learning how to create a static class (by this, I assume you mean a class which you don't instantiate instances of) falls short of actually learning OOP.
 
@nhgrif I know that much.
All I said was a static class reminded me of a computer.
A non-static class doesn't because you can't instantiate new computers as you need them quite in the same way, although it is somewhat similar because you have to give up more resources (money) to add a new computer.
 
What if I go to a store to buy a computer? Hmm? Hmmmmmmmmmmm?
 
@rolfl I noticed that later on when I read the question again. just thought I would throw it out there.
 
6:11 PM
@rolfl I updated my answer, I added some information about my experiences with your code and my code both on Desktop and on my phone.
 
Monking
 
Don't know if anyone saw my zombie kill:
1
A: Photo gallery layout

Hosch250First, I will start with the good: <figure> <img src="photo1.jpg" /> <figcaption>Photo 1</figcaption> </figure> It is excellent that you use the HTML5 tag figure instead of a plain old div. You may just have removed this for brevity (many people do), but when you write HTML, you shoul...

The poster did.
@sᴉɔuɐɹɥԀ Thanks for the answer.
@JeroenVannevel Is it like the processor going to the memory for the class?
 
6:40 PM
0
Q: I am a newbee with oops...i need to do a form validation using oop php

munna ss include 'Db.Mysql_Engine.php'; class form { protected $name; protected $number; protected $location; protected $address; protected $complaint; public $data=array(); public $errors=array(); public $key_error_from_form=false; function check_empty() { $data=array($this->name,$this->

 
@Hosch250 You're welcome.
@CaptainObvious I am a newbee with titles... i need to do a title validation using proper English
 
1
Q: JPaint (Java painting app)

thecoder16I have this painting app called JPaint in Java and I'm wondering if it could be improved. The variable declaration seems repetitive and long, and I think it might be able to be improved. public class JPaint3 { private JFrame frame; private JFrame startFrame; private DrawPanel drawPa...

 
@Hosch250 Have you ever seen Billy Madison?
 
0
Q: Iterative tree traversal to turn tree into a dictionary and list

KevinI am trying to iteratively turn a tree into a list for example c1 c11 c12 c111 c112 the tree above should return [ {'value': 'c1', 'children': [ {'value': 'c12', 'children': []} , ...

 
7:08 PM
0
Q: Hashmap in Java

SteveIm trying to use a HashMap to do a project where i read in a list of jumbled words and a file of actual dictionary words and use a HashMap to find all the words that match in the jumbled words file an prints them out. The issue is that I cannot get it to print the correct dictionary form of the w...

0
Q: Refactor javascript code to make it more modular

Menelik TuckerThe following code is complete and works perfectly. What I want to do to is make it more modular in a way where I can use the code again - similar to an api. I also hardly ever code in javascript, and I think me code looks disgusting, I feel like there are cleaner ways to write what I've written...

 
7:27 PM
@nhgrif No, why?
 
No reason...
 
OK.
 
I'm just confused as to what you're talking about.
 
Hold on, I'm finishing a review.
OK.
Using a non-static class from an API is not so much like using the same computer over and over again, it is a bit more like getting a new computer for each task.
 
Did you read my blog post?
 
7:31 PM
Yes.
 
That's what started this, right?
 
Yeah.
 
You seem to be talking about only having one instance at a time... which misses a point that you'd pick up by doing a RationalNumber or ComplexNumber class.
(specifically, when you try to do math with multiple objects of this class)
 
No, you can have a ton of instances of a class at any time.
 
Yes, I know.
 
7:33 PM
That is, of a non-static class.
 
I just think your explanation is confusing.
 
Probably.
 
When I think of a "computer", I think of something that does stuff for me.
 
Like a public method.
 
To me, a "computer" is something that accepts inputs and spits out outputs.
 
7:36 PM
A public Add() method in the rational number class adds rational numbers and returns a rational number.
 
Maybe. But not really.
 
It takes input, does a calculation, and returns an output.
 
The instance method of Add() should probably return void and instead modify the fraction it was called on.
Let's say we have:
Fraction *oneHalf = [Fraction fractionWithNumerator: 1 denominator: 2];
 
Yes, but you could also provide an Add(ratNum1, ratNum2) if you don't want to modify them.
 
Yes, but that's not an instance method. That's a static method.
 
7:38 PM
RationalNumber.Add()
Yes.
 
[oneHalf add:threeFourths];
 
The instance method is not like a computer.
 
^ should return void, and oneHalf should now be 5/4ths
The thing is, @Hosch250, understanding how static methods work isn't at the crux of learning how to actually write good object oriented code.
If you started learning programming in a language like C or C++, where you can actually write code outside of classes, this is how you start writing code.
You write functions that are not part of classes, that don't depend on the state of an object nor do they modify an object.
 
I did start in C++.
 
They take a set of inputs and return an output.
So you already know how to write static (class methods) in object oriented code.
 
7:42 PM
Yes.
I write both static and non-static somewhat regularly.
On a different note, would you go AMD graphics or NVidia?
 
Right... that's fine. If I had to guess, you might be overusing static... but my point is, espiecially with regards to my blog entry, learning static methods is really not important for the initial voyage into wrapping your head around how to do OOP.
 
Maybe, but most of classes are not static.
 
Writing static methods is the trap that people who don't understand OOP fall into. You can't possibly understand what static means until you understand the concept of OOP and instantiating different objects...
 
I actually prefer not using static.
 
@Hosch250 Trying to start a flame war? lol
 
7:44 PM
@sᴉɔuɐɹɥԀ No, I've never used AMD hardware.
We are now looking at a computer with AMD graphics instead of the NVidia Quadro one I had picked, and I'm not sure what to say.
 
And so you don't know what they mean, but you try to reference a non-static method from your static method, and you can't because compiler errors... and you just make everything static because you don't get it.
 
I'm not a pro, so I'll just say: They're probably both pretty much equally good, just get whichever one has all the features you need at the most reasonable price.
 
@nhgrif I've already worked through that.
It makes me laugh to think of how confused I was back then.
 
Yes...
And my most recent blog post is targeted toward people who haven't worked their way through that.
Which I why I was complaining about the confusion of your computer example.
 
I know, I think I've confused myself over that at this point.
It was just one of those passing thoughts that don't work out.
 
7:48 PM
RationalNumber or ComplexNumber are the best practice exercises for learning OOP, in my opinion, because it's totally natural to want to do math with them like you'd want to do with the other number types.
And you can't really do that without figuring out the full meaning of instantiation.
 
0
Q: Suffix tree implemenation in java

sc_rayI was trying to solve the problem where given a larger string and an array/list of smaller string, we need to make the determination whether the larger string contains each of the smaller strings. I realized one way to do it would be to create a suffix tree for the larger string and then look for...

 
monking!
 
Monking.
 
Morning
 
@Hosch250 can you do me a favor? I've built the installers for Rubberduck 1.3, the x64 one seems to work perfectly, but I don't have a x86 setup handy and I'd like to release now... care to test it for me?
 
7:56 PM
Sure.
 
awesome! make sure you uninstall any previous rubberduck version you have first though
 
Installer doesn't work for me, @Mat'sMug
 
you're on an Apple?
 
No, I'm on a chair.
 
I don't have a Dropbox.
 
7:58 PM
I have a banana in the kitchen though. Do I need to get that?
 
@Hosch250 just skip that screen
@nhgrif so RD doesn't work on Office for Apple, is that so?
or you got an error message? or you're just shitting me? ;)
 

« first day (714 days earlier)      last day (3303 days later) »