|
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. |
Its me again.
So i bought a domain name and, would like to know if its normal that i have to pay to use it for a wordpress blog? If not are there any major blogs that offer this service for free? sry for the questions but i' ll really stuck here and trying to put up a blog/website on my own, any help would be greatly appreciated
|
On November 21 2013 09:21 pebble444 wrote: Its me again.
So i bought a domain name and, would like to know if its normal that i have to pay to use it for a wordpress blog? If not are there any major blogs that offer this service for free? sry for the questions but i' ll really stuck here and trying to put up a blog/website on my own, any help would be greatly appreciated
A domain name registers that name with a nameserver, so if anybody asks, it knows where to send the request.
You'll also need a server to handle those requests. There are many solutions out there for this, but if you want your own server, you'll need to pay.
For a free solution, make an account at a free blogging platform (wordpress), then have your domain route to myname.bloggingplatform.com site.
For a pro-as-fuck solution, create a droplet at digitalocean.com or another IaaS, install wordpress or use a preconfigured image, then you can configure the server to do whatever you want (e-mail, shoutcast). Have your domain registrar point to that server's IP and its good to go.
|
If you're just a developer wordpress.com lets you handle quite a bit without having to purchase a domain or anything.
If you're setting up wordpress.org installation I think it is normal to pay for hosting IF you intend to get many users and care about speed. There might be some free hosts that work decently though. http://en.support.wordpress.com/com-vs-org/
I've set up an Amazon EC2 website recently but found it ridiculously difficult to do. There is however a way to remotely access the windows gui interface of amazon EC2. It's slow, but if you can manage that it's a way to manage a host. Amazon's costs scale with your usage and they do have free options for low usage.
For years I've used Sitegrounds as my host but more recently they've been dicks by saying my usage is impossibly high.
Heroku might be something worth trying.
Finally one option people do is they buy their own servers and host the content there. This is usually too expensive to do but the rasberry pi has been used to run servers. Just don't knock over your machine if you need good uptime!
|
On November 21 2013 08:09 3FFA wrote:Show nested quote +(I just started learning about them so I feel like playing with it and making a small text adventure game, the array is an array of the rooms) As I said here, this is for a set of 20 rooms to be navigated in. It gets really complicated to navigate more than one or two players/creatures through a ton of numbers that are listed but don't really make much sense. The reason I have 3 columns is because there are 3 routes to other rooms for each room on the map. I'll make sure I take 21 out of a loop and make it have its own separate assignment statement, thank you for pointing that out.
From a design standpoint a 3D array is not really the right way to go about it. It would be better to have a single array of rooms, and each room has 4 variables, north/south/east/west which link to other rooms. ("3 routes to other rooms" suggest that there are 4 rooms connected for each room, including the one you came from)
Also look at your program in terms of roles and responsibilities and the kind of components you want in your program, don't think about the implementation first.
For example. - It has a number of rooms = This tells me that a 1D Array of rooms is sufficient - A room can connect to multiple rooms = Each room either needs an array of more rooms or N/S/E/W, in your case 4, NSEW should be sufficient and less complicated. - Each room contains XYZ = A room needs to be a data-structure
Depends what you are trying to do though, if you are trying to learn multi-dimensional arrays there's much better problem domains in which multidimensional arrays are useful for. Such as a 2D array for a graphical tile-game, or matrix manipulation for 3D programming.
There's really no point in learning strange ways of implementing things because you're not really learning how to program. You learn to program by learning how to solve real problems in the best way possible. If you wanna learn how to use certain features of programming, you are better off finding a problem domain where the method you are using is appropriate, that way when you visit the same problem, you know exactly the best way of doing it.
|
On November 22 2013 08:21 sluggaslamoo wrote:Show nested quote +On November 21 2013 08:09 3FFA wrote:(I just started learning about them so I feel like playing with it and making a small text adventure game, the array is an array of the rooms) As I said here, this is for a set of 20 rooms to be navigated in. It gets really complicated to navigate more than one or two players/creatures through a ton of numbers that are listed but don't really make much sense. The reason I have 3 columns is because there are 3 routes to other rooms for each room on the map. I'll make sure I take 21 out of a loop and make it have its own separate assignment statement, thank you for pointing that out. From a design standpoint a 3D array is not really the right way to go about it. It would be better to have a single array of rooms, and each room has 4 variables, north/south/east/west which link to other rooms. ("3 routes to other rooms" suggest that there are 4 rooms connected for each room, including the one you came from) Also look at your program in terms of roles and responsibilities and the kind of components you want in your program, don't think about the implementation first. For example. - It has a number of rooms = This tells me that a 1D Array of rooms is sufficient - A room can connect to multiple rooms = Each room either needs an array of more rooms or N/S/E/W, in your case 4, NSEW should be sufficient and less complicated. - Each room contains XYZ = A room needs to be a data-structure Depends what you are trying to do though, if you are trying to learn multi-dimensional arrays there's much better problem domains in which multidimensional arrays are useful for. Such as a 2D array for a graphical tile-game, or matrix manipulation for 3D programming. There's really no point in learning strange ways of implementing things because you're not really learning how to program. You learn to program by learning how to solve real problems in the best way possible. If you wanna learn how to use certain features of programming, you are better off finding a problem domain where the method you are using is appropriate, that way when you visit the same problem, you know exactly the best way of doing it. I'm using a 2D Array, not a 3D Array. o.O
And I'm sorry, I meant that each room has 3 routes to rooms other than the current room. So NEW or SEW for each room. The way I'm doing the 2D Array is that the 1st column is E 2nd column is W and 3rd column is N or S depending on the room the player is in. Then the player inputs whether he wants to go N/S E or W...
|
On November 22 2013 08:39 3FFA wrote:Show nested quote +On November 22 2013 08:21 sluggaslamoo wrote:On November 21 2013 08:09 3FFA wrote:(I just started learning about them so I feel like playing with it and making a small text adventure game, the array is an array of the rooms) As I said here, this is for a set of 20 rooms to be navigated in. It gets really complicated to navigate more than one or two players/creatures through a ton of numbers that are listed but don't really make much sense. The reason I have 3 columns is because there are 3 routes to other rooms for each room on the map. I'll make sure I take 21 out of a loop and make it have its own separate assignment statement, thank you for pointing that out. From a design standpoint a 3D array is not really the right way to go about it. It would be better to have a single array of rooms, and each room has 4 variables, north/south/east/west which link to other rooms. ("3 routes to other rooms" suggest that there are 4 rooms connected for each room, including the one you came from) Also look at your program in terms of roles and responsibilities and the kind of components you want in your program, don't think about the implementation first. For example. - It has a number of rooms = This tells me that a 1D Array of rooms is sufficient - A room can connect to multiple rooms = Each room either needs an array of more rooms or N/S/E/W, in your case 4, NSEW should be sufficient and less complicated. - Each room contains XYZ = A room needs to be a data-structure Depends what you are trying to do though, if you are trying to learn multi-dimensional arrays there's much better problem domains in which multidimensional arrays are useful for. Such as a 2D array for a graphical tile-game, or matrix manipulation for 3D programming. There's really no point in learning strange ways of implementing things because you're not really learning how to program. You learn to program by learning how to solve real problems in the best way possible. If you wanna learn how to use certain features of programming, you are better off finding a problem domain where the method you are using is appropriate, that way when you visit the same problem, you know exactly the best way of doing it. I'm using a 2D Array, not a 3D Array. o.O And I'm sorry, I meant that each room has 3 routes to rooms other than the current room. So NEW or SEW for each room. The way I'm doing the 2D Array is that the 1st column is E 2nd column is W and 3rd column is N or S depending on the room the player is in. Then the player inputs whether he wants to go N/S E or W... As sluggaslamoo said it is still better to use 1D array of rooms and represent the room-grid by having links to other rooms inside the room structure.
EDIT: Basically have 4 properties NSWE, and just put null (or something else signifying not-in-use) into the one that is not applicable for the specific room.
|
On November 22 2013 08:39 3FFA wrote:Show nested quote +On November 22 2013 08:21 sluggaslamoo wrote:On November 21 2013 08:09 3FFA wrote:(I just started learning about them so I feel like playing with it and making a small text adventure game, the array is an array of the rooms) As I said here, this is for a set of 20 rooms to be navigated in. It gets really complicated to navigate more than one or two players/creatures through a ton of numbers that are listed but don't really make much sense. The reason I have 3 columns is because there are 3 routes to other rooms for each room on the map. I'll make sure I take 21 out of a loop and make it have its own separate assignment statement, thank you for pointing that out. From a design standpoint a 3D array is not really the right way to go about it. It would be better to have a single array of rooms, and each room has 4 variables, north/south/east/west which link to other rooms. ("3 routes to other rooms" suggest that there are 4 rooms connected for each room, including the one you came from) Also look at your program in terms of roles and responsibilities and the kind of components you want in your program, don't think about the implementation first. For example. - It has a number of rooms = This tells me that a 1D Array of rooms is sufficient - A room can connect to multiple rooms = Each room either needs an array of more rooms or N/S/E/W, in your case 4, NSEW should be sufficient and less complicated. - Each room contains XYZ = A room needs to be a data-structure Depends what you are trying to do though, if you are trying to learn multi-dimensional arrays there's much better problem domains in which multidimensional arrays are useful for. Such as a 2D array for a graphical tile-game, or matrix manipulation for 3D programming. There's really no point in learning strange ways of implementing things because you're not really learning how to program. You learn to program by learning how to solve real problems in the best way possible. If you wanna learn how to use certain features of programming, you are better off finding a problem domain where the method you are using is appropriate, that way when you visit the same problem, you know exactly the best way of doing it. I'm using a 2D Array, not a 3D Array. o.O And I'm sorry, I meant that each room has 3 routes to rooms other than the current room. So NEW or SEW for each room. The way I'm doing the 2D Array is that the 1st column is E 2nd column is W and 3rd column is N or S depending on the room the player is in. Then the player inputs whether he wants to go N/S E or W...
Man I nearly finished writing my reply and then my computer crashed T_T, time to write it all again.
Anyway I looked at your original post again and I think I get it now. There is an initial array of 21 rooms, and each element has another array of 3 elements, which contain the index of the rooms in the original array.
Anyway I've found that telling people that their method is wrong never gets us anywhere so lets do it your way, then we'll design the program in a way that gives it enough flexibility that you can change it later if you want to.
Because you are using C, we'll use a mixture of object pool and factory patterns which makes life easier when using C. Also just because we are using C doesn't mean we can't take anything from OOP.
So initially we will need a Room Manager which is responsible for managing all your rooms and handling room instantiation. Your Room Manager will need - object pool [base array] - number_of_rooms [variable] - initialize_rooms - clean_up function [for use at the end of the program] - create_room [factory function] - has_room_available [true/false] - retrieve_room
So first of all create those functions with no implementation, and your base array.
We don't need to use ADTs (classes for C), this can just be a separate file, or hell just separate it with comment lines for now.
####### Room Manager ###### function XYZ () etc etc ###########################
In your mind its important that you see these functions as belonging to a separate entity even if in reality they are global and don't belong to anything, it will make life easier in the long run.
Create your base array (object pool) globally (yes global variables are poisonous in a vacuum but lets not go down that path for now). Its not a real object pool (it contains arrays not objects) but we can treat it like one because it can be later.
In your initialize_rooms function this will create the pool. It should take a number_of_rooms argument which determines the size of the pool (base_array). Implement this first and test that it works (on its own), once it works move on.
In your clean_up function create an implementation that deallocates the array. This will eventually go at the end of your program.
In your has_room_available function, it will tell you if there are any empty rooms left in the pool. Basically you need to check if number_of_rooms doesn't exceed the number of rooms in the array, returning true or false. Test to make sure this works (on its own), then move on.
In your create_room function, it will take room1_number, room2_number, room3_number. Use your has_room_available() function to determine if you can create more rooms, if not, throw an error. It will then create an array in the next element in pool with 3 elements (using the arguments provided) using the number_of_rooms variable. When the array is created, the function returns the index of the room in the pool that was just created. Test to make sure this works (on its own), then move on.
In your retrieve_room function, you will just take a room_number argument. This will return the array from the pool, given the appropriate room index. This will also allow you to use a 1 based instead of 0 based numbering system, if you wanted to. Test to make sure this works, then move on.
Ok if you have unit tested your Room Manager (even just manually using traces), then you should be able to put the pieces the puzzle together without much problem knowing that each function on its own won't be causing errors allowing you to home in on any bugs much faster.
*************** Rooms done!
Now for the Player. We do the same thing, without using datastructures we create some variables for the player. Create another "component" for the Player like we did with the Room Manager.
Player - player_position variable = Room number he is in - move_to(room_number) = self explanatory - current_room() = actually retrieves the room he is in using the retrieve_room function
See if you can implement those, remember to test each function separately. This is also where you can output your text adventure logging. "You enter room XYZ which room do you want to go now?"
************** Player done!
The last component for our minimum viable product will be the controller. Much like a gamepad, the controller is the interface responsible for handling all the input.
wait_for_input() will pause the terminal to wait for input using your terminal read function and return the appropriate data for which other components will use.
*************
The last bit comes with actually implementing the program. These components should be able to give you the tools to easily create a working program and in a very clean manner too.
The program should look something like
initialize_rooms(21) starting_room = create_room(1,2,3) create_room(starting_room,3,4) move_to(starting_room)
while running wait_for_input()
clean_up()
*************
Now you may ask why you can't just throw everything in the main function and try and get it to work? Doing it this way gives you direction and prevents you from getting lost, even if you are writing more code, what takes time is not writing the code, its understanding the implementation.
If you can write 75 words per minute, chances are the time spent figuring out what to do is going to be the biggest bottleneck in your program implementation time. So next time instead of rushing into the implementation take a step back and have a think about what are the tools you need to make it work.
At first it will take a long time to do it this way, but eventually in the long run it will be much more efficient, I didn't stop to think one time during this whole post, I just wrote everything off the top of my head. There could be stuff missing, but it should be enough for you to fill in the gaps.
Because this implementation is flexible, if you ever decide to, you can have your Room Manager return data structures instead of arrays if you ever want a more complex program, without much effort.
|
To the guys doing Software Engineering, have you guys taken a masters degree? I currently can't afford masters if I don't have a gap year to earn some money. But then again, I'm not sure if I'm motivated that there is a good reason to do so. I guess if there's a programming related reward, then I might be more motivated.
|
On November 23 2013 05:36 darkness wrote:To the guys doing Software Engineering, have you guys taken a masters degree? I currently can't afford masters if I don't have a gap year to earn some money. But then again, I'm not sure if I'm motivated that there is a good reason to do so. I guess if there's a programming related reward, then I might be more motivated.  You can do it with a Bachelor's.
|
Hehe thanks for the effort slug but you apparently need to re-read this part again.
Hey guys. For a small project I'm doing in Java...
I used C + Obj.C last year, this year I'm using Java, although the process I'm using is about the same as the one you outlined, so no worries. I just haven't learned data structures yet, although I believe that next year we will learn about them and my teacher will have us change this lab accordingly.
|
On November 23 2013 06:23 CecilSunkure wrote:Show nested quote +On November 23 2013 05:36 darkness wrote:To the guys doing Software Engineering, have you guys taken a masters degree? I currently can't afford masters if I don't have a gap year to earn some money. But then again, I'm not sure if I'm motivated that there is a good reason to do so. I guess if there's a programming related reward, then I might be more motivated.  You can do it with a Bachelor's.
Are you doing Software Engineering for a living?
|
On November 23 2013 07:22 darkness wrote:Show nested quote +On November 23 2013 06:23 CecilSunkure wrote:On November 23 2013 05:36 darkness wrote:To the guys doing Software Engineering, have you guys taken a masters degree? I currently can't afford masters if I don't have a gap year to earn some money. But then again, I'm not sure if I'm motivated that there is a good reason to do so. I guess if there's a programming related reward, then I might be more motivated.  You can do it with a Bachelor's. Are you doing Software Engineering for a living? I'm in university for it and I've done a lot of research on it, and from what I hear Cecil's on the money - a master's degree isn't necessary at all to get employed pretty happily out of university.
|
On November 23 2013 05:36 darkness wrote:To the guys doing Software Engineering, have you guys taken a masters degree? I currently can't afford masters if I don't have a gap year to earn some money. But then again, I'm not sure if I'm motivated that there is a good reason to do so. I guess if there's a programming related reward, then I might be more motivated. 
Been working for 5 yrs.. - If you are wanting to do Software Engineering and not anything education related, I can't really think of any reason you would want to get a masters other than to just say you did so...just not worth it in our field, imo.
----
For integration testing, what are some of the ways you guys deal with the db? For my own tests, I would prefer to use an in memory db instead of a test db, but, getting the data in seems to be a real pain. Any thoughts?
|
Also depends a lot on where your Bachelor's degree is from, and where you're looking at getting a master's degree.
|
I'm also curious as well. My school hasn't really taught or given us any big projects that involve working as a team or building software. Is this typical for most CS majors at mediocre CS schools? I've done some web programming on my own and an internship at a web programming shop, but I would like to step into doing something other than web dev at a larger company. Not big as microsoft or google, but just a large company where they invest quite a lot in training their employees. And I've also checked out some interview questions for google, and I feel like I can only do the basic ones.
I'm also literally graduating with 2 years under my belt since I switched majors and had absolutely no programming experience before. That's what led me to think that a decent grad school somewhere else would be worth my investment since in state tuitions are pretty negligible considering I'm in this field. Any thoughts?
|
On November 23 2013 13:11 billy5000 wrote: I'm also curious as well. My school hasn't really taught or given us any big projects that involve working as a team or building software. Is this typical for most CS majors at mediocre CS schools? I've done some web programming on my own and an internship at a web programming shop, but I would like to step into doing something other than web dev at a larger company. Not big as microsoft or google, but just a large company where they invest quite a lot in training their employees. And I've also checked out some interview questions for google, and I feel like I can only do the basic ones.
I'm also literally graduating with 2 years under my belt since I switched majors and had absolutely no programming experience before. That's what led me to think that a decent grad school somewhere else would be worth my investment since in state tuitions are pretty negligible considering I'm in this field. Any thoughts? Your curriculum should have something called Software Engineering, or something similar. The class should include a big project where you work with others. May or may not do any actual coding in it, it could be just drawing up design documents and such.
|
^ yes, agreed.
On November 23 2013 13:11 billy5000 wrote: I'm also curious as well. My school hasn't really taught or given us any big projects that involve working as a team or building software. Is this typical for most CS majors at mediocre CS schools? I've done some web programming on my own and an internship at a web programming shop, but I would like to step into doing something other than web dev at a larger company. Not big as microsoft or google, but just a large company where they invest quite a lot in training their employees. And I've also checked out some interview questions for google, and I feel like I can only do the basic ones.
I'm also literally graduating with 2 years under my belt since I switched majors and had absolutely no programming experience before. That's what led me to think that a decent grad school somewhere else would be worth my investment since in state tuitions are pretty negligible considering I'm in this field. Any thoughts? Not a bad idea, if only because it allows you another summer to get a proper internship at a bigger place. When are you graduating? The applications for places like microsoft, google, etc may have already passed for summer 2014*. You should definitely try to get an internship at a bigger place - the requirements are much lower, but if you do good work while you're there it's much easier to convert to full time.
If you feel your undergrad experience was lacking, and you're not spending ungodly amounts of money, it may be worth it.
Also bear in mind that most of the interview questions you'll find at a place like microsoft, google, etc don't have much to do with software engineering. It's mostly variations on basic algorithms & data structures questions, lots of whiteboard coding, with maybe a little bit of design (though less so as a new grad).
* I dunno what the actual deadlines are, maybe you can apply late too, worth a shot. At least look into it.
External information on hard deadlines appears to be... lacking: http://careers.microsoft.com/careers/en/us/tech-software-internships.aspx#tab_sde https://www.google.com/about/jobs/search/#!t=jo&jid=3480001&
|
On November 23 2013 05:36 darkness wrote:To the guys doing Software Engineering, have you guys taken a masters degree? I currently can't afford masters if I don't have a gap year to earn some money. But then again, I'm not sure if I'm motivated that there is a good reason to do so. I guess if there's a programming related reward, then I might be more motivated. 
As people echoed, the vast majority of industry jobs are available to people with a bachelor's degree in computer science. The difference is really in starting pay in position. And among the top companies, the difference is not as pronounced as you would hope.
In the context of an American university, there are typically two ways to achieve a masters. Many programs offer a submatriculation into a masters which amounts to an extra semesters worth of work. This sort of masters is typically worth pursuing. On the other hand, the traditional two year masters is typically not worth it from a financial as long as you are coming from a reasonable undergraduate institution.
|
On November 23 2013 14:56 phar wrote:Show nested quote +On November 23 2013 13:11 billy5000 wrote: I'm also curious as well. My school hasn't really taught or given us any big projects that involve working as a team or building software. Is this typical for most CS majors at mediocre CS schools? I've done some web programming on my own and an internship at a web programming shop, but I would like to step into doing something other than web dev at a larger company. Not big as microsoft or google, but just a large company where they invest quite a lot in training their employees. And I've also checked out some interview questions for google, and I feel like I can only do the basic ones.
I'm also literally graduating with 2 years under my belt since I switched majors and had absolutely no programming experience before. That's what led me to think that a decent grad school somewhere else would be worth my investment since in state tuitions are pretty negligible considering I'm in this field. Any thoughts? Not a bad idea, if only because it allows you another summer to get a proper internship at a bigger place. When are you graduating? The applications for places like microsoft, google, etc may have already passed for summer 2014*. You should definitely try to get an internship at a bigger place - the requirements are much lower, but if you do good work while you're there it's much easier to convert to full time.
I also mean... interivew for internship is gonna be way earlier than application for master's or interview for fulltime after spring graduation. So might as well shoot for a big internship position. No harm.
|
On November 23 2013 14:56 phar wrote:^ yes, agreed. Show nested quote +On November 23 2013 13:11 billy5000 wrote: I'm also curious as well. My school hasn't really taught or given us any big projects that involve working as a team or building software. Is this typical for most CS majors at mediocre CS schools? I've done some web programming on my own and an internship at a web programming shop, but I would like to step into doing something other than web dev at a larger company. Not big as microsoft or google, but just a large company where they invest quite a lot in training their employees. And I've also checked out some interview questions for google, and I feel like I can only do the basic ones.
I'm also literally graduating with 2 years under my belt since I switched majors and had absolutely no programming experience before. That's what led me to think that a decent grad school somewhere else would be worth my investment since in state tuitions are pretty negligible considering I'm in this field. Any thoughts? Not a bad idea, if only because it allows you another summer to get a proper internship at a bigger place. When are you graduating? The applications for places like microsoft, google, etc may have already passed for summer 2014*. You should definitely try to get an internship at a bigger place - the requirements are much lower, but if you do good work while you're there it's much easier to convert to full time. If you feel your undergrad experience was lacking, and you're not spending ungodly amounts of money, it may be worth it. Also bear in mind that most of the interview questions you'll find at a place like microsoft, google, etc don't have much to do with software engineering. It's mostly variations on basic algorithms & data structures questions, lots of whiteboard coding, with maybe a little bit of design (though less so as a new grad). * I dunno what the actual deadlines are, maybe you can apply late too, worth a shot. At least look into it. External information on hard deadlines appears to be... lacking: http://careers.microsoft.com/careers/en/us/tech-software-internships.aspx#tab_sdehttps://www.google.com/about/jobs/search/#!t=jo&jid=3480001&
This is something I've always been intrigued by. When most go into compsci I think it's usual to want to work for one of the big guys. However, how many people in this thread actually do so?
The more I get into my career, the more happy I am to work for a small company. I get to directly impact the direction of the development, introduce new techs and ideas, and not have to go through layers of red tape to do so. Most of all, I'm considered an important part of the company...that seems like it would be way harder to achieve at a massive company.
|
|
|
|
|
|