• Advertisement


  • Content count

  • Joined

  • Last visited

Everything posted by Rycross

  1. Java X(

    Ok, to answer the question directly, why not just use your favorite text editor and Apache Ant? See [url="http://ant.apache.org/"]http://ant.apache.org/[/url] Its the de-facto standard Java build tool. Also, I think you have some misconceptions about how Java's compilation model works. In your given example, you do not need to rebuild ClassTwo. Edit: You might also want to peruse [url="http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html"]http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html[/url] Javac will automatically recompile dependencies if necessary and it finds the source code (i.e. specified on the sourcepath). But again, in cases like the one you outlined, recompilation is not necessary.
  2. Way to great sucess?

    How much programming do you know? Picking out a bunch of libraries and tools and then asking if using them will lead to "great success," is putting the cart before the horse. You use tools and libraries because they fulfill a need, not because they're some secret ingredient to success. Start by picking out a development environment and working on your program, then add libraries as you need them. As far as actual libraries go, there's nothing wrong with the ones you picked. But whether you achieve success depends more on your ability at writing software than the libraries that you pick.
  3. Quote:Original post by mitdrissia Thanks guys for your fast replies. But i did not get a straight answer on my question. ... I hope someone can give me direct answer. thank you That's because there is no straightforward answer. It depends on a variety of things, such as your scene complexity, the hardware devoted to it (you say modern hardware but there is a huge range there, from iPhone to a $3000 state-of-the-art gaming PC), the amount of rendering time devoted to the scene (16 ms, 30 ms?). In other words, if you want a straight answer you need to ask a straight question. You're being way too vague to even approach a sensible answer. Edit: This is, of course, neglecting the fact that you're asking about a game, and there is more going on in a game than graphics. The complexity of the gameplay code and AI may be a factor in how much time you can devote to graphics. TL;DR; You're asking for a direct and straightforward answer to a vague question about an undefined problem space. There's simply no way to give you the answer you are looking for.
  4. Programmer at 40+?

    Quote:Original post by shuma-gorath The latter one implies that mostly one's typing speed would be affected. Of course, programmer's are divided about the impact that would have. Given that I've worked with a developer with cerebral palsy, I'm firmly in the "Typing speed doesn't matter," camp. Personally, I'm more concerned about my mental agility as I age.
  5. Programmer at 40+?

    Quote:Original post by VerMan Well, as you abeylin, i'm 33... i know 7 years from now seems a bit far. But I'm just thinking since i see job postings ("from 2x to 35", "over 40 need not to apply", etc) Where are you seeing such job postings? I haven't seen a single job posting along those lines, and in the US such a job posting is technically illegal.
  6. You could break the 30 puzzles per level into 6 sets of 5 and let the player solve 3 out of the 5 puzzles to progress to the next set. So you have 5 levels, each level has 6 stages, and you have to solve 3/5 of the puzzles in a stage to progress to the next stage. This gives clear progression but gives the player some wiggle room too.
  7. 9 or 10?

    There's really no reason to learn DirectX 10 unless you're already working with a DirectX 10 codebase. DirectX 11 can support DX10 feature levels and works on all the same OSes as DirectX 10. DirectX 9 is relevant if you want to support older cards and Windows XP.
  8. Classes and structures in C++

    Quote:Original post by Rich Brighton I've been taking a look at the containers and vectors in particular. The array will not need to be resized, although its dimensions won't be known at compile time. Its dimensions will be fixed from construction to destruction, do not vectors carry an unnecessary overhead in this case? No, you just use the reserve method to reserve the amount of memory you need up front, then don't add more data to it than its capacity (don't add without removing, or just use operator []). It won't be resized. In debug mode there are bound checks and whatnot to make sure you aren't screwing up, but they are removed in release mode and performance is the same as an array, which makes sense because vector basically just wraps an array. If you need different memory characteristics (such as drawing from a pre-allocated memory pool) you can also use custom allocators.
  9. RAII = bloat code ??

    Quote:Original post by nuclear123 im sure all of the above could happen :/ im sure u know alot more about it then i do. But i mean your program is dealing with extra code for objects(increased binaries), dealing with more objects(more memory usage)..so on. I might be wrong but i mean it just seems like when i started using RAII my simple library seemed to gain other classes in it, causing my class to feel less encapsulated(if this is the term to use). Not trying to hate ;) just verifying if i'm understanding this properly! -thx I think I may have phrased my post poorly. I don't think you're trying to hate. I think that you're expressing emotions and feelings about your code. Feeling that something is bloated may mean that it actually is, or it may just mean that you're doing something new with your code and are feeling uncomfortable adjusting to a new practice. What I am exhorting you to do is to try to examine those feelings and quantify them. For example, I might think that an approach "feels" slow. It behooves me to actually write up test cases and confirm whether the approach actually is slow. Otherwise, I'll likely spend time rewriting the code for no gain, and possibly end up with a messier code base. For example, in your case, yes RAII introduces new classes. However, these classes are designed to be proxies that represents references to the underlying classes, so they don't actually break encapsulation. RAII techniques are also an application of single-responsibility-principles (SRP), because they move the resource management code out of the class/classes that are utilizing the resource and into a class dedicated to that purpose. So, in other words, you're likely feeling that its bloated because you're seeing more .h files than you're used to, and this makes you uncomfortable. But, as I said before, its important to act on facts, not feelings.
  10. RAII = bloat code ??

    "Bloat" isn't any sort of technical description. Its an emotional one, and one that may not be grounded in reality. What exactly do you mean? More time measured in book-keeping code? Measured increase in memory usage? Bottlenecks? When people talk about bloat, all they are doing is making vague general statements about how they "feel" about a program. You should endeavor to quantify your statements about the impact of a change.
  11. Is posting your full name online a bad idea?

    Its usually a good idea to use your real name or a handle when appropriate. Handles should be used for any sort of opinions or recreational use (games and whatnot), while your name should be used for anything professional. For example, I use my real name for LinkedIn and Stack Overflow, but a handle for social sites like Reddit. The idea is this: In this day and age, employers/landlords/etc are going to google your name. If you have an uncommon name (as I do) then they're going to find you. You want that information to put you in a good light. So the idea is that you make your "professional" self available so you can look good, while keeping your private life private. Also, keep your Facebook locked down, and only put the bare minimum on there. Employers check that too. Also, never use an online handle for anything requiring professionalism. Job/college applications should be given an email address that resembles your name, period.
  12. anyone else excited about firefall?

    Game looks interesting, but I recall some of their devs being jerks while waiting in line at PAX 2009, which kinda dampens my enthusiasm.
  13. Are you actually initializing the memory in the first case before using it? Global variables are often zero-ed out, while as dynamic allocations such as the one you made are not. As a result, it will have garbage data in there until you initialize it.
  14. Carmack on government

    Quote:Original post by LessBread Others have already demolished this claim. Social Security is no more a pyramid scheme then liability insurance is a pyramid scheme. The reason there is so much hatred for Social Security is because the financiers on Wall Street hate the fact that they don't get a cut of it. They have spent millions of dollars to fund a decades long propaganda campaign training the public to hate it too. My perception has always been that the right would love to get rid of Social Security but cannot actually touch it for fear of losing the retired vote. Instead, they have opted to go about its destruction in a roundabout manner: claim that it is a financially nonviable program. Call it a pyramid scheme and rant about how its going bankrupt. The solution? Privatization, obviously. The ruse is transparent, and yet no-one seems to call out the people making these claims.
  15. The current election is for Congress and various state-level positions. Usually, mid-term elections (that is, elections held when the President is not up for re-election) are seen as a referendum on the current President. Because the Republicans gained the House majority, a lot of people are claiming that Obama has lost support.
  16. [C++] STL Containers

    "Bad habit?" I'd like to know how you expect an std::vector to store new objects after its reached its capacity without reallocating memory. If you don't want std::vector to resize, then use reserve, and make sure you don't add any objects beyond that. As far as this being applicable to "all stl containers," its not and it never was. By the way, its the Standard C++ Library. It hasn't been the STL for a long time.
  17. Process management?

    I believe they use interrupts set by the OS.
  18. C++ question

    The | operator does bitwise-OR. It goes through each of the bits in the number and ORs them to get the result. This is commonly used to combine flags, such as in this case. In other words, it is setting the SDL_FULLSCREEN flag and SDL_HWSURFACE flag. Example: int FOO = 2; //00000010 int BAR = 4; //00000100 int result = FOO | BAR; //00000110
  19. Quote:Original post by eXPerience Hmm...I didn't know that the French use briefcases too! Okay...I see your point guys. What I'm going to do is release version 1.0.2 tomorrow which will include trademark law fixes. I'll put in my copyright statement: "the Deal Or No Deal concept is copyright to Deal Or No Deal". That way I won't be breaching any copyright laws. I hate to harp on this, but.. Its trademark, not copyright, and even if you put a disclaimer in there its still in violation. The only way you can use their trademark is if they expressly grant you permission.
  20. Carmack on government

    Quote:Original post by Alpha_ProgDes Quote:Original post by smr Are there any examples of real-world libertarian societies in existence today? How are they faring? One, I hate this kind of question. Two, how old as an ideology is libertarianism? Because communism is pretty new compared to democracy and a republic. AFAIK. Not to mention libertarianism can cover a range anywhere from anarcho-capitalism to anti-federalism, depending on who you talk to.
  21. Carmack on government

    Quote:Original post by Myopic Rhino I actually agree that there's a disconnect between libertarian ideology and political reality. If there was a true libertarian revolution, you would have to have some kind of transition plan, or people would starve. To counter my own broad strokes (yes I'm being quite a bit hypocritical in my postings), I was fairly enthusiastic when those of libertarian bents were suggesting open pricing, decoupling insurance from employment, etc rather than the health reform bill, because these things can be done independently and iteratively. Sadly, it never gained traction because, as I pointed out, most people want simple answers yet don't want an all-in solution at the same time. Thus we got a health reform bill with a little good, a little bad, and a not much change. Bleah. Just so, you know, I'm not picking on the libertarians exclusively here. ;)
  22. Carmack on government

    Quote:Original post by Myopic Rhino Often, especially on topics related to areas where there is currently heavy government involvement, the argument is that we don't know exactly what the free market would produce, we just know that it would. Personally, I also find this very unsatisfying, and it's obviously not going to be convincing to those who are skeptical of the free market. Well, see, when I say I'm sympathetic to the libertarian view-point, I really do mean it. Who wouldn't want less taxes and less government if its not needed? But in many cases I'm also skeptical whether the free market can fill in the gap. In many cases, I'm enthusiastic about the idea, but I'd like to have a clear transition plan so that we can test the waters and abort if things don't seem like they're turning out. But it often comes down to an all-or-nothing thing. Its not "Lets repeal No Child Left Behind, and gradually lower funding and scope of the DoE over time, while encouraging states to fill in the gaps." Its "Abolish the DoE." Its not "Lets put net neutrality legislation in now to protect consumers, along with an explicit, non-reversible kill date, then work on busting up local monopolies and encouraging competition," its "No net neutrality, the market will work it out. It hasn't been because states interfere, and we offer no discussion on why municipal monopolies were put into place (obviously corruption) and how to back out of them and encourage competition." So, you see, its kinda hard to get people to be enthusiastic about the free market when you put them in an all-or-nothing position. People tend to be a bit conservative by nature, and don't like to see sweeping changes all in one go. However, the libertarians I discuss with in real life tend to insist that it be an all-or-nothing thing, because anything else wouldn't work for vague reasons. That's a very unappealing platform for me. Again, this is exactly what I mean by lack of nuance. I cannot reasonably vote for someone who's position is to go all-in and not have a contingency plan if it doesn't work out.
  23. Carmack on government

    Quote:Original post by Myopic Rhino I think they may seem un-nuanced because some people don't present them well either 1) because they don't fully understand them, or 2) because explaining them is often time-consuming due the idea they are built upon being generally outside the mainstream. If someone puts forth an argument with no more depth than "Government is bad," and doesn't elaborate on actual specific points, then they're inviting dismissal. I understand your frustration with the libertarian beliefs at-large being unfairly lumped in with a bunch parrots who haven't applied any sort of critical thinking skills. Can you understand, though, how people can come to the conclusion that libertarians are not giving actual solutions based on this? Are there any libertarian leaders who are espousing a more nuanced viewpoint? Ron Paul (if you consider him libertarian...) is about the only one who comes close, and I still think he's often too simplistic in his viewpoints. As an example, Carmack brings up rocketry and uses that to claim that he has to pay attention to government. Great! Does he follow up and use it as a concrete example relating to his viewpoint? Does he point out which regulations are onerous and offer a view of how private enterprise could streamline things? Nope! He just shifts into cruise-control and Ctrl+C, Ctrl+V's the standard libertarian rhetoric, and I'm left face-palming and no more informed than I was before I read his essay. That's why I feel its trite, and I see too much of that going on today. And just so I'm clear, I'm not saying that this is a problem with libertarians. Any quick reading of liberal sources will show the exact same problem: people espousing how social programs are THE solution, without applying any sort of critical thinking or examination of unintended side-effects. Its why I've pretty much given up on the political process altogether.
  24. Carmack on government

    Quote:Original post by Silvermyst Even if the government knew the optimal way to catch fish, I believe it would still end up just giving its citizens fish instead of teaching them. Besides, it's not always about catching the biggest or the most fish. Sometimes it's just nice to spend some time on the water with some time to reflect. Dutch freeways may be straight, smooth, and able to get you to your destination quickly, but I much prefer driving LA freeways, even with all the potholes and traffic jams. Do you think that government always "gives its citizens fish" in every case? Do you think there are ways to encourage people to not stay on government services? If you dispute that the government is the best avenue, do you have a plan of migrating people off of the government services and onto something else, or do you have ideas about how to solve the problem? People seemed to miss the point of my post. I'm saying that its lazy, intellectually dishonest, and trite, to take a broad "Government BAD!" position without expending any mental effort into identifying the problem areas and format a plan. Dismissing government altogether by simply stating "The private sector can do it better," without *any discussion whatsoever* on how it would be accomplished by the private sector and *why* its better, is lazy, and is not a viewpoint that deserves respect. Actually discussing the issue and applying some thought and nuance to it does. Basically, I'm fucking sick and tired of people vomiting up socialist/libertarian philosophical soundbites instead of fucking thinking. Carmack's speech is basically just one big "Libertarianism, yay!" soundbite, and I'm pretty disappointing that a clearly intelligent man would stoop to that level. I'm actually very sympathetic to the libertarian point of view, especially if I find someone willing to actually discuss points rather than dismiss them, but I find that most of its advocacy is the kind of trite drivel espoused by this post.
  25. Carmack on government

    Quote:Original post by Myopic Rhino I'm really fucking sick of the libertarian position being expressed this way. To be fair, libertarians often express it that way. Quote:Original post by Myopic Rhino Anything that the government does can be done by private enterprise. That assumes that competition (which is a cornerstone of a free market) always leads to optimal outcomes. Rudimentary knowledge of game theory shows that this is not the case. The libertarian response (in my experience) is often to simply assert that its not an issue. This is what I'm talking about when I complain about un-nuanced points of views.
  • Advertisement