• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:31
CET 11:31
KST 19:31
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool42Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
Explore the Palmistry Certificate Course at Bivs Weekly Cups (March 16-22): herO doubles, Cure surprises Weekly Cups (August 25-31): Clem's Last Straw? Team Liquid Map Contest #22 - Presented by Monster Energy What mix of new & old maps do you want in the next ladder pool? (SC2)
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
ASL21 General Discussion Soulkey's decision to leave C9 BGH Auto Balance -> http://bghmmr.eu/ JaeDong's form before ASL [ASL21] Ro24 Preview Pt1: New Chaos
Tourneys
[ASL21] Ro24 Group B [ASL21] Ro24 Group A ASL Season 21 LIVESTREAM with English Commentary [Megathread] Daily Proleagues
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2070 users

The Big Programming Thread - Page 164

Forum Index > General Forum
Post a Reply
Prev 1 162 163 164 165 166 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
LukeNukeEm
Profile Joined February 2012
31 Posts
September 06 2012 13:52 GMT
#3261
On September 06 2012 10:10 DarkGeneral wrote:
Show nested quote +
On September 06 2012 09:53 LukeNukeEm wrote:
On September 06 2012 09:46 DarkGeneral wrote:
On September 06 2012 09:27 LukeNukeEm wrote:
On September 06 2012 09:01 DarkGeneral wrote:
1. How do I code an Armor mitigation function/class?
For example the player has 112 armor, and is level 4, the enemy is lvl 6. How do I make it that 112 turns into a certain % reduction?
such that more player/monster level difference affects the % and also the more the static armor, the less stacking effect it has, such as a diminishing return or a softcap


You could do something like:
dmgModifier = 100 / (100 + armor);
dmgOut = dmgModifier * dmgIn;

Adjust the numbers to what you feel works best for you.




Sweet, I like that. Any ideas on how to play level difference into this calculation?


Just do the same thing again - pretend that each level is worth 50 armor or so. either work it in the existing modifier, or create a new one and multiply both, e.g:
lvlDiffModifier = 100 / (100 + 50 * lvlDiff);
dmgOut = armorModifier * lvlDiffModifier * dmgIn


Beautiful simplcity,

now for the last aspect, how would I implement diminishing returns?

As the number increases and the % approaches lets say 70% the % amount per armor point would have to curve down, what is the best way to do that?


with this approach every point in armor is already worth less than the previous point;
the first point is worth 0,99009900990099...%,
the second point is worth an additional ~0,970685%
100 armor = 50% dmg
200 armor = 33% dmg
300 armor = 25% dmg
400 armor = 20% dmg
900 armor = 10% dmg
etc

if you want to further diminish them, you could say that everything over a certain threshhold gets squarerooted, eg:
if (displayedArmor > 500)
realArmor = 500 + sqrt(500 - displayedArmor);
Stimp
Profile Joined November 2010
South Africa780 Posts
September 06 2012 20:11 GMT
#3262
Does anyone know of a PHP or JavaScript library for working out volumes of liquid in various shape tanks? Really don't want to have to spend a ton of time finding the formulas and converting it myself =/
Don't count your apples before they've... grown
berated-
Profile Blog Joined February 2007
United States1134 Posts
Last Edited: 2012-09-07 00:24:14
September 07 2012 00:20 GMT
#3263
On September 06 2012 14:46 wherebugsgo wrote:
Show nested quote +
On September 06 2012 13:16 phar wrote:
On September 06 2012 00:43 wherebugsgo wrote:
On September 05 2012 18:24 Frigo wrote:
I also advise you to read Clean Code and learn how to use Eclipse and its various refactor options.


Don't think I'll be using Eclipse, I like emacs too much :p

Eclipse is a huge timesaver for Java. If you're not going to be writing that much code it won't matter, but if you have to crank out like 4k loc a week, Eclipse helps with the RSI :\

If this is for ar Uni class, just use whatever you're most comfortable with. But the default auto complete / auto import / auto getter/setter /etc stuff that's built in to Eclipse is really handy.


yeah so it's for a university class (UC Berkeley) and our "official" text editor is emacs. We have been told that we can use Eclipse if we want to, but our prof made a list of things he hates about Eclipse and most of us learned on vim/emacs anyway so it's not a huge deal.



Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2012-09-07 07:19:12
September 07 2012 07:18 GMT
#3264
On September 07 2012 09:20 berated- wrote:Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.

Agree with this 100%.

"ctrl+alt+h f3 f3 f3 f3 f3 f3 f3 f3 f3... oh THAT'S what that does"

If it's just for an Uni class, go with whatever people are most likely to be able to help you out with. If emacs is recommended, use it (especially if you're already a lisp hacker).
Who after all is today speaking about the destruction of the Armenians?
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 07 2012 07:49 GMT
#3265
On September 07 2012 16:18 phar wrote:
Show nested quote +
On September 07 2012 09:20 berated- wrote:Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.

Agree with this 100%.

"ctrl+alt+h f3 f3 f3 f3 f3 f3 f3 f3 f3... oh THAT'S what that does"

If it's just for an Uni class, go with whatever people are most likely to be able to help you out with. If emacs is recommended, use it (especially if you're already a lisp hacker).


I was anti-IDE myself for a very, very long time. "50k LoC? Sure, i can keep that in my head, don't need an IDE". I still think VIM is the best editor ever created and i also think Eclipse is a horrible, sluggish mess.
But after working with Visual Studio on a project a few years ago i learned to really appreciate IDEs. There is so much stuff that is a lot easier with a really good IDE, especially for debugging and tracing problems.

However, i agree, for university always go with what the prof recommends.
dartoo
Profile Joined May 2010
India2889 Posts
Last Edited: 2012-09-07 07:58:18
September 07 2012 07:55 GMT
#3266
Why would anyone not use ide's? they only make your life easier,It's totally impossible for me without my ide tools, and environment.

Maybe he's from the older days or has not worked on large projects with multiple people...I was reading a blog by a blizzard lead programmer..and for warcraft 2, they did not even have source control o.0, ended up manually merging code and such, and were totally surprised when bugs reappeared lol.

Edit: I dont like eclipse though, it's horrible, I had to use it for an android project...and it was really sluggish.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 07 2012 08:16 GMT
#3267
On September 07 2012 16:55 dartoo wrote:
Why would anyone not use ide's? they only make your life easier,It's totally impossible for me without my ide tools, and environment.

Maybe he's from the older days or has not worked on large projects with multiple people...I was reading a blog by a blizzard lead programmer..and for warcraft 2, they did not even have source control o.0, ended up manually merging code and such, and were totally surprised when bugs reappeared lol.

Edit: I dont like eclipse though, it's horrible, I had to use it for an android project...and it was really sluggish.


Some stories from reallife:
Our shop development team works almost completely without IDEs. Some of them use Netbeans but they don't use anything of what is actually the important aspect of IDEs, they use it only as fancy editor with tabs and git integration... and that is for a custom developed multi-million euro online store with a complete inventory system, payment and all.

Our other team that controls the core payment and access control engine for the VOD area doesn't even use Git, they only use FTP & Notepad++ and have a ton of .20120905, .20120906, etc. files.

... and we are a "professional software development company" owned by a multi-million euro company.

Oh, and i quit to the end of this month. Sadly, i know that it's not much better in any other company.


If you ever find yourself working without IDE or source/version control system, stop and think. Then contrinue to work with IDE & VCS.
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
September 07 2012 08:45 GMT
#3268
How is VCS compared to GIT/SVN?
England will fight to the last American
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 07 2012 09:44 GMT
#3269
On September 07 2012 17:45 KaiserJohan wrote:
How is VCS compared to GIT/SVN?


VCS = Version Control System.
It's just the general term for all the version control systems like git and svn. Not to be confused with VSS which is actually awful.

Also, git is the best once you understand branching, which is something i try to teach some of my colleagues since a year and they haven't grasped even the basic concept and whenever one of them overwrites a change from a merge conflict due to stupidity, my boss says "If that continues to happen, we'll go back to FTP" -.-
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
Last Edited: 2012-09-07 09:58:37
September 07 2012 09:57 GMT
#3270
On September 07 2012 18:44 Morfildur wrote:
Show nested quote +
On September 07 2012 17:45 KaiserJohan wrote:
How is VCS compared to GIT/SVN?


VCS = Version Control System.
It's just the general term for all the version control systems like git and svn. Not to be confused with VSS which is actually awful.

Also, git is the best once you understand branching, which is something i try to teach some of my colleagues since a year and they haven't grasped even the basic concept and whenever one of them overwrites a change from a merge conflict due to stupidity, my boss says "If that continues to happen, we'll go back to FTP" -.-


Oh lol, yes I confused VCS with VSS.

I usually use SVN, but with git I have some wierd experience with my tortoiseGit client for some reason, the tortoiseGitcache process is really buggy (like some files not show as versioned or commited, takes 50% of cpu all the time, etc) for me atleast, but seems to work fine for others.

For me SVN does everything I need it to do, but is there any case where SVN fails and Git does better?
England will fight to the last American
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
Last Edited: 2012-09-07 10:05:21
September 07 2012 10:04 GMT
#3271
relevant for git: http://geekandpoke.typepad.com/geekandpoke/2012/07/simply-explained-2.html

we could start a war about git vs hg, personally i find hg to be more user friendly, although as i understand git does offer a few more advanced features that mercurial doesn't have, but i haven't got around to needing any of them yet.. if git confuses you and you can chose for yourself what to use, you could try mercurial. Although i don't know if there is such an easy "register and you get a repository" thing for mercurial like github for git, you'd need your own server if not.

/edit: tl doesn't like image embed, so linking to page instead^^
Gold isn't everything in life... you need wood, too!
netherh
Profile Blog Joined November 2011
United Kingdom333 Posts
September 07 2012 10:19 GMT
#3272
On September 07 2012 19:04 MisterD wrote:
relevant for git: http://geekandpoke.typepad.com/geekandpoke/2012/07/simply-explained-2.html

we could start a war about git vs hg, personally i find hg to be more user friendly, although as i understand git does offer a few more advanced features that mercurial doesn't have, but i haven't got around to needing any of them yet.. if git confuses you and you can chose for yourself what to use, you could try mercurial. Although i don't know if there is such an easy "register and you get a repository" thing for mercurial like github for git, you'd need your own server if not.

/edit: tl doesn't like image embed, so linking to page instead^^


I too find hg to be easier than git, but maybe that's just because it's what I use most.

I recommend Bitbucket as the hg equivalent of github (it also supports git). You get unlimited repositories (accessible by up to 5 users) for free (you have to pay for repositories accessible by more users).
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
Last Edited: 2012-09-07 10:43:45
September 07 2012 10:43 GMT
#3273
On September 07 2012 18:57 KaiserJohan wrote:
Show nested quote +
On September 07 2012 18:44 Morfildur wrote:
On September 07 2012 17:45 KaiserJohan wrote:
How is VCS compared to GIT/SVN?


VCS = Version Control System.
It's just the general term for all the version control systems like git and svn. Not to be confused with VSS which is actually awful.

Also, git is the best once you understand branching, which is something i try to teach some of my colleagues since a year and they haven't grasped even the basic concept and whenever one of them overwrites a change from a merge conflict due to stupidity, my boss says "If that continues to happen, we'll go back to FTP" -.-


Oh lol, yes I confused VCS with VSS.

I usually use SVN, but with git I have some wierd experience with my tortoiseGit client for some reason, the tortoiseGitcache process is really buggy (like some files not show as versioned or commited, takes 50% of cpu all the time, etc) for me atleast, but seems to work fine for others.

For me SVN does everything I need it to do, but is there any case where SVN fails and Git does better?


Git is a lot more advanced, especially concerning branches and such. Also, it has a different philosophy which is not that easy to understand if you come from an SVN/CVS background. It took me a few weeks of using it until the good parts actually clicked and i understood it all.

If you have a big project on which multiple people work, like for example the VOD websites on which i work as the core developer, and there are sub projects where you create several features that are based on the original version but consists of several parts, the branches come in very handy.

For example our current structure:

master ----- Live
\
\_ branch ticket_1234 - Ticket 1234 from the bug-tracker
\
\_ branch ticket_2345 - Ticket 2345 from bug-tracker
\
\_ branch mobile_dev - Main development branch for the new mobile version of our website
\
\_ branch ticket_3456 - Ticket 3456 for a bug in the mobile version


All developers working on the mobile website that we are launching soon are always branching off the mobile_dev branch and once their feature/bugfix is complete, they merge the ticket branch into the mobile_dev branch. Until then, the mobile_dev branch stays unaffected by anything they do, so they don't disrupt the work of other developers.

The developers working on the normal system are branching off the master branch and all their changes are unaffected until i merge their changes into the live system. Until then i can freely pull and push (SVN: update and commit) without any danger of accidently getting something into the live system.

If there is a change in the live system, for example a critical bugfix, i can merge the new live status it into the mobile_dev branch so i don't have to bother with losing changes once the mobile version goes live.

None of the junior developers or web designers ever interacts with the master branch, only me and my successor merge stuff into live and whenever we make pull (SVN: update), we don't have to worry about accidently getting more than we wanted.

It's really easy with git once you understand how it works.

Another advantage:
Git is a distributed system, that means if we had git when our VCS server had a harddrive failure, we could have just copied a developers repo on the new server and continued working but since we had SVN we lost everything and had to restore everything by hand - of course at the loss of the complete development history.
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2012-09-07 22:02:44
September 07 2012 21:59 GMT
#3274
If you have a really big project (for some definitions of the word "big"), git just straight up doesn't work, it's too slow:

http://thread.gmane.org/gmane.comp.version-control.git/189776

For large code bases, you need something underneath. You can use git on top for the smaller pieces, and still get most of the awesome goodness that git provides. Or you can break it up into smaller projects. Or a bunch of other solutions. But just plain git on a really large repo won't work.
Who after all is today speaking about the destruction of the Armenians?
delHospital
Profile Blog Joined December 2010
Poland261 Posts
September 07 2012 22:32 GMT
#3275
On September 07 2012 16:49 Morfildur wrote:
Show nested quote +
On September 07 2012 16:18 phar wrote:
On September 07 2012 09:20 berated- wrote:Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.

Agree with this 100%.

"ctrl+alt+h f3 f3 f3 f3 f3 f3 f3 f3 f3... oh THAT'S what that does"

If it's just for an Uni class, go with whatever people are most likely to be able to help you out with. If emacs is recommended, use it (especially if you're already a lisp hacker).


I was anti-IDE myself for a very, very long time. "50k LoC? Sure, i can keep that in my head, don't need an IDE". I still think VIM is the best editor ever created and i also think Eclipse is a horrible, sluggish mess.
But after working with Visual Studio on a project a few years ago i learned to really appreciate IDEs. There is so much stuff that is a lot easier with a really good IDE, especially for debugging and tracing problems.

However, i agree, for university always go with what the prof recommends.

You can have the best of both worlds: https://github.com/jaredpar/VsVim (I'm sure there's something similar for other IDEs, like *bleh* Eclipse). I've used it for a few months and it worked pretty well. I'm not a VS guru though, so I don't know if it works well with some of the more advanced features.

On September 08 2012 06:59 phar wrote:
If you have a really big project (for some definitions of the word "big"), git just straight up doesn't work, it's too slow:

http://thread.gmane.org/gmane.comp.version-control.git/189776

For large code bases, you need something underneath. You can use git on top for the smaller pieces, and still get most of the awesome goodness that git provides. Or you can break it up into smaller projects. Or a bunch of other solutions. But just plain git on a really large repo won't work.

A 10 gigabyte repository? I don't think I'll see that much code in my entire life -.-
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
September 07 2012 22:48 GMT
#3276
On September 08 2012 07:32 delHospital wrote:
Show nested quote +
On September 07 2012 16:49 Morfildur wrote:
On September 07 2012 16:18 phar wrote:
On September 07 2012 09:20 berated- wrote:Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.

Agree with this 100%.

"ctrl+alt+h f3 f3 f3 f3 f3 f3 f3 f3 f3... oh THAT'S what that does"

If it's just for an Uni class, go with whatever people are most likely to be able to help you out with. If emacs is recommended, use it (especially if you're already a lisp hacker).


I was anti-IDE myself for a very, very long time. "50k LoC? Sure, i can keep that in my head, don't need an IDE". I still think VIM is the best editor ever created and i also think Eclipse is a horrible, sluggish mess.
But after working with Visual Studio on a project a few years ago i learned to really appreciate IDEs. There is so much stuff that is a lot easier with a really good IDE, especially for debugging and tracing problems.

However, i agree, for university always go with what the prof recommends.

You can have the best of both worlds: https://github.com/jaredpar/VsVim (I'm sure there's something similar for other IDEs, like *bleh* Eclipse). I've used it for a few months and it worked pretty well. I'm not a VS guru though, so I don't know if it works well with some of the more advanced features.

Show nested quote +
On September 08 2012 06:59 phar wrote:
If you have a really big project (for some definitions of the word "big"), git just straight up doesn't work, it's too slow:

http://thread.gmane.org/gmane.comp.version-control.git/189776

For large code bases, you need something underneath. You can use git on top for the smaller pieces, and still get most of the awesome goodness that git provides. Or you can break it up into smaller projects. Or a bunch of other solutions. But just plain git on a really large repo won't work.

A 10 gigabyte repository? I don't think I'll see that much code in my entire life -.-


Well, our repository for one of the VOD projects is 4GB in size...
... mostly because the idiot who initialized the git repository after our SVN harddrive crashed also accidently committed several video files into it and when i first had to use that repo (i was busy on another project at that time), it was already too late to redo it properly.

10GB is for pure code projects not too unlikely, though. You won't reach it in a year or two but after a few years in a big team the archive can grow really, really big.
At that point the most sensible solution is to split the project up into sub projects. For example we have payment, user management and our two core VOD projects in seperate git repositories eventhough no part can work without the other since there are different people working on the different parts anyways. That way they don't need to check out everything.
CatNzHat
Profile Blog Joined February 2011
United States1599 Posts
September 07 2012 22:49 GMT
#3277
On September 06 2012 14:46 wherebugsgo wrote:
Show nested quote +
On September 06 2012 13:16 phar wrote:
On September 06 2012 00:43 wherebugsgo wrote:
On September 05 2012 18:24 Frigo wrote:
I also advise you to read Clean Code and learn how to use Eclipse and its various refactor options.


Don't think I'll be using Eclipse, I like emacs too much :p

Eclipse is a huge timesaver for Java. If you're not going to be writing that much code it won't matter, but if you have to crank out like 4k loc a week, Eclipse helps with the RSI :\

If this is for ar Uni class, just use whatever you're most comfortable with. But the default auto complete / auto import / auto getter/setter /etc stuff that's built in to Eclipse is really handy.


yeah so it's for a university class (UC Berkeley) and our "official" text editor is emacs. We have been told that we can use Eclipse if we want to, but our prof made a list of things he hates about Eclipse and most of us learned on vim/emacs anyway so it's not a huge deal.


emacs is a good thing to know, it's quite a powerful text editor, but Eclipse is not just a text editor, it's an IDE, if you're writing a complex project, there is no reason to use emacs over eclipse if you have the option.
Kentor *
Profile Blog Joined December 2007
United States5784 Posts
September 07 2012 23:52 GMT
#3278
On September 04 2012 16:34 wherebugsgo wrote:
anyone have any tips on learning Java?

I come from a strong Lisp (Scheme specifically) background and I know Python fairly well in addition. I need to learn Java this semester. Very basic general stuff can be helpful for me. I like knowing the constraints or specifics of a language regarding its very basic ideas: things like, in Lisp everything has the value #t except for #f, whether doing tail-recursion has any benefits over regular recursion, (in Python tail-recursion has no benefit) syntax things to consider (parentheses in Lisp anyone? Also the fucking colons after all the loops in Python kept screwing me over lol)

Sup, glhf with Hilfinger. If you don't like his lectures just do a youtube search for CS61B for Shewchuk's lectures; they're really good. I don't think the Sun JVM does tail call optimization, not that knowing this is super important for this class. And only true is true and false is false, unlike in many other languages where everything is true except for false, nil, 0, etc. I also recommend reading the Head First book. I thought it was pretty good.
HowitZer
Profile Joined February 2003
United States1610 Posts
September 08 2012 00:57 GMT
#3279
On September 08 2012 07:32 delHospital wrote:
Show nested quote +
On September 07 2012 16:49 Morfildur wrote:
On September 07 2012 16:18 phar wrote:
On September 07 2012 09:20 berated- wrote:Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.

Agree with this 100%.

"ctrl+alt+h f3 f3 f3 f3 f3 f3 f3 f3 f3... oh THAT'S what that does"

If it's just for an Uni class, go with whatever people are most likely to be able to help you out with. If emacs is recommended, use it (especially if you're already a lisp hacker).


I was anti-IDE myself for a very, very long time. "50k LoC? Sure, i can keep that in my head, don't need an IDE". I still think VIM is the best editor ever created and i also think Eclipse is a horrible, sluggish mess.
But after working with Visual Studio on a project a few years ago i learned to really appreciate IDEs. There is so much stuff that is a lot easier with a really good IDE, especially for debugging and tracing problems.

However, i agree, for university always go with what the prof recommends.

You can have the best of both worlds: https://github.com/jaredpar/VsVim (I'm sure there's something similar for other IDEs, like *bleh* Eclipse). I've used it for a few months and it worked pretty well. I'm not a VS guru though, so I don't know if it works well with some of the more advanced features.

Show nested quote +
On September 08 2012 06:59 phar wrote:
If you have a really big project (for some definitions of the word "big"), git just straight up doesn't work, it's too slow:

http://thread.gmane.org/gmane.comp.version-control.git/189776

For large code bases, you need something underneath. You can use git on top for the smaller pieces, and still get most of the awesome goodness that git provides. Or you can break it up into smaller projects. Or a bunch of other solutions. But just plain git on a really large repo won't work.

A 10 gigabyte repository? I don't think I'll see that much code in my entire life -.-


10 gigabytes goes pretty quick when bring in external tools like VTK, ACIS, Python, Syncfusion for the GUI, etc.
Human teleportation, molecular decimation, breakdown and reformation is inherently purging. It makes a man acute.
CorsairHero
Profile Joined December 2008
Canada9491 Posts
September 08 2012 01:06 GMT
#3280
On September 08 2012 07:32 delHospital wrote:
Show nested quote +
On September 07 2012 16:49 Morfildur wrote:
On September 07 2012 16:18 phar wrote:
On September 07 2012 09:20 berated- wrote:Every reason you can come up with for hating and therefore not using any IDE like Eclipse/Netbeans is pretty much erased when you deal with projects that are so large that you can no longer keep all of the code in your head. Call hierarchies and being able to dive through code at a fast rate are imperative when dealing with enterprise type environments.

As stated, not a huge deal for when you're in Uni...just wanted to give the disclaimer that your professor's view is skewed because he's in a learning environment and not a get-shit-done environment.

Agree with this 100%.

"ctrl+alt+h f3 f3 f3 f3 f3 f3 f3 f3 f3... oh THAT'S what that does"

If it's just for an Uni class, go with whatever people are most likely to be able to help you out with. If emacs is recommended, use it (especially if you're already a lisp hacker).


I was anti-IDE myself for a very, very long time. "50k LoC? Sure, i can keep that in my head, don't need an IDE". I still think VIM is the best editor ever created and i also think Eclipse is a horrible, sluggish mess.
But after working with Visual Studio on a project a few years ago i learned to really appreciate IDEs. There is so much stuff that is a lot easier with a really good IDE, especially for debugging and tracing problems.

However, i agree, for university always go with what the prof recommends.

You can have the best of both worlds: https://github.com/jaredpar/VsVim (I'm sure there's something similar for other IDEs, like *bleh* Eclipse). I've used it for a few months and it worked pretty well. I'm not a VS guru though, so I don't know if it works well with some of the more advanced features.

Show nested quote +
On September 08 2012 06:59 phar wrote:
If you have a really big project (for some definitions of the word "big"), git just straight up doesn't work, it's too slow:

http://thread.gmane.org/gmane.comp.version-control.git/189776

For large code bases, you need something underneath. You can use git on top for the smaller pieces, and still get most of the awesome goodness that git provides. Or you can break it up into smaller projects. Or a bunch of other solutions. But just plain git on a really large repo won't work.

A 10 gigabyte repository? I don't think I'll see that much code in my entire life -.-


I agree on that one. A git status on a 1.2 gb source repo takes about 30 seconds, which is a hell of a lot faster than cvs. I dont know what companies have a 10 gb repo. It should have been split up before it got to that size. Imagine how long it would take to build that.
© Current year.
Prev 1 162 163 164 165 166 1032 Next
Please log in or register to reply.
Live Events Refresh
Afreeca Starleague
10:00
Ro24 Group B
Soulkey vs Ample
JyJ vs sSak
Afreeca ASL 8259
StarCastTV_EN181
Liquipedia
Sparkling Tuna Cup
10:00
Weekly #124
CranKy Ducklings70
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 172
ProTech146
SortOf 101
StarCraft: Brood War
Calm 12235
Flash 5321
Bisu 4013
GuemChi 1655
firebathero 695
BeSt 691
EffOrt 314
Zeus 290
Pusan 236
Leta 228
[ Show more ]
ZerO 215
actioN 194
Light 153
Stork 129
HiyA 118
Killer 81
ToSsGirL 74
Rush 61
Mind 58
Sharp 53
PianO 49
Terrorterran 41
Barracks 37
Hm[arnc] 20
GoRush 18
Nal_rA 17
yabsab 16
Shinee 14
Bale 14
soO 9
Noble 9
Purpose 8
sorry 5
Dota 2
XcaliburYe258
canceldota142
BananaSlamJamma108
League of Legends
JimRising 364
Counter-Strike
olofmeister2044
shoxiejesuss627
byalli436
x6flipin170
Super Smash Bros
Westballz13
Other Games
singsing1846
ceh9692
Sick289
crisheroes236
Happy76
Livibee68
Trikslyr22
Organizations
Other Games
gamesdonequick875
StarCraft: Brood War
UltimateBattle 222
Dota 2
PGL Dota 2 - Main Stream128
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH191
• StrangeGG 48
• LUISG 31
• CranKy Ducklings SOOP5
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Replay Cast
22h 30m
Afreeca Starleague
23h 30m
hero vs YSC
Larva vs Shine
Kung Fu Cup
1d
Replay Cast
1d 13h
KCM Race Survival
1d 22h
The PondCast
1d 23h
WardiTV Team League
2 days
Replay Cast
2 days
WardiTV Team League
3 days
RSL Revival
3 days
Cure vs Zoun
herO vs Rogue
[ Show More ]
WardiTV Team League
4 days
Platinum Heroes Events
4 days
BSL
4 days
RSL Revival
4 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
5 days
BSL
5 days
Replay Cast
5 days
Afreeca Starleague
5 days
Light vs Calm
Royal vs Mind
Wardi Open
6 days
Monday Night Weeklies
6 days
Sparkling Tuna Cup
6 days
Afreeca Starleague
6 days
Rush vs PianO
Flash vs Speed
Liquipedia Results

Completed

Proleague 2026-03-23
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.