« first day (165 days earlier)      last day (3015 days later) » 

02:55
0
A: Creating an object oriented model in VBA using COM and ADODB from 2 depended SQL tables

Mat's Mug Private cn As ADODB.Connection ' global due to being passed around Well that is one confusing comment. The visibility of cn is Private, its scope is therefore restricted to Module1. Was it globally scoped (with a Public, or the deprecated Global access modifier) in a previous version? I like ...

03:39
@RubberDuck fixed issue #42: Instruction now correctly accounts for indentation (until proven otherwise)
 
7 hours later…
10:45
Nice @Mat'sMug! I'm seriously hoping I can sit down and work for a bit this evening. It seems like every time I try the last few days something comes up. It's starting to irritate me a bit.
 
2 hours later…
12:37
I think I'm getting to the point where I need to parse non-regular Expression syntaxes and create Assignment and Comparison nodes.
Good grief I need to find some time to look at what you've been up to.
It feels like ages since I've looked at the repo.
It's probably only been a few days... lol
 
2 hours later…
14:51
Someone on SO is .
9
Q: Using CreateDialog in VBA in an Attempt to Create Modeless Dialog Boxes

CBRF23I want to create a modeless popup dialog in VBA 7.0. So far the most promising route seems to be CreateDialog. First I tried CreateDialogW and received Entry point not found for CreateDialogW in DLL. After opening the DLL, I verified this function was not listed. The MSDN reference linked abov...

@RubberDuck hmmmmmmmmmmmmmmmmmm I want to play with that, too bad I'm so busy as of late...
I know, right?
500 REP bounty on it too.
15:19
@Rubberduck How do I run the code?
Put it in a module and call TstDialog() @Malachi.
call it from one of the sheets?
trying to run it in Excel
I think I figured it out
You could just run it from the immediate window, or just "play" it by putting the cursor inside of it and pressing the play button.
Or, Tools>>Macros>>TstDialog>>Run
it goes straight to GetHiLoWord but there are no words........
hold on.....
15:56
I give up, time to do my work.....
What is the name of the MSForms reference?
@cheezsteak Windows Forms 2.0 Object Library
Crap I don't have it.
That seems like something that should exist.
@cheezsteak Excel or Access?
16:02
Weird
I don't have Access..
You sure its Windows Forms 2.0 Object Library
?
Microsoft Forms 2.0 Object Library
Sorry.
That library doesn't play nice with VBA.. I read somewhere that it's asking for code to crash...
Niether exist.
What are you tlaking about Mug? That's the userform reference.
16:05
IIRC it's part of VB6
Might be wrong though
16:17
Windows Forms 2.0 Object Library is added to the references as soon as you add a UserForm into the VBA project
is THIS new?? haven't seen that before
hey guys
this is briliant
got contacted by some work agency
Excellent Opportunity for a Full Stack Developer Salary £30,000+ Junior Full Stack Developer £60,000+ Senior Full Stack Developer Both including excellent benefits Based in Oxford

Full Stack Developer, Object Orientated, PHP, .Net, Java, Python, NodeJS, SQL, Open Source

Are you looking to work in a fast paced environment where you will be working with a large number of cutting edge technologies? Do you like working on code at all levels including UI, middle tier, backend and databases? Do you like producing high quality code and take coding practices seriously? If this sounds like you the
my reply
Thanks a lot for the info but I am not a PHP developer and don't want to be one, therefore I believe the position is not for me.

I am currently working full time and I am not really seeking any new opportunities so please feel free to exclude me from your contacts.
her:
This is not a PHP below it says PHP or .Net. There is both a PHP and .Net Full stack role available.
me:
Full Stack Developer Requirements:
* Experience with PHP, .Net, Java, Python and NodeJS

It's a full-stack position. You should understand it will involve many technologies as it's not directly aimed at .NET only. I am only interested in .NET only positions. I wouldn't want to become a full-stack due to my personal preference.
@vba4all ".... unless you offer me £1500,000"
her:
I do understand the role.

They are looking for several developers at the moment, a full stack PHP Developer, a full stack Microsoft developer and a full stack Java Developer.
lol HR :P
16:24
now, tell me what is a a full stack Microsoft developer
hahha made my day
yeah the HR people... I do understand the role.
yeah I fkn bet you do... :P
like my IT teacher from elementary school back in the day did - pronouncing MICROSOFT like this: MEECROSOFT
hilarious haha
even that
Full Stack Developer, Object Orientated, PHP, .Net, Java, Python, NodeJS, SQL, Open Source
what does Full Stack Developer (I assume a position) have to do with (Object Oriented - design pattern) , PHP ( programming language), .NET (framework), .... Open Source ( open source WHAT?)
hahhaa
@vba4all HAHAHAHAHA... I've got a full stack over here......
and she's seen my CV somewhere on the internet where I explicitly state that I hate PHP and I will never undertake any PHP related work
orientated
2
yeah
hey guys I am hiring for a Overflown Stack Of Object Orientated Open Sourced Microsoft and JAVA developers.... anyone?
JAVA? Sure, so long as it's not Java though. I only know JAVA.
Context.....
18
A: What's a Zombie? And what are the many other memes of Code Review?

Simon André ForsbergMeme: Java vs. JAVA Originator: Jamal(?) (to be determined) Cultural Height: The 2nd Monitor (as usual), but also in various comments scattered across meta. Background: Question with the word JAVA (instead of Java) in the title or body, is often an indication that the poster is a beginner and/...

16:31
Object Oriental Desgin
2
There must be a blog post or some list of HR people not understanding Developement jargon.
That will be my breaktime.
"Just as you and I have seen job ads calling for five years of experience in a technology that hasn't existed for five years, "
lol
or better
titles are enough :P
"Human Resources suck cock in hell"
hahahha
gosh i need a proper job
got too much time on hands now and it's starting to feel like a one-man army, which is not enough to build really nice apps
16:55
I was looking for a list of HR people requesting ridiculous things. Open Source Microsoft Development or 5+ years in HTML5 Development
ah alright
but interesting read
Me: (final reply)
No problem.

Btw. It’s Object Oriented – not Orientated..

Cheers & Regards,
Michal
> Wanted C/C++ Programmer with Linux Experience
> Opportunity to work in a large enterprise environment with significant career growth.
>
> Required skills include 10 years experience with ANSI/C, C++, TASM or related Assembly experience, Linux/UNIX kernel development, OOP experience, and at least 7 years writing device drivers.
> Salary $29,000 - $35,000 /yr.
17:10
no shit
I wonder if anyone does apply on such postings...
29k? lolz
hopefully that's not USD
in the United States
@cheezsteak I make a lot more than that with just 3 years related experience....
They'll never find what they're looking for.
@Mat'sMug Just the desperate.
I was doing > $50K at my last job, working with a shitty VB6 code base
$30K for any programming position requiring any experience, is theft.
3
> I've had Dean's List students from major engineering schools who couldn't solve a simple problem — and couldn't be coached into figuring out what to do. I have a young man working for me now who majored in Music Composition who rolled his eyes at the problem and said, "You probably don't want to do it that way—the new LINQ to XML tools make it easier...."
> Nor does it mean that someone who worked her way through tech school, or who is self-taught from many fine programming books, lacks an understanding of Computer Science basics. Instead of asking for a degree, the interview process at these companies should include the question, "What's the last programming book you read? When? What did you learn from it?"
^^^ that
17:20
No one knows how to interview for programming positions, period
2
Only other programmers do @enderland.
@RubberDuck that gets hard too but much better than HR that's for sure
yeah, and when my boss brought me in to hire this new guy, my first (and only) question was "is String a value type or a reference type?" - the guy said "uh, ..., well, ...value type...?" - and my former boss still hired him.
(he wanted to hire a .net guy)
In which language? :P
Ah
so they still have everything in VB6
17:24
But also keep in mind, does trivia like that really help? Sometimes trivia is stuff you don't know even if you are a good dev
IDK, but it shows you know the basics of the framework you're pretending to know... no?
I guess I'd say it depends, do you care more that the person knows that or if they can architect/design good code?
I'm a fan of Fizz Buzz like problems.
you can teach trivia, you can't teach design/intelligence
That ^
17:26
that place had no concept of what good code even remotely looks like
Yeah, I'm not even talking about good code. Just the simple ability to code.
well he sure was better than his predecessor
I recently reviewed code samples from 10 prospects. Only 3 correctly completed the task. Only 1 in an even reasonably smart manner.
And they still all stunk to high heaven.
well, who am I to talk.. seen the crap I've written on GitHub?
LOL
Better than my crap on github......
17:29
meh, it begs for a major refactoring
well the Parser crap at least
seen it yet?
Yeah. I've got bugs & issues to fix tonight.
Nah man. Not yet.
You guys are making me want to connect to this project
I have visual studio on my work computer too
So I can't even use that excuse
lol..... fork away my man.
17:31
^^ fork! fork! fork!
Can't use that excuse at home anymore either.
Though no git
Community kicks the shit out of the Express Editions.
Of its free. I have a Mac though
With... Windows installed
@enderland sounds like you're looking for reasons not to ;)
17:33
You guys are monsters :)
mwahahaha
bahahhahaha
Nah @enderland, we just have years of work to do.
Lunchtime though brb
17:34
me too
Yeah. I need to get back to work. Cy'all in a bit.
17:56
:18666871  thats a good one

    Enumerable.Range(1, 100).Select(
                        n =>
                        (n % 15 == 0) ? "FizzBuzz" :
                        (n % 3 == 0) ? "Fizz" :
                        (n % 5 == 0) ? "Buzz" :
                        n.ToString())
                        .ToList()
                        .ForEach(Console.WriteLine);
but that is technically a better one
foreach (var val in Enumerable.Range(1, 100).Select(n => FizzBuzz(Console.WriteLine(val);
        static private string FizzBuzz(int value)
        {
            if (value % 15 == 0)
            {
                return "FizzBuzz";
            }
            if (value % 3 == 0)
            {
                return "Fizz";
            }
            if (value % 5 == 0)
            {
                return "Buzz";
            }
            return value.ToString();
        }
some brackets are missing
I like that the first one uses a method group to output
@vba4all What kind of black magic is that??
the first one makes sense. Can't wrap my head around passing Console.WriteLine into FizzBuzz....
2nd one won't compile
You are missing some parens
18:18
foreach (var val in Enumerable.Range(1, 100).Select(n => FizzBuzz(n)) Console.WriteLine(val);
perhaps? I haven't used linq but it seems similar to Scala
val is out of scope
foreach (var val in Enumerable.Range(1, 100).Select(FizzBuzz).ForEach(Console.WriteLine);
(1 to 100) map {(n) =>
  if (n % 15 == 0) "FizzBuzz"
  else if (n % 3 == 0) "Fizz"
  else if (n % 5 == 0) "Buzz"
  else n} foreach println
@cheezsteak That reminds me of Ruby in a way.
Is that my issue with Linq? Do I need to just think of it more like a Ruby pipe?
Hmmmmmm
That was scala
It's object oriented functional programming.
Yeah, but it reminds me of Ruby.
18:31
@cheezsteak I thought Scala was like Java on steroids
1..100.DoEach{|x| puts x}
@Mat'sMug Scala or Linq?
a better fizzbizz is making change and getting the best coin combination
2
combonitronix
no
combinatorics
christ I have been making a fool of myself today
@Mat'sMug Scala is a functional programming language built ontop of Java. So its a functional programming language that has access to Java's HUGE data structure library.
wait, so Scala != scala??
18:36
SCALA
> Scala is a functional programming language built ontop of scala
ScAla =)
Scale A
Scale, eh?
@cheezsteak you can do it via a fizzbizz like approach, though, as well as more complicated things
things not to search:
> access get dirty information
18:44
lol
I think you're looking for Me.Dirty @enderland LOL
@RubberDuck no I want to know what is dirty. ;-)
Okay. I'm not sure anymore. Are we being serious now? Do you want to know which records are dirty?
apparently everything that search string gives you ;)
try "modified" instead of "dirty'
@RubberDuck Something is making my form "edited" on load and I want to see what it is that causes it. I'm not sure what it is, though
I know the visualized record is dirty, but not sure why/what
18:50
Hmmmm
implement INotifyPropertyChanged ...oh, nevermind.
Add a watch?
Form_Dirty is never called. wtf hax
And have it break when Me.Dirty changes?
that's not a bad idea
Thanks. lol.
18:53
watches are so underused
@enderland You're welcome. Hope it helps.
I know. I'm so dumb for not using them but I don't use them enough to be comfortable using them (it solved this in about 1 second btw)
I don't use them often either
@RubberDuck can we add watches from the VBE object model?
Had a custom onCurrent method which specifically didn't do stuff for a variety of explicit form names... which I forgot to add the new one I have to (so it was firing and changing data)
Hmmmm I don't know.
18:55
perhaps we could have Rubberduck add "auto-watches" for all identifiers in scope
although "in scope" is actually impossible to get
(or is it?)
@RubberDuck thank you. It's amazing how often you can use something and be aware of the tools involved and still not use them correctly
I wonder if the current line works when debugging
haven't tested enough of it
Maybe if we can hijack the "Watches" window.
Nov 10 at 21:08, by Mat's Mug
> I've been doing VBA for about 2 months, I know how most stuff works.
2
meh, looks like VBE object model only helps with the code panes. i.e. yeah, we'd have to hijack the "watches" window..
put that in the "nice to have" column
Only if we can execute a built in commandbarbutton action, and then hijack the dialog that pops up.
I'd say it looks unlikely.
19:15
0
A: Should we sign up for Winter Bash 2014?

RubberDuckYES. I want a hat! [Obligatory text to reach the minimum answer length.]

19:36
Is stackexchange now Team Fortress 2?
19:56
@cheezsteak huh?
googles Team Fortress 2
Team Hat Fortress
And they make an fton of money off of it.
20:11
So are these winter hats just achievements or can we actually do something with them?
Just achievements.
Kinda like badges, but not.
Bragging rights
Yeah. That ^
Well you can actually wear them. Well, your avatar can.
My avatar works great for hats. Just sayin'
20:25
@Mat'sMug Now it's interesting.
21:21
There's not an easy way to do code profiling in VBA to figure out what methods take longest to execute is there?
short of adding stuff to each method, that is
Sounds like something for RetailCoder
@RubberDuck todo: add a performance profiler feature to [Rubberduck] :)
3
@Mat'sMug No idea how to go about that, but YES.
@enderland the unit tests use a System.Diagnostics.Stopwatch to calculate how long a test runs for. You could make that function call inside a Rubberduck unit test, and the TestExplorer would show how many milliseconds it takes to run :)
@RubberDuck TBH, no idea either
it works for unit tests because they're public procedures in standard code modules...
the add-in is using Application.Run to launch the tests
I would LOVE knowing what methods take what itme without adding timestamping to everything
hmmmm
can you get a method name from a subprocess?
21:36
define "subprocess"?
I'm thinking something like:
create a class which basically records a "time" based on it's create/destruction
Excel/SQL Server question.
@enderland we can hook into the VBE, not so much on the runtime/debugger
If I link an excel doc to a sql server table, do changes get pushed to the server?
in the terminate method pass the time of execution to a global "profiler" class
@RubberDuck depends how you link it
you can link either way I believe
21:38
@RubberDuck I'd never do that
@Mat'sMug Oh, you can hook the runtime, but it's really close to the metal and not something I want to mess with.
wait, we can do that??
@Mat'sMug I don't want it to make changes is the problem.
Yeah. We can.
I dont' want to learn.
got docs?
lol
hardcore WIN32API?
@Mat'sMug No, but there's this source code that I don't grok.
Oh. Duh! I can just restrict write access to the table itself.
21:42
@RubberDuck just make the query read only
@enderland Huh? How?
One of the settings makes this clear I think when you link an Excel/ODBC table
I don't understand what you're trying to do
[Data] > [From SQL Server...] > [select view] > done.
iirc if you link atable one of the options basically is a "allow updates" option
@RubberDuck did you download it?
21:43
@Mat'sMug Right, but if someone (presumably me, accidentally) changes the data in the sheet, does it get pushed back to the server?
(I'm still at work)
Because, that's a no no.
@RubberDuck nope
Yeah. I looked at it once. Couldn't grok it.
Okay, awesome. Thanks @Mat'sMug.
you can link it so it updates, though, FYI
21:45
bookmarked, will get back to it later.
what was the VBA construtor code you guys were playing with?
I think I read that here, have a great use case for it
@enderland a set-only property actually. I think it's a smell.
@Mat'sMug Ah. I wanted to do something like:
> Dim mProfiler as new Profiler("MethodName")
5
Q: Parameterised Constructors

vba4allFinally, Parameterised Constructors are possible in VBA. Background: One rainy day, I came up with an idea: take a static class and expose one property as default (like it was done in the Reverse for each loop for the .Item() property. This time however, I thought I'll make a PieceOfMe() Get Pr...

sorry memory failed me. not a set-only property. a property getter (marked as default property) with side effects. Still a smell IMO
Yeah there's no chance I"d remember what I did if I ever had to look at that again...
21:51
I think the safest way to mimick a constructor in VBA/VB6 is to use factory methods
I just got a creative idea for basic code profiling
spill the beans :)
what is it?
I'm working up an example. I'm not sure how useful this will be but I'm hopeful
@ticker downvoted. do your Google dude.
Does the SO Low Quality Queue ever empty???
22:03
Yeah. When Hell freezes over.
This is neat
22:19
oh look at that, a post!
I think this is actually a quite useful approach, assuming nothing is totally broken
I'll take a look later, promise :)
Cool. It's rough, but intentionally so as the implications of doing this mean modifying every method I want profiled
ahhh I wish I had been smart enough to think about this a few months ago!
that's what CR does to everybody ^^
Seriously. Simple solution to a super obnoxious and complicated problem? waaaaaaaaaaaaaat
assuming I am not missing something really obvious
22:25
> Use GUID's for row identifiers for all rows for projects with offline/synchronization requirements.
ah, so that's what they're good for!
2
Q: VBA Code Profiling

enderlandI have wanted a way to do code profiling in VBA for quite some time. It becomes very complicated to figure out what methods are actually being executed for how long and how often in complex Access applications. A key reason this is complicated is that many form events or function calculations ha...

@RubberDuck I posted a reply to this using VBA Extensibility library instead of the route OP was going.
0
A: Using CreateDialog in VBA in an Attempt to Create Modeless Dialog Boxes

cheezsteakI don't want to detract from the in depth and well researched but there are possible work-arounds to dynamically creating modeless dialog boxes in VBA. That was the original problem before the asker bravely dived down the rabbit hole with CreateDialog. So this answer is for the original problem...

22:40
in The 2nd Monitor, 12 secs ago, by Mat's Mug
TTGH - later!
23:21
Props for that @cheezsteak. Looks like someone kinda got it working, but not really.
Oh! Hi @StackExchange!

« first day (165 days earlier)      last day (3015 days later) »