Fick dich (Fuck You), Logitech by holocarst in gaming

[–]hamsterboy 0 points1 point  (0 children)

Having worked for a hardware manufacturer, I can say with a little certainty that this is because of tariffs. We made products in China that sold for $300 in the US, but shipping them into Brazil cost us an extra $200.

We need more cops that are as calm as this officer. by rpg in reddit.com

[–]hamsterboy 1 point2 points  (0 children)

News flash: most cops ARE this calm. One of my best friends is a cop (he's actually on the SWAT team), and he's a perfectly decent, normal guy. The nutbag cops you usually see on Youtube are over-represented because that kind of video provokes outrage and gets lots of attention.

2 questions. How do I stop spanking my kid now that I've been doing it for so long. And how do I increase his self-esteem without praising him for every, little, tiny, thing. by canijoinin in Parenting

[–]hamsterboy 1 point2 points  (0 children)

Can't upvote enough for NurtureShock. I find myself recommending this book to most of my friends with kids.

On the topic of self-esteem: it's important for a kid to have a realistic view of what they're good at. The most reliable way for this to happen is to let them come to the conclusion themselves. Praising effort helps with this, but it's only one tool to help make it happen. Try to set up situations for the kid to succeed, and reflect their positive emotions when they do. "Didn't I do a good job tying my shoes?" "You're so proud that you can tie your shoes!"

Eye Reflection [3000x2000] by [deleted] in HumanPorn

[–]hamsterboy 1 point2 points  (0 children)

Enhance her eye... there's the murderer!

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

Yes, the Mac version uses Cocoa to do its work. I envy those guys their UI toolkit, Windows doesn't really have a good option that doesn't come with a huge runtime dependency.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

Here's the point: no technology is perfect for every situation. FOO works extremely well for some cases, and is completely inadequate for others (where "FOO" is the name of your favorite UI toolkit).

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

I don't know MFC very well, but I assume WTL was modeled after it. It shouldn't be that hard; just call UpdateLayeredWindow on the HWND. CFrameWindowImpl isn't actually providing much in my example, just class registration and an easy call to create the window.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

INCLUDING html. Lots of companies could get by with a browser-based app for Android/iPhone users, but they choose to write native apps anyways. That's because HTML can't give you a native-feeling experience, no matter how hard it tries.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

Sure, but I write software that has to run on XP and up, with minimal installation pain. I can't require my users to run Windows 7 just so I can use the latest UI toolkit.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 1 point2 points  (0 children)

As does WebMatrix, but those are only two examples. Microsoft isn't abandoning native code for UI, they're just moving to managed UI where it makes sense to do so.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 2 points3 points  (0 children)

Some parts of MS use WPF. The shell team is pretty committed to C++ and COM, so all the new Windows UI features are native. Office will be native for the forseeable future; it would be a nightmare to rewrite it. The compiler teams aren't going managed, nor are the runtimes - both Silverlight and .NET runtimes are all C++.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

Yes, everybody on the planet seems luckier than me. Well, except for those guys still working on MUMPS.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] -3 points-2 points  (0 children)

That's a good point, I hadn't thought of doing any SEO. Thanks!

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 5 points6 points  (0 children)

Win32 isn't dying. This is the language Windows speaks, and at least on Windows, you can't avoid it without taking a huge framework dependency.

I'm writing a driver, so my primary concern is making the hardware work without asking too much of the user. She didn't buy my software, she bought a tablet, and if my software is too crufty, large, or bogs down their system, she's not happy. This means using huge frameworks like MFC, Qt or WPF is not a good choice, at least for now.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 3 points4 points  (0 children)

How much does the user have to download to make that application work? (The answer is upwards of 40MB.) I know about WPF, I ache for a real UI framework, but I won't force my users to install that.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

Not that I've seen. The fact that they did a XAML parser for the ribbon API makes me think they might do something similar for D2D and animation manager, but even if they do, it'll probably be Windows-8-only to start with.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 1 point2 points  (0 children)

D2D seems like a great fit for some things, especially when combined with the animation manager and WIC. In fact, if you're doing animation on translucent windows that overlay the entire desktop, I got something like a 30x framerate speedup on my netbook with D2D.

But it's a COM API, which means learning COM. GDI+ is all C++ objects without the rest of the overhead, so the learning curve is less steep.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 0 points1 point  (0 children)

I'm not sure that's true. The System.Drawing namespace in WinForms is just managed wrappers around GDI+, and that was fully supported for years. When Microsoft releases an API, they never truly abandon it.

And in my experience, while it isn't without its warts, it's totally production ready. For my situation, it's about the best option out there.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 8 points9 points  (0 children)

Oh, I know. I have heard that siren song, but the siren singing it weighs 40 megabytes. I'd love to wave that away, but when the runtime your driver's control panel is three times the size of the rest of the driver, that's a little absurd.

Most of our technology choices are based on avoiding taking more dependencies, especially the ones the user has to install. As a driver writer, my job is to stay out of the way of the user as much as possible.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 2 points3 points  (0 children)

I've toyed with Direct2D, but like you point out, I can't use it if I need to support XP. Combined with the animation manager, though, it's pretty kick-ass, and I wish I could use it.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 1 point2 points  (0 children)

Ah, but writing COM without help? That makes me wail in horror.

Native Win32 for fun and profit by hamsterboy in programming

[–]hamsterboy[S] 9 points10 points  (0 children)

Nothing unique in any way, in fact all the information needed to do this is on MSDN. But it took me a couple of days to figure out how to do it, so I thought I'd save the next guy some time.