Stop getting banned cppking
:V
That's one way to hide your tag :O.
Stop getting banned cppking
:V
IntelliJ is much much much better than Eclipse, especially for code completion and AndroidSDK development. I love it, but unfortunately it's not free.
As far as JS development goes, most of the full time web developers that I work with just use SublimeText with a bunch of add ons.
What happened? :/Stop getting banned cppking
:V
Remember that O(f(x, y, z)) means that there is a real alpha so that any execution time (or space required) is less than alpha times f(x, y, z)Having some trouble conceptualizing the run time.
Let's say I run Dijkstra's algorithm on every single vertex in graph. Or V times.
A single run of the algorithm is O(E + V lg V). What is the run time of an algorithm that calls an "O(E + V lg V)" V number of times? times?
Is it iseful for something else than Java? Is it hard to setup?IntelliJ is much much much better than Eclipse, especially for code completion and AndroidSDK development. I love it, but unfortunately it's not free.
As far as JS development goes, most of the full time web developers that I work with just use SublimeText with a bunch of add ons.
What happened? :/
Remember that O(f(x, y, z)) means that there is a real alpha so that any execution time (or space required) is less than alpha times f(x, y, z)
If you just run something K times, the total time is obviously less than K times alpha times f(x, y, z) so it's O(K f(x, y, z)) It's ALWAYS true.
But in some situations, you can find a lower majoration
Mostly in two specific situations:
- there's some memoization involved, so later computations go quicker
- the O(...) for a single run is for a rare case, and by doing it on a large number of cases or all of them, it doesn't apply
For the latter, think that if a single run of a basic implementation of quick sort is O(n^2), running it over all n! permutations of a list would be O(n! n log) and not O(n! n^2)
No problem here, unless you have a really special ijmplementation of dijkstra...
Is it iseful for something else than Java? Is it hard to setup?
(doesn't seem too bad to launch on Linux, at least)
Putting everything into version control is good enough for me. Won't lose your progress and you can get a higher view of what you've done.Hey figured I'd post my question in here, does anyone have software they recommend for keeping on track with projects? I work for a very small engineering company, its my first job out of college and I'm the only developer (I'm an computer engineer so I don't have professional developer experience). I mostly do work in a language called LabVIEW but I'm trying to branch our stuff into C, however the main problem I have is keeping track of all the different projects I'm working on, theyre mostly small one off programs for a specific use and I get so many of them I end up pushing other projects to the side.
Anything free would be preffered, thanks.
There's a free version that's still pretty good, though it misses the code completion for Javascript. The Ultimate Edition is really worth it if you write code for a living though.
If you have to switch to other pc's often I'd think about using a cloud storage service. You can change the config/plugin directory to some directory that's automatically shared by onedrive/dropbox. Or maybe a fast external drive?
IntelliJ is much much much better than Eclipse, especially for code completion and AndroidSDK development. I love it, but unfortunately it's not free.
As far as JS development goes, most of the full time web developers that I work with just use SublimeText with a bunch of add ons.
Putting everything into version control is good enough for me. Won't lose your progress and you can get a higher view of what you've done.
https://gitlab.com/
Probably not that complex? The app will basically need to do this:
Let the user select what measurements to graph, overlay them, adjust time range, etc, needs to be real time
Will have some preset data visualizations
Let user download backups of data, filtered
Probably some basic control of the sensor input and needs to be able to send data from user back into that system
If it's a simple application then Ember is overkill, it markets itself as "A framework for creating ambitious web applications." and I would heed that as a warning from personal experience.
Angular 2 / React are probably your best bet as far as frameworks go, maybe Vue if you're willing to dive into something with less mind share (but excellent documentation).
If your app is simple enough then you might not even need a framework to be honest.
If Ember is too ambitious to be used for a project, then definitely do not use either React or Angular 1/2, imho. Those are in the same category.
Vue is for enhancing sites with app-like capabilities without having to buy into dogmas and predefined project structures/development styles. Or plain ES6.
I can agree your assessment regarding Angular but not React.
React is a relatively simple library where Angular 2 / Ember are more opinionated batteries included frameworks. React and Vue are much smaller in size and allow you to 'build your own' framework to some degree when it comes to routing, http, state management (vuex, redux), etc.
Appreciate the discussion but I'm still confused AF haha
I'm thinking I'll spend a day each learning Angular, Ember and React each and use whatever clicks the best
How good are you at javascript?
(I am asking because personally, I would spend that time outlining what needs to be rendered clientside and if feasible, simply implement the needed queries as XMLHttpRequest calls, and use DOM manipulations for the rest.)
I am two days into learning JS so not good at all. Read the first two books in YDKJS and did some general messing around with the language.
I'm not fussed though this project is on a super lax timeline, got a few months.
Question for self-taught programmers/ I know this thread gives a bunch of resources in the OP, but there really isn't a methodology of how you can accomplish proficiency.
I know it's not as simple as reading a book because I heard many times that programmers only use them for reference on how to do things. What road map did you people use and how did you actually gain proficiency? I've been learning C++ for about a year now and I'm still in console based applications. I think I should be further.
If you don't know where to start read a book just to get a sense of things. Past that, do projects. What do you want to do? What do you want to learn? Do it and you will learn. Start googling. I can guarantee you everyone in this thread learned the vast majority of what they know on the job or by working on projects.
I have a project on client and server. I want to know how could I manipulate the server to send the message to another client instead of sending back the message to client? For example, if Bill sends a message to the server, the server should not send back the message to Bill but send it to Ana. And how would I initiate a chat with another user? If you guys want to check out the code, I'll pm you since I don't want to post it in the public.
I have a project on client and server. I want to know how could I manipulate the server to send the message to another client instead of sending back the message to client? For example, if Bill sends a message to the server, the server should not send back the message to Bill but send it to Ana. And how would I initiate a chat with another user? If you guys want to check out the code, I'll pm you since I don't want to post it in the public.
{
id;
timeStamp;
user;
message;
}
products hash = {
110 => ["Baked Chicken", 9.99]
}
puts "Enter the product ID you would like to delete: "
product_id = gets.chomp
puts "Are you sure? (Y/N)"
decision = gets.chomp.upcase
if decision == "Y"
products_hash.delete(product_id)
puts "#{product_id} has been removed."
Ok... I'm at a loss. I'm sure if I beat my head for an hour or two I'll figure it out. But for deleting a hash key and values from a hash.
my hash has values like
Code:products hash = { 110 => ["Baked Chicken", 9.99] }
I am trying to create the code for updating, deleting etc. I want to ask the user if they want to delete the value and then confirm. What am I doing wrong?
Code:puts "Enter the product ID you would like to delete: " product_id = gets.chomp puts "Are you sure? (Y/N)" decision = gets.chomp.upcase if decision == "Y" products_hash.delete(product_id) puts "#{product_id} has been removed."
Also allowing the user to replace either value in the array piece for whichever key they choose...
I don't do a whole lot of Ruby, but I think your problem looks like a type mismatch. You seem to be using integers for the hash key, but the value of "product_id" is probably going to end up being a string. You probably need to convert that into an integer somehow.
print_hash(products_hash)
puts "Enter the product ID you would like to delete: "
product_id = gets.chomp.to_i
products_hash.each do|key, value|
if product_id == key
products_hash.delete(product_id)
puts "#{product_id} has been removed."
end
end
puts "Enter the product item ID you would like to update: "
product_id = gets.chomp.to_i
products_hash.each do|key, value|
if product_id == key
puts "What is the new description?: "
product_description = gets.chomp.upcase
puts "What is the new price?: "
product_price = gets.to_f
products_hash[product_id] = [product_description, product_price]
end
end
hash = {
111 => [CPU, 199.99]
}
def order_hash(arr)
arr.sort_by {|k, v| v[1]}
end
Last question, probably won't be answered but worth a try while I try to figure it out.
I'm creating a method to sort arrays
hash looks like
Code:hash = { 111 => [CPU, 199.99] }
Code:def order_hash(arr) arr.sort_by {|k, v| v[1]} end
It isn't doing anything, I'm sorting, by key, value, then by the second value (1) of the array no?
It isn't doing anything, I'm sorting, by key, value, then by the second value (1) of the array no?
You indeed would... if you could sort hash objects!Don't know much about Ruby but this looks like you are sorting by the second index of your values (119) only.
res = arr.sort_by {|k, v| v[1]}
arr = {
3 => ["Three", 3.333],
1 => ["One", 111.1],
2 => ["Two", 22.22]
}
print "arr: ", arr, "\n"
print "\nExecute arr.sort_by {|k, v| v[1]}\n"
arr.sort_by {|k, v| v[1]}
print "arr: ", arr, "\n"
print "\nExecute res = arr.sort_by {|k, v| v[1]}\n"
res = arr.sort_by {|k, v| v[1]}
print "res: ", res, "\n"
print "arr: ", arr, "\n"
arr: {3=>["Three", 3.333], 1=>["One", 111.1], 2=>["Two", 22.22]}
Execute arr.sort_by {|k, v| v[1]}
arr: {3=>["Three", 3.333], 1=>["One", 111.1], 2=>["Two", 22.22]}
Execute res = arr.sort_by {|k, v| v[1]}
res: [[3, ["Three", 3.333]], [2, ["Two", 22.22]], [1, ["One", 111.1]]]
arr: {3=>["Three", 3.333], 1=>["One", 111.1], 2=>["Two", 22.22]}
How available are bottom-of-the-barrel, entry-level jobs for CS majors?
after taking two years off after high school, I am now in my second college semester moving towards a computer science degree and loving it but I would like to think a little bit ahead. If I wanted to get my associates and get a super low level job in my field (preferably paid but I supposed I could juggle an unpaid position on top of my 9-5) while working towards higher degrees, are there a lot of options?
I would LOVE to get out of retail ASAP, but judging by my current comp sci class I am not going to know much after my first couple years, or at least not enough to get a low level job that pays as well as my current job.
Should I read between the lines that web-related jobs offers dwarf any other CS jobs offers, at least at entry level?You'll likely want to devote a lot of your spare time (if you even have any with a job + school) picking up current frameworks, and maybe looking to get some type of certification from the likes of say Microsoft.
Learn React or Angular, Larn .net or Ruby and you'll have a decent chance at a an entry level position that is probably going to be a lot better than working retail.
Should I read between the lines that web-related jobs offers dwarf any other CS jobs offers, at least at entry level?
I don't doubt there's a lot of web developers needed, but there should be other opportunities, no? (That's the last thing I'd like to do, personally...)
You'll likely want to devote a lot of your spare time (if you even have any with a job + school) picking up current frameworks, and maybe looking to get some type of certification from the likes of say Microsoft.
Learn React or Angular, Larn .net or Ruby and you'll have a decent chance at a an entry level position that is probably going to be a lot better than working retail.
I have a Google software engineering interview in April. Anyone interview with a Google/Amazon/Facebook/Apple/Microsoft before, what was it like?
I have a Google software engineering interview in April. Anyone interview with a Google/Amazon/Facebook/Apple/Microsoft before, what was it like?
I have a Google software engineering interview in April. Anyone interview with a Google/Amazon/Facebook/Apple/Microsoft before, what was it like?
Did you end up getting an offer if you don't mind me asking?For onsite, you basically show up to the lobby and wait for your initial interviewer. They stick you in a conference room and you're basically given 1 to 2 typical interview questions per session (1 interviewer per hour for 5 sessions plus lunch).Typically these are algorithm related and if you have a lot of experience at least one will be on architecture and design. You'll probably get at least one question dealing with combinatorics too (mine was pretty well disguised in simple math so it wasn't big deal). The first 5 minutes of each session are the interviewer introducing themselves and the project they work on and you'll usually have about 5 minutes at the end to ask questions. I got no soft questions but that might depend on the exact position and experience level. For each you have the option of using a text editor on a chromebook or a whiteboard (or both). For lunch you are assigned to another Googler they'll take you to the cafeteria and you'll eat, talk about Google and they'll probably tour you around the campus.
Overall it is extremely exhausting but goes by quick. Make sure to grab a water because you'll be talking a lot.
Thanks for the responses.
Did you end up getting an offer if you don't mind me asking?
I have a Google software engineering interview in April. Anyone interview with a Google/Amazon/Facebook/Apple/Microsoft before, what was it like?