Better HN
topnewbestaskshowjobs
Log inSign up

andresmanz

219 karma · joined May 30, 2015 (11y ago) · 101 submissions

Submissions

comment 10y ago · link · parent

Do so! Especially if you can learn a thing or two. Using bloated engines isn't always the best solution anyway, and yoi seem to be well aware of that.

And don't forget to post it on HN in case you should publish something like that. It sounds awesome.

comment 10y ago · link · parent

Same here. I use Windows maybe once or twice a year, and it's always a pain. "Winux" won't change that for me and to be honest, I don't really want to support Microsoft. Sure, I think VS is a pretty nice piece of software, but that's about it - too few reasons to switch.

comment 10y ago · link · parent

Usually, game consoles and handhelds don't have a JVM installed. I don't see the point in porting (parts of) a JVM to these platforms for your games, especially considering the little benefit (if any at all) that would offer.

comment 10y ago · link · parent

It did alright on PC. The problem I see there is that they had to reimplement it in C++/C# for other platforms, causing the updates to be way behind. Maybe I got that one wrong, but wasn't there some announcement that they'd switch to C++ in the PC version as well?

I'd like to add, though, that I don't generally see a problem with programming games in Java. I just prefer C++ for that, with portability being only one of the reasons.

comment 10y ago · link · parent

Oooh, yes. It couldn't get any better, right? The amount of control you have here is just perfect.

If you don't like that, just wait a few days. I'm sure there will be tons of libraries that let you do that with a few lines of code.

comment 10y ago · link · parent

Nice, I didn't know they'd add the compiler. I tried it back then, during the commercial license trial. But it didn't make much of a difference, if any. I remember being in a hurry, though, so maybe I did something wrong and I'd love to give it another try.

comment 10y ago · link · parent

It does, but I'm not sure if material design is ready now. There is qml-material[0] though, and it's pretty good. But: The last time I checked (maybe 5 or 6 months ago), QML/Qt Quick apps on Android took way too long to launch. I couldn't do anything about it, so haven't used it since then.

[0] https://github.com/papyros/qml-material

comment 10y ago · link · parent

Thanks, I'll need it! The chances are low, but hey, why not? I've been planning this for 15 years.

comment 10y ago · link · parent

Wonderful, writing my application now. That's why I learned Japanese in the first place, and some day it has to pay off!

(Well, the experience alone was worth the effort, of course.)

comment 10y ago · link · parent

Woah, that line immediately reminds me of JavaScript at work, and one of the reasons why I don't like it.

comment 10y ago · link · parent

Because beginners could get confused when seeing the operators in other people's code, for example.

I remember the day I first saw a '++'. It was a rainy night, and I was inspecting a colleague's for loop, when suddenly a '++' operator appeared. I asked myself, "What in the holy bacon of Zeus is that?" So I looked it up in my book. My head almost exploded, and I asked myself if I should quit programming immediately. It was simply too complicated. After four months of agony and pain I finally recovered and started programming again. And yet... Sometimes, when it's raining outside, the memories come back. Programming... No, my life will never be the same again.

comment 10y ago · link · parent

I think that was just a comparison, because Linux can be very small.

comment 10y ago · link · parent

Same here, I'm 26. The industry has changed a lot when people realized you could make a shitload of money with the web/scripting stuff. Coding schools, open source communities and huge companies love HTML and JavaScript and Python and Ruby for their simplicity. Just take a bunch of people, tell them they could make a lot of money by learning some dead simple languages and there you go. Doesn't matter if they write the most disastrous code in the whole universe.

Look at Code Academy, for example. They add new programming languages and technologies every now and then, but basically it's always the same. Just like their audience. They won't add C to that list, because that wouldn't work for this average not-nerdy-enough-for-real-programming audience.

14.

A Little Structure(blog.cleancoder.com ↗)

3 points · by andresmanz · 11y ago · discuss

comment 11y ago · link · parent

Thank you very much for your detailed answer. That really helps and I will finally learn React now.

comment 11y ago · link · parent

I'm sorry for the stupid question, but I'm in a hurry: I don't really want to write the whole app logic in JavaScript. Is it possible in an easy way to have a React Native UI on top of a common C/C++ code base? I don't know React yet, but it gets very interesting now and I'd like to give it a try. Maybe it could completely replace Qt for me.

comment 11y ago · link · parent

Some do[0], even if they shouldn't.

[0] https://en.m.wikipedia.org/wiki/File:Desktop_on_Windows_Serv...

comment 11y ago · link · parent

Cross-platform, open source, lightweight and C(++). The example code on the website could use a little clean-up, but it's fine. Perfect! Thank you, sir.

comment 11y ago · link · parent

I think it's a blessing. For me the most wonderful thing about game development is learning. I could learn so many things already and thanks to large engines like UE, I can learn even more every day. The larger engines are often used at huge companies, where they can make use of pretty much every single feature sooner or later.

I love writing everything from scratch just for the sake of learning. And yet I love engines like UE for trying new stuff and real world projects.

In large code bases, automatic testing significantly facilitates adding new features. I don't really know how they test UE, though.

comment 11y ago · link · parent

> Things I'm missing - Can't play Witcher 3 (but apparently a native version is coming soon), and I'll probably miss out on SW: Battlefront.

That's the one single reason why I keep Windows 8.1 on my HD. Over the last 3 years I've used Windows for maybe 13-14 hours in total. Fortunately, more and more games come out on Linux, too. And some games run pretty good in Wine. Fallout 3, for example, runs faster on Linux (with higher settings) than it does on Windows. Even though I updated everything, disabled pretty much anything that could run in the background and don't have much installed.

I can't even imagine how Windows can still be the preferred OS for gaming nowadays. Using Windows is a pain in the butt, and so is playing games on it. The whole OS by default wastes precious resources those games could use, and it gets worse with every new version. On Linux I'm the only person who tells the OS how and when to waste the resources.

comment 11y ago · link · parent

I think they are comparable, even if UE often gets presented with a first person view. Here's a large list of UE games that cover many different genres: https://en.m.wikipedia.org/wiki/List_of_Unreal_Engine_games

comment 11y ago · link · parent

Yes, and with a little bit of work you can install these packages on pretty much every distro anyway. I've got a few packages on Arch which are only officially supported on Ubuntu, and I never had any problems with them.

comment 11y ago · link · parent

Nice, so Unity is finally an option for me. Now it would be nice if the Unreal editor had official Linux support as well. (I know there's Wine, but it didn't work too well for me.)

comment 11y ago · link · parent

Well, at least that's what I read all the time. I couldn't confirm it, too, but I always thought that's just because I'm perfectly fine with Qt. QML is also pretty good for responsive UI.

Maybe these companies prefer the web stuff because most developers know it anyway.

comment 11y ago · link · parent

Yes, that's not unusual these days. I wonder if they even care when the user experience gets destroyed just for a bit less development time.

comment 11y ago · link · parent

Thanks, but shouldn't these features be optional? I still don't get why I need a Google Account.

comment 11y ago · link · parent

> No one would (should!) ever consider writing a webservice in C++

Depends on what kind of web services you're talking about. C++ is widely spread in game development. It's nice to have the client and server code in the same language, so in game development, C++ web services (including multiplayer servers, if you count that as a web service) are not too unusual.

Two years ago, I even had a customer who wanted me to create a C++ backend for a large website. That was a surprise, of course. But it was fun, it's safe, and it works. You can easily test for safety, and the security logic stuff is just what you have in any other language.

comment 11y ago · link · parent

Does IRC count?

comment 11y ago · link · parent

Well, they do, kind of. Just that multiple inheritance is only allowed with the use of interfaces. In C++ multiple inheritance is supported, and interfaces are actually pure virtual abstract base classes. And that's what interfaces in Java (and C#, I think) are, just with the addition of some compiler checks for interfaces. Please correct me if I'm wrong, though.

I seldomly use mutiple inheritance in any language, and instead prefer composition.

comment 11y ago · link · parent

I couldn't get used to that form yet. getNumberOfEnemiesOnSamePlatform() is imperative, while numberOfEnemiesOnSamePlatform() is not. I think it's because I'm not a native English speaker, but the get version sounds like 'give me that value' to me, which would make sense. Usually, my function names are imperative (often with the exception of event handling functions) and that feels more natural to me. I'll do some research on the topic, though. There's a presentation where someone explains it, but I couldn't follow last time.
1234