Better HN
topnewbestaskshowjobs
Log inSign up

TheCams

24 karma · joined Nov 24, 2014 (12y ago) · 36 submissions

Submissions

comment 7y ago · link · parent

I use it as a scripting language for my game engine, but also for all the tooling around it. Premake for generating the VS solution/makefiles, but also my own tools using IUPLua [1] and a few other modules (lfs, sqlite etc). Pretty much my whole ecosystem is C++/Lua.

[1] - https://www.tecgraf.puc-rio.br/iup/en/iuplua.html

comment 10y ago · link · parent

I'm working on a 1920 pixels wide screen with a font of size 10. With the toolboxes on the side of my IDE, I can have around 170 characters on a single line without having to scroll horizontally.

As long as I dont have to scroll I'm happy.

comment 10y ago · link · parent

Thanks :)

comment 10y ago · link · parent

Sorry if that's a stupid question, but does that mean he was running his script as root?

comment 10y ago · link · parent

Ahah, yes of course :) But this also applies to smartphones, and it seems like the trend nowadays is only to make them thinner.

comment 10y ago · link · parent

I agree. And I'd rather have a laptop a few millimeters thicker and have a bigger battery inside.

comment 10y ago · link · parent

If you're referring to a bounding box, it's called AABB (axis aligned bounding box). So I guess AA rectangle would be ok.

comment 10y ago · link · parent

I think there's a difference between the files layout on a disc/install folder and a repository. The layout on the disk can be optimized for loading (even duplicating the assets sometimes). OP is asking for a repository hierarchy I think, since he's talking about sources files too.

comment 10y ago · link · parent

Since nowadays we all have autocompletion and good refactoring tools (to rename a variable), I usually give a pretty explicit name, even if it's sometimes more than 40 characters long. At least there's no ambiguity on the variable meaning, even if it makes the code a bit hard to read sometimes.

comment 10y ago · link · parent

Why not use the 2.5 jack connector?

comment 10y ago · link · parent

I think the purpose of this kind of exercise is not to have the developer implement the whole class, but rather see how far he can go, how he can prioritize the subtasks and how he deals with pressure. Of course the result also gives an idea of its programming skills. Not that I agree with the method though.

comment 11y ago · link · parent

I'm in the office so I wont download the beta now, but I think you should add more info on the website about the project (features, platforms supported etc)

What do you mean by "understand C++"? Does it offer features similar to Intellisense/Visual Assist?

comment 11y ago · link · parent

Is the ratio price/hours of gameplay really relevant here? A long and boring game for cheap is not more interesting than a short but amazing experience for a higher price.

comment 11y ago · link · parent

I'm not using Vim or Emacs but still doing intensive use of ctrl and shift in Visual Studio so I might give it a try :) Thanks for your replies

comment 11y ago · link · parent

Is anyone using a pedal in addition of a keyboard on a daily basis? Do you really think this could be a significant help when typing code?

comment 11y ago · link · parent

I would only put courses that lead to a degree on my resume under the Education section. If you have extra knowledge that you want to mention, a Qualification section would be the best place to add a line about it in my opinion.

comment 11y ago · link · parent

Interesting, I had no idea how these devices worked :)

comment 11y ago · link · parent

Never used it, except for the easter egg with Chuck Norris etc. Actually I was about to try and noticed that I can't click the button, as Google starts the search as soon as I start typing in ...

comment 11y ago · link · parent

Definitely a fake, but the idea is good though.

comment 11y ago · link · parent

I can't find the info on the website, is it possible to code in C++? All I see is the LUA scripting. The engine look really artist oriented, but I think the first people you want to attract for a commercial product are the programmers.

comment 11y ago · link · parent

A recruiter contacted me on LinkedIn with a job offer. The interview went well and I got the position, so I quit my previous job and moved to the UK.

comment 11y ago · link · parent

One of the thing that annoyed me is that the language forces you to put your opening braces on the same line as your condition/loop. I like to have them on the same vertical line, I find it easier to see the blocks.

comment 11y ago · link · parent

I think what could be considered an early optimization (but not premature) is the architecture design of your software.

I dont know how you did your application, but in this example, you could have made the design choice of a heavily multithreaded application to fetch and process multiple pages at the same time.

It could be an early optimization that saves you a lot of refactoring later.

comment 11y ago · link · parent

I think you meant "Stand by me" instead of Lean on me :) Great movie btw, I have the same childhood nostalgia when I watch it.

comment 11y ago · link · parent

Really interesting, thanks for sharing.

comment 11y ago · link · parent

Might sound like a stupid answer, but probably using the most widespread model as a development platform is the best way to start with. Then you'll have to test your app on different models anyway.

comment 11y ago · link · parent

Totally agree with that. In my previous company we were always working with dumps for asserts/crashes and when I started working in my current company I was confused that they mainly use logs. Now I can't go back to debugging without logs. Using dumps is like looking at the consequences, looking at logs is looking at the causes.

comment 11y ago · link · parent

Anyone used one of these as a scripting system for a game engine? I'm still wondering if I should use duktape/MuJS or simply LUA.

comment 11y ago · link · parent

I don't want to divert the thread, but reading this surprised me:

"If using new ever fails to return an object, you're out of memory or some other critical corruption and your program isn't long for this world, wether you catch the null-pointer or not."

Is that the usual reaction to "out of memory" issues? I think that video games, having to deal with console memory constraints, should handle this. You can sometimes delay an allocation from a few frames if you know that you'll free some memory from another place soon.

comment 11y ago · link · parent

I wonder what a graphology expert would think about this. I imagine that it would be confusing.
12