AboutSecond year University student for computer science
Joined devRant on 9/10/2016
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
So I'm working on an assignment for my Computer Science class, and we have to basically compute strings into hash values and then modulo it by 1 million and put it into the hash table. But the value keeps overflowing and turning into negative values, anyone know how I can calculate the key?
(BTW, the hashcode is the same code that is calculated by the .hashCode function in Java)5
I've been wondering this for a while now, but how are senior programmers able to (or at least seem to) remember all the code for all the different languages with all the different syntax?
Let me explain: From my experience there's usually two types of thinkers, there's the memorizers, and the logical thinkers. Its usually the difference between people good at history and people good at math. So considering that most programmers would need to be able to think logically (to problem solve obviously), how do they remember all this different code? I always forget the small details which I have to look back at earlier code to see how it was done (Especially annoying for written exams where we have to remember all the code and how to use it)7
Anyone have any good suggestions for Java IDEs/Editors? I'm using Eclipse right now, and since I'm a student I can get IntelliJ Ultimate free, except I can't figure out why the run/debug buttons are greyed out...
Also would be cool to suggest good dark themes for whichever program you guys mention. And which OS would be good to use? I'm thinking Ubuntu right now
Plz don't hate for these dumb questions, I'm only a first year xD8
I Have always wanted to create a game with tons of openness. Kind of a mix between Dishonored, Thief, and We Happy Few. You have an entire active city where people actually have goals and daily jobs and such. It would be cool to have everything time based, so stuff happens even if you're not doing anything, and even be able to live a practically normal life, get a job, make friends. See news happen, and perhaps in the dead of night you turn into an assassin and prevent events from happening that could kill many people. And so on. Just being able to watch the city lively at work and NPCs actually having goals to complete each day, it would be so interesting. I suppose Skyrim is the closest game to my idea as of current3