Coding Help

Togepiover 10 years ago

I'm going to post here when I can't figure out certain aspects of Java. I don't know how many of you know the language well, but help will be appreciated as I go through this bootcamp.

Also an excuse for me to post a countdown until Doomsday.

Poll
If you code, what language do you prefer?
Python31%19
C++21%13
Java16%10
Other8%5
Ruby6%4
Combo (the right answer)6%4
C# (lol)5%3
Javascript3%2
cubover 10 years agoedited
im using amd

and sorry to disappoint but general consensus outweighs you
deleteddeletedover 10 years agoedited
Sorry to disappoint but I don't even have adblock enabled and CNN loads faster here than on your machine, lmao. Photoshop starts in under 10 seconds and most of the filters are near instant. I'm not even running it 'natively' as I have to start it with Wine. This is on a computer with a Q6600 processor which isn't even remotely recent.

Also don't most 3D games have PhysX which is accelerated on Nvidia GPUs?
cubover 10 years agoedited
photoshop does not work fine and even cached, with adblock, cnn.com takes 15 seconds to load

this computer can run 3d games
and before you point to gpu, physics are (generally) not managed in the graphics card

also heres an article
deleteddeletedover 10 years ago
Adobe Acrobat? Works fine, same with Photoshop. CNN loads in under 2 seconds.

This computer isn't even recent.
cubover 10 years ago
have you been to just plain websites like cnn.com

how much money do you have to throw at somebody to make a page that loads in under a minute
and i don't think it's even the backend that's the problem here (as would generally make more sense), but rather awfully cluttering the client
and libs like jquery dont help, yet everyone uses them. jquery in particular will take something simple like iterating an array and quadruple the processing power needed to run it somehow

also, name programs besides microsoft products. how about adobe? runs well?
deleteddeletedover 10 years ago
cub
eris
For many areas performance isn't that relevant either, it's often cheaper just to toss more hardware at a problem then investing in programming hours to either rewrite in something with a better optimizing compiler or to do a bunch of micro optimizations.
the problem with this mindset is that it leaks into areas where performance is very relevant and you end up with all of these horribly broken projects as a result, like so many big company websites that lag you to hell and games that will overheat your computer but have no reason to

and the solution is always get a better computer, not write better code. you should always be conscious of how your code is being interpreted
I said many areas, gaming is atypical even in terms of desktop applications, much more performance critical. No one notices inefficiencies in the coding of Microsoft Excel so much.

You'll also find that the kind of crap you're seeing with badly written games or frontend applications has more to do with limited time constraints and business practices. At the end of it if you're not coding open source or your own projects you're coding for a company and at their mercy in terms of time to market and so on.

Whether or not that's an ideal situation isn't really relevant, it's just how it is.
cubover 10 years ago
Private
admin
http://arxiv.org/abs/1511.04834
As a computer illiterate, I couldn't even make it past the first sentence.
"Deep neural networks have achieved impressive supervised classification performance in many tasks including:" translates to "AI is pretty good at:" in proper english
cubover 10 years ago
admin
don't worry too much

the world we're moving towards, computers will probably code themselves.
but will the code that codes itself be written well or will it produce mediocre code
AdrenalineMimeover 10 years ago
admin
AdrenalineMime
absurd
of course, it will also be one of the last things computers take from us in being able to do =)

i'll leave this article here for those of you who are computer literate to chew on http://arxiv.org/abs/1511.04834
i was actually referring to grossdude's advice on magic numbers. nice article though
Privateover 10 years ago
admin
AdrenalineMime
absurd
of course, it will also be one of the last things computers take from us in being able to do =)

i'll leave this article here for those of you who are computer literate to chew on http://arxiv.org/abs/1511.04834
As a computer illiterate, I couldn't even make it past the first sentence.
adminover 10 years ago
AdrenalineMime
absurd
of course, it will also be one of the last things computers take from us in being able to do =)

i'll leave this article here for those of you who are computer literate to chew on http://arxiv.org/abs/1511.04834
1
Gigaover 10 years agoedited
GrossDude
Lol, who's programming in C++ in the 21st century. That poll is whack as hell.
I guess you could say that I'm the best.
GrossDudeover 10 years ago
Lol, who's programming in C++ in the 21st century. That poll is whack as hell.
AdrenalineMimeover 10 years ago
absurd
GrossDudeover 10 years ago
So called "magic numbers:" are bad. If you need to use a five, let's say. Just mamke a public final static Integer named FIVED and assign it a value of 5 and then use that.
GrossDudeover 10 years ago
Just use goto, togepi, Just use goto.
deleteddeletedover 10 years ago
Sonrio
What if lucid is just a program programming itself
I think I speak for everyone when I say that it would make a ton of sense.
12
Sonrioover 10 years ago
What if lucid is just a program programming itself
deleteddeletedover 10 years ago
*lights up joint after eating shrooms*

yes yes the code will code itself
adminover 10 years ago
don't worry too much

the world we're moving towards, computers will probably code themselves.
1
AdrenalineMimeover 10 years ago
german
3
deleteddeletedover 10 years ago
what language should i take if i don't want to get hacked on epicmafia
cubover 10 years ago
eris
For many areas performance isn't that relevant either, it's often cheaper just to toss more hardware at a problem then investing in programming hours to either rewrite in something with a better optimizing compiler or to do a bunch of micro optimizations.
the problem with this mindset is that it leaks into areas where performance is very relevant and you end up with all of these horribly broken projects as a result, like so many big company websites that lag you to hell and games that will overheat your computer but have no reason to

and the solution is always get a better computer, not write better code. you should always be conscious of how your code is being interpreted
cubover 10 years ago
Togepi
I think Arcbell was ranting about a programmer taking optimization and putting that before readability and other basic functions of being a good programmer.
what's being implied here
deleteddeletedover 10 years ago
Togepi stay away from they
Togepi follow true success
and the path way to true success is hard.
We the best.