« first day (530 days earlier)      last day (3473 days later) » 

12:00 AM
0
Q: Creating a Singly Linked List of Structs?

Tai M.So I'm pretty new to linked lists - I understand the concept and how they work - but coding them is a bit more...complicated. I have some code below that I'm using for homework - essentially we're to create a struct containing data for a football player, and then create a linked list and add the...

 
12:17 AM
ugh, anyone remember how to put code in spoiler blocks?
nm, got it. >! <pre> .. </pre>
 
@mjolka you don't need the <pre> tags nevermind, you do
they don't play well together though
 
they suuure don't
 
12:38 AM
You shouldn't need the pre tags @mjolka
4
A: Are encrypted answers acceptable?

RubberDuckI don't see an issue with the encrypted answer, but I would definitely prefer to see the spoiler markdown instead. It keeps everything nicely packaged right here on Code Review without needing any external resources /or links. For those who may not know how to use it, this Hint 1: >! This is a ...

 
Interesting
 
@RubberDuck try putting code blocks in there ;)
I think I've only used backticks for embedding code in spoiler blocks
 
Ahhhhhh.
 
Note that the off-topic close reasons have just been revised ;-)
small changes only (not in the wording, just in the links).
Dinner time!
 
12:59 AM
Hopefully it's not duck...
 
Duck..... Yummy.
 
1:19 AM
wow... we gotta be special
12
Q: Advertising Computer Science Stack Exchange on other SE sites

GillesGraduated Stack Exchange sites display ads chosen by the community in the right-side bar. “Graduated” means sites that have been around for long enough to no longer be in beta, other than the original trilogy. We could propose ads refering people to Computer Science SE. Programmers and Mathemati...

 
other sites seem to have the same issues. even decent submitted ads are not really upvoted much eg on programmers.se... local groups seem not so likely to vote up ads for other se sites... seems it would require se advocates for the advertised site (in this case cs.se) to visit/upvote on the other sites — vzn Jan 3 at 6:28
check out the number of answers
 
1:47 AM
Zero...?
 
like, ..how does that happen?
 
Guess they don't care quite as much
5
 
PhoneStar^
 
GAASN :)
2
(Go Ahead And Star Now)
 
I feel CR will rise to be one of the top-X SE sites (if it's not already). SO are great at downvotes, programmers know about fine beer, and we're really good with linked lists and FizzBuzz.
8
 
1:53 AM
;)
 
@Phrancis Don't tell anyone, but I am hopeful.
I think it all has to do with how well we can keep the place 'happy'.
3
 
^^ I second that
and lol:
user image
2
user image
2
18
A: Stack Overflow needz moar ads

Shog9Stevvve The Adnificent has added the following six ads to the system: These should be showing up randomly to users with 5,000+ reputation who happen to be browsing through them. We'll check back after a bit to see if it's made any difference...

 
@rolfl I'll keep it under wraps ;-)
 
2:35 AM
0
Q: ExpressJS easily serve static files

Brendan AshworthI have a NodeJS package, staticize, which takes an object of HTTP routes -> file locations, then serves them dynamically on each request. Could I get some feedback on the latest rewrite of the main file? (Also available on GitHub here) var fs = require('fs'); var mime = require('mime'); module...

0
Q: Optimize rand with if/else statement

user56192I am currently learning c and playing around with the rand() and if/else statement. This code looks long, just curious if there is another way to make the code shorter? The code below works fine, it's just randomize the output everytime someone answers the question incorrectly. code: while(inp...

 
2:59 AM
0
Q: Is there a format process for submitting Community Ads?

retailcoderI like community-ads. They have the word community in them, and I find it's a great way of making the "bigger brother" graduated sites give some visibility to beta sites. On graduated sites, anyone with an account can post any ad on the community-ads meta post, and if/when they get 6 votes, they...

 
Zombie Killer (got my +1):
1
A: Base generic DAO optimizations

Joris Hilhorst How to realize immutable objects in GenericDAOImpl? By creating copies of the objects you get in, rather than keeping references to the objects. With generics this is may be tricky but if T extends Cloneable you could at least call clone() on it to create a field for field copy. This will not ...

 
I think my answer is terrible...
 
Oh well, only one way to get better
 
you end up with this definition for the fibonacci sequence: fibs3 = x / (1 - x - x^2)
*Main> take 20 $ streamToList fibs3
[0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181]
that's insane
 
3:03 AM
Nice zombie kill! Welcome aboard! — Mat's Mug 12 secs ago
 
Is it good to show the rewritten code in full after you answer the question?
 
YES: "You've earned the tag badge"
5
 
well done monkey!
 
@TheFailure It can be helpful, but not necessary
 
@TheFailure it can go either way. sometimes i'll not do it because i think OP would learn more putting it all together. sometimes it's just nice to see it all in one place
 
3:04 AM
Oh ok.
 
I will do it if the problem intrigues me, and if I feel that it's not a question
 
In my answer i moved a variable outside of the code the question gave me
And it is tagged beginner
 
and TTGTB
 
@TheFailure I see you answered a really old question. This is not a problem, of itself, but people will often ignore old question that have accepted answers already.
that goes for both answering, and voting... which is probably why noone upvoted that until I went looking ;-)
 
@rolfl I was using that as a practice question....
@rolfl I was answering this one: codereview.stackexchange.com/questions/66815/…
Sorry
 
3:11 AM
I see that one too, it got my +1, but, have you considered an array-of-string and then just indexing the message instead of the switch statement?
 
Oh..... I am an idiot
 
conisered #monkeytypo
 
I think those both need to be pinned
 
lol
 
So should I just leave my answer as is?
 
3:13 AM
 
@vnp already posted that solution
 
@TheFailure Nah, answers you can edit... ;-) Go ahead and fix it.
Oh, he did... oops.
 
Yeah
Oh well....
Maybe next time I wont stuff up so badly
 
you got FGITW'd!
 
@TheFailure Naahh, This is how you learn.
 
3:15 AM
True, I didn't say it was right, i said "In conclusion my code would have been:"
 
It's one of the best things about Code Review, is that you get to see how other people think
4
That moment when you see someone do something in an unexpected, or clever way.
... and think: "Oh, I can file that one away for later."
 
Hmmmm
Okay thanks!
I will work towards getting better
Because I like here over SO
5
 
3:32 AM
1
Q: Longest Common Subsequence and Longest Subsequence Palindrome

Millie SmithThe following code computes: The longest common subsequence between two strings, where a subsequence of a sequence does not have to consist of contiguous elements of the sequence. The longest subsequence in a string that is a palindrome. All suggestions are welcome (more idiomatic f#, optimi...

 
3:57 AM
Ummmmmm
Why was my answer accepted.....
 
Welcome to the wonders of human nature. Unpredictable, and swayed by all sorts of factors.
in this case, maybe because you pointed out the rand-in-the-loop issue, or because you were first. Who knows.
 
hmmmm
 
4:17 AM
Thanks, Santa! Now one-away.
 
4:28 AM
@Jamal :p
 
:-)
 
Another round of TF2 this weekend? This time on the same team ?
 
I'll try to find some time.
 
4:49 AM
Monking @all
 
vnp
Good Thursday
 
Hmmm
 
C++ hates me
 
@TheFailure don't worry, c++ hates most people
 
4:57 AM
I think C hates me. It keeps giving me segfaults.
 
@Jamal that's a sign of affection. like a cat bringing you a dead bird
 
It's OK @Jamal ... PHP hates me ... It keeps giving me dollar signs yet I'm always broke still :)
 
vnp
segfaults are good once you can reproduce them
 
valgrind/gdb <3
 
I think it actually made up for it by allowing me to allocate three somewhat large arrays, one after the other.
 
vnp
4:59 AM
overcommiting?
 
How large?
 
yeah, linux does this fun little tricky thing sometimes where it will pretend to allocate memory x.x
can be pretty annoying when you think allocation succeeded, and it didn't quite.... lol
 
vnp
and some people recommend to test malloc returns for 0
Oh well
 
0
Q: Validating and averaging student grades

brunsgaardI have myself a little challenge tonight. I've tried to come up with the shortest code for the problem below (the code is pretty self explanatory, except determinGrade there which follows the rule A - 90-100% B - 80-89% C - 70-79% D - 60-69% F - Below 60% code has to be PEP8 complient a...

 
eh, just because malloc doesnt ever return null now doesn't mean it might not st some point
and cross platform stuff.... :/
 
vnp
5:02 AM
I mean, they believe they are safe
 
Should I be storing locations in vectors?
 
ahhhh
 
One of them was up to 16*65536, another up to 16, and the last up to 4 billion.
 
"By default, Linux follows an optimistic memory allocation strategy. This means that when malloc() returns non-NULL there is no guarantee that the memory really is available." well i never
 
haha yeah that's definitely over commit unless you're rocking a ton of memory
 
vnp
5:03 AM
definitely overcommiting
 
And I was running this on Linux (remote connection to school).
 
that could actually epxlain the segfault
if the OOM killer is doing strange things
not sure if that would show up as a segfault though
been ages since i've actually had an OOM x.x
 
Nah, the segfaults were mostly from the parallel stuff. The latest was from me forgetting to change the loop counter from int to long.
 
hrmmm on a school server it's possible there might be tons of RAM
 
And I do free my memory like a good little boy.
 
5:05 AM
even 4 billion ints is 16GB though... lol
 
Yeah, and none of that mattered when I ran it on our designated supercomputer.
 
vnp
it's not OOM
killer I mean
 
A ton of memory would technically be about... 29K GBs of RAM
based on Dell 1GB RAM
 
that could certainly handle 16GB then :p
based on 1GB DIMMs? what is this, 2000?
 
Just picked first Amazon link ;P
<-- not very good at math
 
vnp
5:08 AM
@Jamal do you really need that much?
 
Yes, it's part of a school project. The array with 4 billion elements (at the max) is of type unsigned short.
 
vnp
and you need all at once?
 
Yes
 
vnp
that's some project I must say
 
4 000 000 000 000
 
5:11 AM
Yeah, we're pretty much parallelizing the same two programs.
 
That's... big.
 
OpenMP is next week, then CUDA.
 
you have 2^32 values, but each value is one of 2^16 possible values, so... lots of duplicates. maybe there's a more efficient representation
we're out of milk. this tea is ruined. this day is ruined.
 
Milk... in tea?
 
vnp
Hold it. You. Drink. Tea. With. Milk?
Am I right?
 
5:19 AM
but of course
milk and two sugars
 
vnp
Substitute brandy perhaps
3
 
I can stomach coffee with a bit of milk and sugar... but tea... ... !?
 
i like the way you think
"Many teas are traditionally drunk with milk in cultures where dairy products are consumed."
 
Must be indeed a cultural thing :)
 
i guess it's builder's tea en.wikipedia.org/wiki/Builder's_tea
 
vnp
5:23 AM
I personally know English and Russian milk-poisoning their tea. Anybody else?
 
I've had plain tea and can appreciate the flavor, esp. green tea. But milk just doesn't ... quite fit ?
 
@Phrancis think english breakfast, not green
 
Is that much the same as... well here in USA they call it black tea... haven't had it very many times
 
vnp
Lets not get into gory details. I also happen to know few Kazakhs and Mongols adding mutton fat to their tea.
 
it's a black tea, yes
 
5:28 AM
monking @mjolka, @Phrancis and @vnp
 
0
Q: Output digits of a number

PrestigeThis is a simple C++ program I had to write for class. It prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. How do I improve this? For example: Input: 3456 Output: 3 4 5 6 Sum of all digits: 19 Input: 1234 Output: 1 2 ...

 
sup @chillworld
 
to much work ;)
 
Monknight!
 
I'm working hard so I can be back more active here
 
5:35 AM
@mjolka there is not much of a culture of tea here, except for cold "sweet tea"
(a.k.a. iced tea with lots of sugar/corn syrup)
 
vnp
monking @chillworld
 
5:54 AM
Monking
 
6:07 AM
@SimonAndréForsberg @rolfl Nice work:
Thanks - learned a TON. The poker challenge was a great model; the CR/meta guides for asking questions and follow-up posts were also really helpful. — a2bfay 5 hours ago
 
0
Q: Multithreaded Lock Free Queue Implementation

TorbenCMy partner and I are beginning to believe there could be a desync possibility in the lock free queue we have written. But we would like some fresh eyes on the subject. What are your thoughts on our design? Critiques welcome and wanted. Thank you. // nolockqueue.hpp: #ifndef NOLOCKQUEUE_HPP #def...

 
Why am I getting ☺ when I access an unordered_map
Never mind
 
6:30 AM
Do maps make you happy?
 
No
I am not happy at all
But I don't want to give up and go back to Java
I give up for now...
 
6:47 AM
0
Q: Display integers from array into textbox

shakaI've got a text box called txtbox, and have numbers in an array called number, I need to display the numbers in this array in the textbox in an event procedure (the user will click on Next and i have to show the next number in the number array), I've got this code and I need help as to where I we...

 
2
Q: Implement UncaughtExceptionHandler in Java 1.3

Matthew WalkerHow can I pass an exception that has been thrown in one thread to its calling thread? I am obliged to use Java version 1.3. Thread.UncaughtExceptionHandler was added in Java 1.5. I'm quite happy if I have to wrap my code up in a try block and therefore catch the exception inside the thread tha...

> I am obliged to use Java version 1.3.
That were his last words.
 
Sounds fun
 
7:01 AM
0
Q: JQueryMobile- Organize , manage and optimize code

AAhadI have received a project that is built on Cordova with JQueryMobile. The App is already published on three platforms and is being used by 100K+ users. Now I have to add new functionality in it. But when i checked the code, it looks less organized; poorly written; lacks code maintainability;has u...

 
@skiwi fingers itching ... wanna remove fluff!
 
7:18 AM
0
Q: Collatz Conjecture in Python

Popey GilbertThe Collatz's Conjecture states that any number can either be halved (if it is even) or multiplied by three and added one to (if it is odd) and eventually reach 1. I was wondering if there was a more efficient way to work out the series that a number takes to get to one and the amount of steps i...

 
7:30 AM
public <T> T getPropertyValue(final TemplateProperty property, final Class<T> clazz) {
    if (!clazz.isAssignableFrom(property.getDataClass())) {
        throw new IllegalArgumentException("property " + property + " is of type " + property.getDataClass().getName() + ", attempted to assign it to " + clazz.getName());
    }
    return clazz.cast(property.getDataClass().cast(properties.get(property).getObject()));
}
Is this an improvement over a ClassCastException?
With the latter I wouldn't need to specify Class<T> clazz
As property.getDataClass() returns a Class<?>
 
0
Q: Compare Objects and show divergent keys

Alexander ScholzI want to deep compare N objects and show all keys that are not present in all objects. The value doesn't matter: var a = { "index": "foo", "one": true } var b = { "index": "bar", "two": 1, "three": undefined } var c = { "index": undefined, "two": 2, "three": null } co...

 
I'm surprised Java doesn't have Long.negate() actually
 
Why?
 
8:02 AM
0
Q: Compute the time complexity for this algorithm

STACK_LIFOThe original problem is: Define the height of a binary tree to be the number of nodes in the longest path from the root to a leaf. The empty tree is considered to have height 0. A node is k-balanced if its left and right subtrees differ in height by at most k. A tree is k-balanced if al...

0
Q: Count Point in an area

yozawiratamaHi everyone i create how to count point in an area, i create it : http://jsfiddle.net/yozawiratama/t8ns8rm3/ this is my js code : $(document).ready(function () { var area = [ [4, 4], [4, -4], [-4, -4], [-2, -2], [-2, 2], [-4, 4], ...

0
Q: JavaScript loop - is this an antipattern

keldarWhenever I write a loop, I always use closure if it's appropriate by way of a self-executing anonymous function. I will typically write my searching loops as follows: var i = 0, length = myArr.length, fe = null; for (; i < length; i++) { if ((function (el) { if (el.searchCon...

 
8:39 AM
0
Q: MVC cookie authentication: something is not working

ReviousI'm doing probably something wrong. The "remember me" function is actually not working.. Can you have a look? [HttpPost] public JsonResult MyLogin(string userName, string password, bool rememberMe) { try { var accountClient = new AccountClient(RequestSettings.Language, Reques...

 
Monking
 
Monking @Vogel612
 
much javascript...
@CaptainObvious broken code...
aaand instant self-delete...
 
Could someone explain the "Monking" thing?
 
8:57 AM
Meme-page ;)
14
A: What's a Zombie? And what are the many other memes of Code Review?

Vogel612Meme: Monking Originator: Morwenn Cultural Height: The 2nd Monitor Background: A morning greeting to the Monkey doing his monkey-business, in other words: monking Examples: A small chat search Variations: Monkernoon, Monkevening, Monknight, ... Important is only that it begins with Monk... ;...

 
0
Q: Typing slider (cursor). Explanation of DOM manipulations.

user307I need to cut the program to the final logic cut. It's now ~10 times smaller, although it's as far as I could get in my understanding now. Given two identical text strings. When you write in you should write letters which have to be identical to the given line. And while you're typing the curso...

 
Ok, now I understand
 
you know, there's always more ;)
 
9:20 AM
0
Q: Matrix reloaded ... or reversed

HeslacherI have written this Matrix class after posting an answer to Malachi's rags-to-riches question. The initial purpose had been to reverse a matrix represented by a 2d array. I have changed it to a more object orientated version. Just for fun I have added the ability to sum two Matrix objects. publi...

0
Q: Switching pages with css3 and jQuery

FerexI am trying to implement a custom page switcher. In this fiddle I succeeded in doing what I want. Do you think it can be done in a better way, above all performance wise? For example, on iPad (first generation) I can't even see the transition, for its sloppiness. Is the problem in the css: div[d...

 
@Heslacher "Is can there be anything improved?", has one auxiliary too much..-
 
What ever a auxiliary is. Did I miss a comma ?
Now: "This works like a charme. Is there anything to improve ?"
 
Auxiliaries: the "main" verbs like "to be" or "to have" for example.
Thos that can be used alongside other verbs to change the meaning of the sentence.
 
Thanks @Morwenn
 
Is Can there be anything improved?
 
9:34 AM
0
Q: Code generated by ODI giving error

SparkyI have created a simple ODI interface that will read from a flat file and insert into a Oracle table. However, when i execute the interface, it fails in one of the steps giving the error message : ORA-00936: missing expression The code generated by this step is :- /* DETECTION_STRATEGY = NO...

0
Q: My code arranges an input of sentences in an alphabetical order

AdityaFor an online contest whose problem is here, I wrote some code(first time some proper coding). It is working perfectly as far as I know.I tried running the given example there and it worked perfectly, but when I submitted the code to the online judge it didn't passed any of the 9 test(not a singl...

 
So how should this sentence be written "As this works like a charme, the question is can there be anything improved ? " ???
Should it just be with a comma like "As this works like a charme, the question is, can there be anything improved ? " ??
 
I'd remove the comma after charm (without e), and put one before the can..
 
Thanks
 
especially since charm != charme ;)
@CaptainObvious this one smells off-topic -> broken
@CaptainObvious and this one definitely is.
 
Depends whether you're more into Oxford commas or American commas.
 
9:47 AM
Ebola is scary
 
Well, as long as you don't touch infected patients with syndroms, there isn't any problem.
While this may be problematic in some parts of the World, people tend not to touch each other that easily in the Western civilization.
 
True.......
 
There are two things that make ebola far less scary than other diseases: you have to be in contact with someone's bodily fluids, and people are not contagious (infectious? Which is it?) during the incubation period.
If we know that the virus is around, we simply have to make sure to be careful around people with fever.
 
And after that they explode, diseased bits flying everywhere!
... oh, wait, you're talking about something else.
Nevermind then.
 
To sum up: what Ebola does to you once you have contracted it is scary and the cures are not mature yet, but compared to many diseases, it is easy not to contract it.
 
9:58 AM
Anyone doing the counting unique words question?
 
which one?
 
I may have complicated things a bit too much...
When code gives you this:
return clazz.cast(property.getDataClass().cast(properties.get(property).getOcrObject().‌​getObject()));
 
@TheFailure strip the # part of your link
 
Explain
???
 
10:00 AM
0
Q: Arranging sentences in alphabetical order

AdityaFor an online contest whose problem is here, I wrote some code(first time some proper coding). In this problem the input will consist of a number of lines of English text consisting of the letters of the English alphabet, the punctuation marks ' (apostrophe), . (full stop), , (comma), ; (sem...

It outexpands if you do that
 
I dont know how to do that
Hmmmmm
 
either mouse over your message, then click the downward icon that appears and select edit...
 
Btw, when you read the question is the input from arguments or a Scanner...?
 
Or hit up-arrow until you reach the message you wanna edit.
 
0
Q: Arranging sentences in alphabetical order

AdityaFor an online contest whose problem is here, I wrote some code(first time some proper coding). In this problem the input will consist of a number of lines of English text consisting of the letters of the English alphabet, the punctuation marks ' (apostrophe), . (full stop), , (comma), ; (sem...

Oh :)!
YAY
 
10:03 AM
yes it works I could not format it the same as my editor and it doesn't say time limit exceeded or out of memory but wrong answer — Aditya 2 mins ago
I fixed the indentation on their question.
 
Yeah
 
It also needs to be VTC'd so it's on hold until they have it working.
 
The code is a little long for what he wants to do
 
no, it's broken.
End of story
Okay maybe that's a bit rude
But basically, investing your time in reviewing code that is broken is... not worth it.
You know, the question looks pretty good now actually
I wish we could migrate it.
hah
I think I know what's wrong with it too
 
    public List<String> getUniqueWords(List<String> input) {
		HashSet<String> uniquewords = new HashSet<String>();
		for (String s : input) {
			String[] words = s.replaceAll("[^A-Za-z\\s]", a"").toLowerCase().split(" ");
			for (String word : words) {
				uniquewords.add(word);
			}
		}
		List<String> output = new ArrayList<String>(uniquewords);
		Collections.sort(output);
		return output;
	}
 
10:11 AM
Hit the up arrow key, then press fixed font
 
Sudden realization that a lot of my Map objects can be replaced with EnumMap objects
 
tadaa code.
 
I think that would work
Even if it has special characters
 
... haha
Just add everything in lower case to a HashSet
then add it back to a list, sort it and print it.
 
Except that random a
s.replaceAll("[^A-Za-z\\s]", "") is important
Because it says that "In this problem the input will consist of a number of lines of English text consisting of the letters of the English alphabet, the punctuation marks ' (apostrophe), . (full stop), , (comma), ; (semicolon), : (colon) and white space characters (blank, newline)."
 
10:14 AM
erm... what does that regex do
 
Removes everything that isn't a letter or a space
Then when you split at the spaces all you are left with is words
 
erm
 
What?
 
If you do that
then this fails because that is
faulty code
strip newlines:
If you do thatthen this fails because that isfaulty code
woopsie.
 
Whoops
replaceAll("[^A-Za-z\\n\\s]", "")
Should I answer?
 
10:18 AM
When the farmer's wife called Bob back in, the other farmers went back to their work as well.
Another bug.
 
:( What did i do now...
Oh
 
test it and see.
 
......
 
=D
 
Yeah I see
So I should keep ' as well
 
10:19 AM
you get them as input.
 
replaceAll("[^A-Za-z\\n\\s']", "")
Yeah
 
doesn't mean you need to do anything with them.
 
10:31 AM
That whole thing is a 1-liner.....
 
Yous closed it when i have written so many lines for an answer....
 
28 mins ago, by Pimgd
But basically, investing your time in reviewing code that is broken is... not worth it.
For this exact reason.
 
Sort of sorry about that, but, it is more than just "not being worth it". It is worse than that. We don't want to be encouraging people to post broken code hoping to get a fix.
 
True
You should be able to hold an answer as well in case this happens
And then go back and edit after
But I will just put in a txt file for now
I don't get how C arrays work...
 
10:41 AM
They are kind of broken. What don't you understand?
 
Declaring an array globally then initializing in the constructor
 
WAT
 
Never mind.
I am just stupid ;P
 
11:00 AM
Anyway...
 
Meh, I don't like what I've made, but too late to change it now
 
0
Q: Removing asInstance[T] from scala code

LucasI've written this scala code and I cannot work out how/if it is possible to remove the asInstance in the definition of class B. The basic idea is that there are two hierarchies (A,AA,AAA and B,BB,BBB), that would be, in principle branched, though they are not here. A classes operate on B classes...

 
//invoice number validations
validationFunctions.get(INVOICE_NUMBER).add(scoredInvoiceDataSet -> {
    String invoiceNumber = scoredInvoiceDataSet.getPropertyValue(INVOICE_NUMBER, String.class);
    if (invoiceNumber.codePoints().allMatch(Character::isLetter)) {
        return INCORRECT;
    }
    return UNKNOWN;
});
Looks ugly like hell
 
Hmm
 
@CaptainObvious pseudocode..
 
11:17 AM
@Vogel612 again, something I wish I could migrate
 
I doubt this would be good to go for programmers in that state...
or any site actually..
 
it needs one introductory paragraph and it makes a good SO question.
 
really?? then the scope of SO is not really understandable to me..
but eh..
 
11:45 AM
Someone validate my VBA knowledge, I'm not sure whether this would cause explosions
0
A: Ugly workaround to get the vbext_ProcKind of a procedure is breaking encapsulation

PimgdSay... what happens if I make a function with a variable name maxDimensions? Or some weird function that takes a boolean isConstant? Your IsSignature fails.

 
@Pimgd I would have no idea about that
 
@Pimgd this is more of a comment....
 
Not many questions come up that I can take a shot at answering
 
You should verify that first and definitely expand on that...
Hey @Ducky ;)
 
Monking @all.
And @Pimgd, you're right. It will break, but please expand on your answer a bit for other readers.
So, no. Not a comment. Legitimate bug.
 
11:48 AM
@TheFailure why that? It's not that difficult to make style-remarks, even about languages you don't know ...
that's how I got most of my rep...
 
That's the thing
I know sweet FA about VBA
 
@RubberDuck It looks like one currently IMO... It's a "hey mind verifying my hunch with more information"?
FA?
 
@Vogel612 I don't feel that confident in doing style remarks about languages i don't know that well.
 
Okay, yeah. It needs explained a bit, but it's definitely a bug I didn't know about.
 
@TheFailure again, that's how I got most of my rep...
mostly indentation and naming issues are almost universal.
 
11:51 AM
expanded a bit
 
common best-practice borkups are relatively easy, too..
stuff like using namespace std;
 
Also I was wondering
@RubberDuck is Property Let valid syntax
 
@Vogel612 Okay, I will try next time :)
 
with two spaces in between
 
@TheFailure keep in mind, these answers are easy and often quickly written here...
 
11:53 AM
@Vogel612 Hmmmmm.... Difficult
 
@Pimgd Much better, and yes it's valid. The IDE will fix the space, but it's still valid. Why? did I muck that up somewhere?
 
GetProcedureType
InStr(1, signatureLine, "Property Get")
If someone put two spaces in between it would fail to register it
a minor point, of course (people should code properly!)
 
Oh. Okay. Yeah. I'm not so worried about that. It's fine so long as I'm not parsing VBScript or something. The IDE will ensure it's one space.
 
Found another
End Sub
if it has a space on the end
 
it seems this is a recurring pattern.....
 
11:59 AM
Hmm, and for End Property if it has a space on the end, you'll throw an error
 

« first day (530 days earlier)      last day (3473 days later) »