• What are you working on? v16
    5,004 replies, posted
[QUOTE=Chris220;28474503]A lot of people find it hard to read, and it's useless (unless you use it like it was originally intended) with modern IDEs that show you a variable's type just by having you hover your mouse over it.[/QUOTE] Only if you're using it [url=http://www.joelonsoftware.com/articles/Wrong.html]wrong[/url].
[QUOTE=raBBish;28474546]Only if you're using it [url=http://www.joelonsoftware.com/articles/Wrong.html]wrong[/url].[/QUOTE] [QUOTE=Chris220;28474503]it's useless (unless you use it like it was originally intended)[/QUOTE]
Is there any alternative to XML serialization? I need to create a map save/load system for my tile-based game (video above), and entities have many different properties that have to be saved too. I tried manually creating a string output for every different type of entity but that is not elegant and doesn't work, since some entities have references to other specific entities. Serialization needs parameterless constructors and I can't really stop having those in some entities. Help?
[QUOTE=Chris220;28474555]-stuff-[/QUOTE] I seem to be really bad at reading today :sigh:
[QUOTE=grlira;28474380]Doing my MASM assignments. This looks so ugly I'm not supposed to use push or pop (prof. hasn't mentioned them in class yet), but I found no other way to print while in a loop which depends on ecx.[/QUOTE] Ask your instructor if you can. My instructor last semester was really lenient when it came to using stuff that hasn't been taught yet. They mainly care about the output. [QUOTE=Chris220;28474503]A lot of people find it hard to read, and it's useless (unless you use it like it was originally intended) with modern IDEs that show you a variable's type just by having you hover your mouse over it.[/QUOTE] Agreed, I personally don't see a reason to use it when you are using an IDE like VS. I think it just clutters the identifier.
[QUOTE=Kamern;28474409]Valve uses it in their source code, why is it a bad idea?[/QUOTE] The fact that company X uses Y doesn't necessarily mean that Y is good.
[QUOTE=vepa;28475926]The fact that company X uses Y doesn't necessarily mean that Y is good.[/QUOTE] It depends how credible Company X is.
[QUOTE=vepa;28475926]The fact that company X uses Y doesn't necessarily mean that Y is good.[/QUOTE] Correct, this is called the Ipse Dixit fallacy of distraction. [sp]I'm taking a logic class[/sp]
[QUOTE=geel9;28476224]Correct, this is called the Ipse Dixit fallacy of distraction. [sp]I'm taking a logic class[/sp][/QUOTE] youd think the fallacy of distraction would be something like "THERES A UFO BEHIND YOU" then stealing their generic object #1
Even though it's not directly programming related, I've started making sprites for my game :v: [img]http://i.imgur.com/1bNiH.png[/img] [img]http://i.imgur.com/FfP46.png[/img][img]http://i.imgur.com/FfP46.png[/img] [img]http://i.imgur.com/FJnjb.png[/img][img]http://i.imgur.com/FJnjb.png[/img] [img]http://i.imgur.com/1TN9j.png[/img][img]http://i.imgur.com/1TN9j.png[/img] [img]http://i.imgur.com/1TN9j.png[/img][img]http://i.imgur.com/1TN9j.png[/img] [img]http://i.imgur.com/1TN9j.png[/img][img]http://i.imgur.com/1TN9j.png[/img]
[QUOTE=bootv2;28476842]where are his arms?[/QUOTE] nowhere to be found :ohdear:
[QUOTE=Icedshot;28476524]youd think the fallacy of distraction would be something like "THERES A UFO BEHIND YOU" then stealing their generic object #1[/QUOTE] There are eight fallacies of distraction. They're fallacies in arguments that distract from the true purpose. They are: 1. Ipse Dixit--Or, "he has said it himself"--Implying that if X says Y, Z must be true. X does say Y, so Z must be true. Fallacy. The Ipse Dixit: "Captain Kirk said the Zergs are fake. The zergs have to be fake!" Not Ipse Dixit: "The creator of Half-Life 2 says that it took two years to make it. It must have taken two years to make it." 2.Ad populum. An appeal to the masses; "50,000 people like this, therefore it is good." Fallacy. Ad populum: "This story is clearly good--100,000 people have read it!" Not ad populum: "I think you will like this book, lots of people have." (The difference being that one is a claim that X is CLEARLY good, the other claiming that they simply should see for themselves) 3. Ad baculum, "to the stick." A poorly concealed threat. Ad baculum: "You should pay to stop AIDS. You don't want to get AIDS yourself!" Not ad baculum: "If you don't see why you shouldn't kill that person, maybe our laws will persuade you." 4. Ad hominem. A personal attack; "you can't be right because you are X." Ad hominem: "Why should we believe you? You're a woman!" Not ad hominem: "Why should we trust that you won't kill us? You're a convicted felon!" (The difference here is that the former has nothing to do with the current situation, and the latter is clearly related.) 5. Bulverism. "You only believe this because you were raised as X". Bulverism: "Why should we listen to you and stop abortion? You were raised a christian!" Not Bulverism: "You're running for the democrat party simply because you lost as a republican yesterday!" 6. Tu Quoque: "You do it too!" This fallacy [b]only[/b] applies when it is a moral or ethical dilemma being argued for or against. Tu Quoque: "Why shouldn't I kill people? You do it too!" Not Tu Quoque: "Why shouldn't I read books? So do you!" 7. Ad Ignorantium. "X is true because there is no evidence to disprove it." Ad Ignorantium: "You're clearly a murderer, you have no evidence against it!" Not ad ignorantium: "This man is not a murderer, there is no evidence to prove it!" 8. Chronological snobbery: "X is true because it's old/new!" Chronological Snobbery: "I like this pie because it's the oldest pie I have. It is therefore good and nothing can disprove that." Not chronological snobbery: "I think we should carefully consider not performing traditions we've had for centuries." (The difference being that one is stating that it is clearly superior, the other stating that one should simply factor it in when making a decision.) [editline]7th March 2011[/editline] For extra fun, slam the table when pointing out fallacies. "You just committed *SLAM* TU QUOQUE!!!" (And yes I wrote this all out myself.)
What's with the disagrees? Googling some quotes and getting no results seems to suggest it's legit. Edit: By legit I mean that part where he wrote it all out himself. It seems to be all correct, too, though.
[QUOTE=BlkDucky;28477342]What's with the disagrees? Googling some quotes and getting no results seems to suggest it's legit.[/QUOTE] Seriously, it can be a lot of fun to use these in arguments. It really does help win.
[QUOTE=geel9;28477358]Seriously, it can be a lot of fun to use these in arguments. It really does help win.[/QUOTE] Pointing out that someones argument may contain a small fallacy at one point and using it to refute their entire argument is probably a fallacy in itself
[QUOTE=vepa;28475926]The fact that company X uses Y doesn't necessarily mean that Y is good.[/QUOTE] No, but it makes it more likely.
[QUOTE=Ortzinator;28478363]No, but it makes it more likely.[/QUOTE] Just as an example Notch uses java. This has no impact on whether or not java is actually a good programming language.
[QUOTE=Icedshot;28478645]Just as an example Notch uses java. This has no impact on whether or not java is actually a good programming language.[/QUOTE] Who said notch was a good programmer
[QUOTE=Dj-J3;28479940]Who said notch was a good programmer[/QUOTE] Who said Icedshot was implying he was?
Well, it's official. My maze solving algorithm does not find anything that is anywhere close to the shortest path. Also, while drawing, I assumed that if there are two adjacent cells that were visited in the solution that do not have a wall between them, then the solution path must connect them. This is clearly not always the case. [media]http://i120.photobucket.com/albums/o181/SamPerson12345/wat-1.png[/media] If the grid had no walls it would fill the entire thing.
[QUOTE=Icedshot;28478645]Just as an example Notch uses java. This has no impact on whether or not java is actually a good programming language.[/QUOTE] That's not what I said at all.
[QUOTE=SamPerson123;28482994]Well, it's official. My maze solving algorithm does not find anything that is anywhere close to the shortest path. Also, while drawing, I assumed that if there are two adjacent cells that were visited in the solution that do not have a wall between them, then the solution path must connect them. This is clearly not always the case. [media]http://i120.photobucket.com/albums/o181/SamPerson12345/wat-1.png[/media] If the grid had no walls it would fill the entire thing.[/QUOTE] Bloody
[QUOTE=SamPerson123;28482994]Well, it's official. My maze solving algorithm does not find anything that is anywhere close to the shortest path. Also, while drawing, I assumed that if there are two adjacent cells that were visited in the solution that do not have a wall between them, then the solution path must connect them. This is clearly not always the case. [media]http://i120.photobucket.com/albums/o181/SamPerson12345/wat-1.png[/media] If the grid had no walls it would fill the entire thing.[/QUOTE] I like this.
[QUOTE=Icedshot;28478148]Pointing out that someones argument may contain a small fallacy at one point and using it to refute their entire argument is probably a fallacy in itself[/QUOTE] Actually, it depends on whether or not the fallacy is made in the broader scope. If it's used for a more general argument, but that argument is used to help support other arguments, the entire thing falls apart. If the fallacy is placed in the final argument, it is still completely invalid. [editline]8th March 2011[/editline] However, if it's used in a sidenote or something that doesn't affect the entire argument then of course it's ridiculous to assume the fallacy makes their entire argument invalid.
I keep finding flaws in my networking engine that require me to rewrite it - Annoying. I'm pretty happy with it now though. My next objective is this (it's a photoshop composite of the sprites don't wet yourself) [img]http://img.meteornet.net/uploads/399hlzkvh/ss.PNG[/img] I went through this (where I broke everything) to lay the groundwork [img]http://img.meteornet.net/uploads/2x6efgz7/ss2.png[/img] Now I'm back at this [img]http://img.meteornet.net/uploads/8kurxywqz/ss2.png[/img] The way the networking works now is far more robust in terms of players joining mid way through, so I'm happy with that. I'm also gradually shifting more and more of the test code to the lua side. Here's my current testing lua file: [lua] require("hook") require("util") HookCall=hook.Call -- The engine calls this local spawnlight local lstate=true local testDoor hook.Add("onChatMessage","defaultchat",function(ply,msg) -- This will relay to all clients with a nicely formatted message and who sent it Msg("<"..ply:GetName().."> "..msg) SendChat("<green>"..ply:GetName()..": <yellow>"..string.sub(msg,5)) if string.sub(msg,5)=="shieldme" then local e = CreateEntity("shield") e:SetPosF(ply.Pos.x,ply.Pos.y) e:Spawn() e:SetParent(ply) end if string.sub(msg,5)=="light" then lstate = (lstate==false) spawnlight:SetState(lstate) end end) hook.Add("onPlayerSpawn","plytest",function(ply) SendChat("<green>"..ply:GetName().." <yellow>has connected") ply:SetPosF(math.random(100,400),math.random(100,400)) local g = CreateEntity("flashlight") g:Spawn() ply:GiveItem(g) end) hook.Add("onMapLoaded","testdoor",function() Msg("On map load run") d = CreateEntity("Door") d:SetPosF( (64*7) + 32 , (64*9) + 8) d:Link(ZoneByName("Spawn Room"),ZoneByName("Corridor")) d:Spawn() testDoor=d local function AddLight(x,y,r,g,b,brightness,size) local l = CreateEntity("Light") l:SetPosF(x,y) l.brightness=brightness l.size=size l.r=r l.g=g l.b=b l:Spawn() return l end spawnlight=AddLight(478.000000,285.999847, 255, 255, 255, 0.9, 10) AddLight(479.000000,671.999939, 255, 255, 255, 0.5, 3) AddLight(215.000000,760.000000, 255, 255, 0, 0.8, 3) AddLight(663.000000,766.000000, 255, 255, 255, 0.4, 3) end) CreateConCommand("door",function() testDoor:ToggleOpen() end) [/lua]
Ended up beginning to rewrite my game framework and even though I really got pretty much nothing done I at finally got back to work. Looked at some code from other people's projects they've shown me and learned a thing or two about game structuring, so hopefully I'll be able to make a better setup than last time.
[QUOTE=SamPerson123;28482994]Well, it's official. My maze solving algorithm does not find anything that is anywhere close to the shortest path. Also, while drawing, I assumed that if there are two adjacent cells that were visited in the solution that do not have a wall between them, then the solution path must connect them. This is clearly not always the case. [media]http://i120.photobucket.com/albums/o181/SamPerson12345/wat-1.png[/media] If the grid had no walls it would fill the entire thing.[/QUOTE] Looks like my paper after finishing a maze in school.
Question on a practice quiz for my AP Comp Sci test on inheritance (I figured I may as well look over the quiz the night before, to make sure I didn't miss some minor detail or something) [quote]6) What is the purpose of designating something as protected? a) If you want to &#8220;protect&#8221; something from being overloaded, since it is illegal to overload something which is set as protected. [b]b) protected sounds a whole lot better than public or private (I had to add this one since this was an answer I actually got one year&#8230;)[/b] c) If you want something to be inherited, it must be set as protected. d) To let something be inherited with direct access without breaking encapsulation.[/quote]
Is it a? I'm not to sure about these things since I haven't gotten to far into programming.
It's D... but the point of me posting that is B (which I bolded but the code tags kinda fail at showing bolded text) [editline]7th March 2011[/editline] changed to quote tag
Sorry, you need to Log In to post a reply to this thread.