HNHacker News
TopNewBestAskShowJobs

TheCams

24 karma · joined November 24, 2014

submissionscomments
TheCams··on Lua 5.4.0 beta
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

TheCams··on Poll: How many characters per line do you prefer?
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.

TheCams··on Man accidentally 'deletes his entire company' with one line of bad code
Thanks :)
TheCams··on Man accidentally 'deletes his entire company' with one line of bad code
Sorry if that's a stupid question, but does that mean he was running his script as root?
TheCams··on HP's Spectre 13.3 laptop is as thin as an AAA battery
Ahah, yes of course :) But this also applies to smartphones, and it seems like the trend nowadays is only to make them thinner.
TheCams··on HP's Spectre 13.3 laptop is as thin as an AAA battery
I agree. And I'd rather have a laptop a few millimeters thicker and have a bigger battery inside.
TheCams··on Show HN: Triangul-Art – make pixel art but with triangles
If you're referring to a bounding box, it's called AABB (axis aligned bounding box). So I guess AA rectangle would be ok.
TheCams··on Ask HN: How do game companies keep their files organized for a large-scale game?
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.
TheCams··on Coders,do you still have problem naming things?
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.
TheCams··on Apple will drop headphone jack to make the IPhone 7 slimmer
Why not use the 2.5 jack connector?
TheCams··on On the unreasonable reality of “junior” developer interviews
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.
TheCams··on Show HN: Lightweight C++ editor that understands your code
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?

TheCams··on How do you put a price tag on a video game when it’s the first of its kind?
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.
TheCams··on DIY control pedal on Linux
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
TheCams··on DIY control pedal on Linux
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?
TheCams··on Ask HN: Should i put online courses in my resume?
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.
TheCams··on Video game hacking
Interesting, I had no idea how these devices worked :)
TheCams··on Ask HN: Does anyone use “I'm Feeling Lucky” on Google?
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 ...
TheCams··on [dead]
Definitely a fake, but the idea is good though.
TheCams··on Stingray: 3D Game Engine and Design Visualization
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.
TheCams··on Ask HN: How did you migrate to the country you are living in now?
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.
TheCams··on Do you feel that golang is ugly?
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.
TheCams··on Ask HN: Premature optimization – when to use?
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.

TheCams··on Ask HN: Any movies that changed your life?
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.
TheCams··on The Next Penelope Post-Mortem
Really interesting, thanks for sharing.
TheCams··on Ask HN: Best Android phone for developer?
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.
TheCams··on Why debugging is all about understanding
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.
TheCams··on JSI: small JavaScript interpreter in pure C suitable for embedding
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.
TheCams··on Torque3d game engine became more reliable
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.

TheCams··on Recurrent neural network handwriting generation demo
I wonder what a graphology expert would think about this. I imagine that it would be confusing.
Page 1 of 2Next →