|
ErIog posted:I love the mentality required to write something like this. "Guys..this C++ thing is just a tool of the man that we don't need." On a somewhat related note, why are many new coders full of distrust and want to roll things on their own? No matter how much you tell them it's a bad idea, they will not listen to you. They'll even be polite about it, but you'll never convince them otherwise. It's surprising how many people show up to #macdev:
Doing these things doesn't help them learn how things work. It just frustrates them and fills the channel with questions that are usually answered with, "Why are you doing that? Just use so-and-so API."
|
# ¿ Apr 14, 2010 19:14 |
|
|
# ¿ Apr 19, 2024 03:38 |
|
Flobbster posted:The second one is just foolish, but I can understand the first and the third points. When I made the switch to OS X a few years ago, coming from a Windows development background it took me a little bit of time to really understand how Interface Builder worked differently from, say, the Windows dialog resource editor () or the Windows Forms editor. I'm saying that these new developers know they didn't have to do things manually, but they insist on doing them out of a distrust of the system and a fear of things that seem magical. The common reason I hear is that they want to do everything themselves "to learn," but it doesn't help them learn at all. Avoiding IBOutlets, for example, is just silly and cumbersome. As for the third point, it's a single method call to set a double-click action for a table view. 1337JiveTurkey posted:We teach new coders how to write programs that open a file, read a character stream from them, parse it and then write it to another file. We don't teach them how to do the same task with an ESB and data binding API. When I graduated from college, I didn't really trust the libraries and frameworks I now consider indispensable because I didn't understand them but I did understand the Unix model and I did understand how to parse character streams. It took experience before I could really appreciate the level of abstraction that they operated at, and I gained some of that experience by reinventing the wheel on occasion. There's a big difference between that and what I'm talking about, which is avoiding fundamental things like NIB files because IBOutlets (which are just pointers) just don't seem as cool and hardcore as writing out a bunch of pointless setup code that's equivalent to 10 seconds spent in Interface Builder. It's emotion-based programming. Toady fucked around with this message at 02:06 on Apr 15, 2010 |
# ¿ Apr 15, 2010 01:43 |
|
Munkeymon posted:I should have specified that it's not totally unreasonable for a one-man operation. It seems kind of weird and arbitrary, but that's me.
|
# ¿ Dec 2, 2010 22:41 |
|
Every time I read $your_favorite_language code or the bizarre things that $your_favorite_language does I wonder how the hell that language caught on. It's like someone's academic experiment that broke out of the lab.
|
# ¿ Mar 29, 2011 18:06 |
|
Dooey posted:Am I the only one who finds reading code in mixed styles not a big deal? I always use the same style for my own code, but at work we all have different styles and when I read other peoples code I have no problems at all. I went through a period where I tried each style to see which one I truly preferred, and after the initial novelty of each one wore off, I didn't find any one more readable than the other, so I just chose one to be consistent. Mustach posted:I think that monospace fonts are an eyesore. I sometimes think that people stick to them just so they can pretend their code is some kind of WYSIWYG and waste time with valueless formatting like this: Fixed-width fonts in Objective-C code let Xcode automatically line up colons in long messages, which is really nice: code:
Toady fucked around with this message at 21:35 on Aug 9, 2011 |
# ¿ Aug 9, 2011 21:21 |
|
There's a relatively well-known thread about goto on the Linux kernel mailing list.
|
# ¿ Sep 8, 2011 17:24 |
|
Someone on Reddit posted:I'm a little more familiar with minecraft's internals than the average player, but less so than modders and server administrators. I'm fortunate enough to rub shoulders with these folks and do the odd bit of mc development work myself, and I'd like to point out that Mojang's testing cannot be considered thorough by industry standards.
|
# ¿ Sep 15, 2011 23:53 |
|
Munkeymon posted:I mean, I paid $9 for a lego simulator and it was fun to mess around with for a few weeks, but I haven't been back in a while. How in gently caress can they not just stop adding retarded features (hunger?) and clean poo poo up for a few months. That's what I would do if people dumped money in my lap, at least. I suspect the game is difficult to update. Official mod support will be provided in the form of a source code dump, so that should prove interesting to read and will probably lead to unofficial forks. In my opinion, the biggest surprise is the lack of a bug tracker.
|
# ¿ Sep 20, 2011 20:24 |
|
TasteMyHouse posted:"an SQL"? I thought everyone pronounced it "Sequel". The official pronunciation is to say the letters.
|
# ¿ Sep 22, 2011 00:21 |
|
Jethro posted:bar has no value, since it is uninitialized, but it can hold a value which is a reference to an object of type Object. bar doesn't hold a reference a stack-allocated Object?
|
# ¿ Sep 26, 2011 21:20 |
|
Brecht posted:No, it is not equally valid, it is not valid at all to say that, this is not what the word or concept variable means and this exactly the point that many people are trying to make clear to you. I think you're being a little too pedantic here.
|
# ¿ Sep 26, 2011 22:08 |
|
Munkeymon posted:My sister will download it and set it as the default browser on Windows machines because she uses a Mac and since Macs come with Safari that means Safari is the best browser and so she will refuse to use anything else if she can help it. It's pretty sad. I imagine other Apple users do the same when, say, they go to work and have to use the Windows workstation the company provides. What's sad about that if they happen to prefer Safari? In fact, it may become quite useful if the Windows version ties into iCloud.
|
# ¿ Sep 30, 2011 18:57 |
|
Edit: Whoops, already posted.
Toady fucked around with this message at 20:20 on Oct 11, 2011 |
# ¿ Oct 11, 2011 18:35 |
|
PrBacterio posted:I'm sorry, is it bad that I just can't look beyond the horror of actually using COBOL at all in the first place to whatever it is you're trying to show to us here? COBOL is not uncommon in the banking industry.
|
# ¿ Oct 31, 2011 18:40 |
|
Star Warrior X posted:Are you trying to say that it's common for business-oriented applications? I mentioned banking because it was banking code that was quoted.
|
# ¿ Oct 31, 2011 18:55 |
|
qntm posted:I just want you to know that I laughed at this. The other guy didn't get it, but I did. Well done. I got it. PrBacterio posted:I know that. I also know that people still use MUMPS in the medical or insurance sectors or wherever it was used for. I was only saying that that's a horror imo COBOL today has classes, .NET and JVM support, C bindings, and other useful stuff. I've never had to work with it, but I wonder if it's such a horror to use in practice since so much high-dollar industry still depends on it.
|
# ¿ Nov 1, 2011 18:03 |
|
It's amusing how many times the developer claims something is fixed, followed by someone posting an exploit to prove it's not. I don't understand why he got mad at that Dan Rosenberg guy, other than bruised ego.
|
# ¿ Nov 4, 2011 18:01 |
|
He admitted he actually put Rosenberg on ignore, causing him to miss one of Rosenberg's exploit reports.Jonnty posted:e: awww this is just cute It's a tongue-in-cheek reference to this: http://www.exploit-db.com/exploits/15704/ Toady fucked around with this message at 23:26 on Nov 4, 2011 |
# ¿ Nov 4, 2011 22:00 |
|
Has there ever been a published book of coding horrors and related mistakes of technology? Like a Darwin Awards of programming?
|
# ¿ Jan 18, 2012 08:57 |
|
http://stallman.org/archives/2003-may-aug.html: "[P]rostitution, adultery, necrophilia, bestiality, possession of child pornography, and even incest and pedophilia ... should be legal as long as no one is coerced. They are illegal only because of prejudice and narrowmindedness." http://www.stallman.org/archives/2006-may-aug.html#05: "I am skeptical of the claim that voluntarily pedophilia harms children. The arguments that it causes harm seem to be based on cases which aren't voluntary, which are then stretched by parents who are horrified by the idea that their little baby is maturing."
|
# ¿ Mar 21, 2012 18:49 |
|
pokeyman posted:Wait, help me out here. Why shouldn't he be a part of software history? Is it because he eats things you find disgusting? Or because you've diagnosed him with a mental illness? I mean, we all know that anyone with a mental illness can't meaningfully contribute to society. Even more so when that illness is diagnosed remotely from an armchair. And I don't like eating beets, so I'd like to throw out anyone who does eat beets. In my opinion, someone who eats their toe jam in front of people or believes those who write non-free software are unethical and should go "work in factories" and that their children should starve is not all there. He's the ultimate example of rigid idealism at the expense of compassion and practicality. It's understandable that his presence in computing history might be considered abhorrent to some who are embarrassed by him.
|
# ¿ Mar 21, 2012 21:36 |
|
pokeyman posted:You certainly wouldn't be the first to diagnose someone acting against the herd as mentally ill. Not only is that diagnosis immediately suspect, it also doesn't make it a relevant factor when acknowledging the guy's numerous contributions to computing. Simply acting against the herd isn't why he's considered mentally ill. It's his impractical views and gross public behavior. If you write non-free software for your job, he actually considers you unethical and thinks your children should starve, after he criticizes you for having children at all. While he is a part of computer history, he's a very minor figure compared to other far more influential people he despises, and he is much less important to the world than supporters often proclaim (sorry, GNU/world).
|
# ¿ Mar 21, 2012 23:53 |
|
The real level of his influence on the computer industry today is an argument for another debate, but the point is that there are legitimate reasons to be disgusted by the guy. GNU style indenting, gross!
|
# ¿ Mar 22, 2012 00:06 |
|
evensevenone posted:There would have been no point to making Linux better if it were under MIT. Vendors could just make their own versions that only worked on their hardware and they would have gladly spent the last 20 years re-implementing each others features poorly and incompatibly and suing each other. Doesn't BSD refute this?
|
# ¿ Mar 22, 2012 21:32 |
|
I have a personal style, but I can read and write multiple styles without caring either way, certainly not enough to spend time maintaining multiple code formatting profiles. If you're so used to your personal style that you have issues when reading or writing other common styles, you should consider exposing yourself to more external code. You should also experiment with other programming languages so that you're not attached to the syntax of your pet language. The algorithms and data structures are what matter.
|
# ¿ Mar 25, 2012 22:28 |
|
Those are arguably uncommon styles (I hope).
|
# ¿ Mar 26, 2012 01:01 |
|
That code is auto-generated.
|
# ¿ Mar 31, 2012 21:00 |
|
pigdog posted:Seeing as he has 3700 viewers at the moment, I suppose plenty of people do. Notch's fans are a little...different. I'd be willing to bet the majority of the viewers aren't programmers.
|
# ¿ Apr 8, 2012 01:27 |
|
Jabor posted:Basically Notch's code almost always looks as if he's hacked on it just enough to get it "working" and then just left it like that without ever cleaning it up in any way. I don't think it's accurate to pin negative opinions on nerd jealousy or increased scrutiny due to success. Minecraft's code is objectively bad. It doesn't even combine identical adjacent quads. Toady fucked around with this message at 01:46 on Apr 8, 2012 |
# ¿ Apr 8, 2012 01:38 |
|
That Turkey Story posted:So what, how often would that actually happen in a game like minecraft? Quite often since most buildings and other user creations, plains-like biomes, oceans/lava, etc. have flat surfaces. quote:Edit: Although, to be honest, I highly doubt that would ever be a bottleneck anyway. Fear not, the engine does far dumber things.
|
# ¿ Apr 8, 2012 02:05 |
|
That Turkey Story posted:Yeah, that would be the joke. Whoops.
|
# ¿ Apr 8, 2012 08:41 |
|
Keevon posted:You know maybe instead of being an angry nerd and writing your paper about how poorly notch wrote a multi million dollar game you could try being productive and write your own game but properly and show him whats what. What a weird comment. Nobody is angry, and making millions doesn't change the quality of the code.
|
# ¿ Apr 8, 2012 19:57 |
|
Chuu posted:A lot of the hate is that it fundamentally bothers some people that code quality and popularity are not correlated at all. There isn't hate, sour grapes, or jealousy here. The point of this thread is to mock bad code. If Minecraft was well-written, it wouldn't get mentioned. The fact that it's popular, inexplicably runs poorly, and has had its technical problems exposed through decompilation makes it an obvious target. Just because Notch made lots of money off of it or that most of his users aren't aware of its design flaws doesn't make it exempt from technical criticism.
|
# ¿ Apr 9, 2012 01:01 |
|
Ensign Expendable posted:Why does a modern programming language still have gotos!? goto isn't automatically bad. Example: http://kerneltrap.org/node/553/2131
|
# ¿ Apr 19, 2012 20:53 |
|
duck monster posted:For the love of god, bring back pascal as a mandatory educational language PLEASE aarrgghhhhhhh. There is no valid reason to use GOTO ever that does not have as its root cause "Doesn't 'get' structured programming discipline". From the previously linked lkml thread: quote:From: Linus Torvalds
|
# ¿ Apr 20, 2012 08:14 |
|
GrumpyDoctor posted:So what is the correct use of XML? I'm going to get asked about it tomorrow and I know nothing about its best practices. It's a language for generating markup languages.
|
# ¿ Apr 30, 2012 20:45 |
|
Fren posted:I've never heard anyone in the Lisp community say either of those things, and I can't name a single person who considers Paul Graham a Lisp figurehead. Maybe you have an aphasia? It's not as if there isn't a known "heh, finally caught up to Lisp" attitude out there. Happens to any marginalized community.
|
# ¿ May 9, 2012 19:24 |
|
HappyHippo posted:"Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp." "...including Common Lisp."
|
# ¿ May 9, 2012 21:27 |
|
"how to use pointers in Objective c"Objective-C code:
Toady fucked around with this message at 22:47 on Jun 13, 2012 |
# ¿ Jun 13, 2012 22:45 |
|
|
# ¿ Apr 19, 2024 03:38 |
|
I wonder how much of Valve's choice of Squirrel for Left 4 Dead 2 and Portal 2 had to do with its reference counted memory management. It's hard to find information about Squirrel's real-world use compared to Lua. I adopted Squirrel for my current project, but it's not a game and so I can't speak to any performance benefits. However, I prefer Squirrel's API as well as its explicit slot creation over Lua's behavior in which undefined variables don't generate an error.
|
# ¿ Sep 15, 2012 08:36 |