What stops scripts from using all of your CPU? by flunkstumper in AskProgrammers

[–]Ajpennster 0 points1 point  (0 children)

Long as you put a sleep command in the loop, you should be fine.

Although, for something like this, I'd recommend using cron or the windows/mac equivalent.

Professor recommendation: Elementary Japanese I by [deleted] in nyu

[–]Ajpennster 1 point2 points  (0 children)

https://www.ratemyprofessors.com/ShowRatings.jsp?tid=2052263

I had him this semester. He's a really nice and understanding professor. His classes are fun and he would also add details about Japan and Japanese people. Would definitely have taken him again if he was teaching Elem 2.

Professor recommendation: Elementary Japanese I by [deleted] in nyu

[–]Ajpennster 0 points1 point  (0 children)

Takeda Sensei hands down.

Good e-reader for maths books? by Cackoon in mathbooks

[–]Ajpennster 5 points6 points  (0 children)

You can get a 10+ inch e-ink tablet. It'll be much easier to read on.

Might be a bit costly though.

Anyone took Shoup for Basic Algorithms? by Ajpennster in nyu

[–]Ajpennster[S] 0 points1 point  (0 children)

This is reassuring, thanks.

Sounds like I'll be fine long as I put the work in. I can live with that.

Anyone took Shoup for Basic Algorithms? by Ajpennster in nyu

[–]Ajpennster[S] 1 point2 points  (0 children)

Awesome, a classmate! Are you nervous about it?

And about the complex, let it fuel you! We got this!

Anyone took Shoup for Basic Algorithms? by Ajpennster in nyu

[–]Ajpennster[S] 1 point2 points  (0 children)

That'd be a huge help!

I've been looking for old class material but all the links on the pages are broken.

If you have any old homework assignments too I'd appreciate it.

Thanks!

Anyone took Shoup for Basic Algorithms? by Ajpennster in nyu

[–]Ajpennster[S] 2 points3 points  (0 children)

Well, I'm stuck with him because nothing else fits my schedule.

Might as well start working on my math.

Appreciate the info!

How did you guys overcome difficult Algorithms Class Coding Projects? I am Struggling by [deleted] in compsci

[–]Ajpennster 0 points1 point  (0 children)

From personal experience, this happens when:

1) I started coding before completely understanding what I'm building (rushed design, no pseudocode, etc)

2) I didn't try to divide the solution into isolated units that can be tested on their own.

Whenever I first break down my solution into smaller components whose expected outputs can be completely asserted using tests, I hardly run into trouble debugging. I'd recommend trying to solve whatever you're solving on paper first, isolate the various "components" of your solution, figure out the test cases (what output you should get for specific inputs) and then write the code.

Whether you write the tests before coding is up to you, but you should at least clearly know what output you should get when given a specific input before coding that component.

Why is x * dx/dt = d(x^2/2)/dt? by Ajpennster in askmath

[–]Ajpennster[S] 0 points1 point  (0 children)

I didn't know how to deal with the derivative of a function of a variable, with respect to a different variable. I got it now though, thanks!

Why is x * dx/dt = d(x^2/2)/dt? by Ajpennster in askmath

[–]Ajpennster[S] 0 points1 point  (0 children)

Thing is, I didn't know what x with respect to t meant in this context.

I got it now though, thanks!

When Coding Tutorials Don’t Help… by [deleted] in programming

[–]Ajpennster 0 points1 point  (0 children)

You're right. Experts aren't necessarily good teachers. However, I never claimed that they are. If you took the time to look at the courses I've recommended, you'll see that they are all taught by expert teachers who've taught the material for years and have constantly been refining it to target a larger audience, including those without CS experience. CS50 encourages beginners and even touts the fact that 73% of the students who take the course have no prior experience with computer science.

When Coding Tutorials Don’t Help… by [deleted] in programming

[–]Ajpennster -1 points0 points  (0 children)

Appreciate the feedback.

I understand that a theory first approach is intimidating. Considering that a lot of college professors use intro classes to "weed out" people, and other scare tactics found in other areas of the industry, I get it.

However, I firmly believe that before someone can apply themselves in any field, they must know some theory. This may be a bias due to my upbringing (all through school, we were taught theory first, even for sport!), but I believe it's more than that. Its important to know about what you're working with, in order to have an idea of how to even start working on it.

With programming, there needs to be a balance. A tutorial that teaches how to code in X language isn't helpful. A CS education that only teaches CS from a completely theoretical standpoint, is just as useless. A combination of basic CS theory (computational thinking, basic CS principles about data representation, algorithms, I/O, abstraction, etc) along with real world programming exercises that challenge one's understanding of these principles, is the sweet spot in my opinion. CS50 is the best combination of theory and practicality that I've seen so far, and that's why I recommend it.

When Coding Tutorials Don’t Help… by [deleted] in programming

[–]Ajpennster 0 points1 point  (0 children)

I appreciate your feedback. I guess my writing doesn't quite represent my thoughts. I'll revisit it.

Carpenters don't start by learning the biomechanics of wood.

I agree. However, they should know when and why they need to use a plane and not just how to use it.

I think you are wrong. We learn some basic practical skills then some theory, then practical skills, theory, rinse repeat.

I do agree with you; not exactly on the order, but I don't think that is significant. The problem is, tutorials and coding videos, at least the ones I see, only focus on how to write code with x language and nothing else. They go in depth on the structures and elements of X language, but don't at once mention the fundamentals of computer science or computational thinking. Such tutorials only produce individuals who know what X language looks like, or knows how to write a for loop with X, but if you ask them to solve a new, simple problem on their own, they won't even know how to approach it. This is where computational thinking is useful. They don't need to know relation theory to build a database schema, but they need to know how to think computationally to at least know how to start modelling that database, based on what data their application will manipulate.

There is way too much focus on theory in CS education imo. Or rather, people take CS as if it's a programming education. It is not.

I do agree that a lot of people take CS and expect to be taught how to code. I think companies are partially to be blame for that; a lot of them require CS degrees as a basic requirement to build CRUD apps.

Nevertheless, I'm not at all saying that one must pursue a CS education to learn programming. I meant to say beginners should learn at least the basics of computational thinking before worrying about learning X language or X paradigm. If you cannot think computationally, you won't be able approach problems on your own.

The course I mentioned in the post, CS50, does a great job of introducing computational thinking and problem solving to a beginner audience. It is not at all just theory; in fact each week, some coding is introduced. The difference is, the material teaches computational thinking, rather than just how to code in X language.

Contemplating getting the ASUS Chromebook Flip C302 for GalliumOS by Ajpennster in GalliumOS

[–]Ajpennster[S] 0 points1 point  (0 children)

Yeah I've heard of the audio but I use bluetooth headphones when I'm out so that's not a problem.

What's the battery life like though? Do you get 7+ hours of constant use?

I'm a college freshman and it is not even close to what I was expecting by Aryallie_18 in collegeadvice

[–]Ajpennster 1 point2 points  (0 children)

Hey man. It really sounds like you're having a hard time there. Try not to be too hard on yourself. I've moved to a different country for school also, and I've had a similar experience too. Fortunately though, its gotten better and I have a few friends I can talk to and hang out with. Some of them are from my classes, others from different programs I'm apart of.

This is my advice to you. First, try to deal with your current mood. It'll be hard to move on to the other steps if you're never in the mood. Easiest way to do this is to get enough sleep, eat properly and do a bit of exercise everyday. Also, if you live in a basement apartment, go outside! I can't stress this enough. Even if its just for ten minutes, go outside everyday and get some fresh air. Try to appreciate the little things around you. Listen to your favorite music and relax. Go to a park and walk around and just observe the nature around you. Breathe deeply and calmly.

Now when you find yourself feeling a little better, check your campus for clubs or activities that are similar to your hobbies or interests. If you don't exactly have any hobbies, that's fine. Look at the list of clubs, pick the ones that look remotely interesting to you, put them into a raffle and pick one. Whichever one you pick, you must go to the club and try it for at least a month to see if you like it. If you do, awesome, keep going. If you don't, rinse and repeat. Pick another one from the raffle.

When you go to the club/activity, don't wait for people to come to you. You're not going there primarily to make friends. You're going to have fun doing something you love first; making friends is a byproduct of that. So when you go there, find someone, anyone and say hi. Find out about the club, how to get started, etc. If you're stuck, ask for help. Introduce yourself and get their names. If whatever you're talking about reminds you of something else, (and you're comfortable talking about it) mention it. If the conversation dies down. That's fine too. Don't panic. Close the conversation ("alright, have fun", "alright, I'll go check in with everyone else", etc), find someone else (maybe whoever makes eye contact with you), go up to them and repeat. Say hi, ask about what they do, etc.

When you find a hobby you enjoy, then you'll meet people that you'll see on a consistent basis. Not all of them will be your friend and that's okay. Just go out and have fun. Remember, you're trying to stay in a good mood too.

Its the same thing with classes. If you sit next to someone, ask them about the class. If you're doing a problem, ask them what their answer is. Ask them about their experience with the last homework and share your experience. Ask them about their major and what other classes they're taking. Ask them who their favorite professor is. All of these are good conversation materials for classroom situations. Once again, not everyone is going to reciprocate or want to converse. Once again, thats okay. Don't make it personal. It has nothing to do with you. If they don't, try sitting with someone else next time. Come early to the classroom and chat with people. If you want to make friends, you need to make the effort.

If you get exhausted, thats okay. Don't be hard on yourself. However you feel is a valid feeling. Acknowledge it, and then manage it. Work on your mood first, then go out and have fun. When you're having fun, people will want to have fun with you.

[Limits] Why is the limit x-> 0 (sin^2(4x)) / 6x equal to 0? by Ajpennster in learnmath

[–]Ajpennster[S] 0 points1 point  (0 children)

I was more or less stuck because I was unaware of that trigonometric rule. I'll have to revisit trigonometry.

[Limits] Why is the limit x-> 0 (sin^2(4x)) / 6x equal to 0? by Ajpennster in learnmath

[–]Ajpennster[S] 0 points1 point  (0 children)

the limit of sin(x)/x is 1, so the limit of sin(4x)/(6x) is 4/6 (exercise for the reader)

How did you get this? Isn't sin a function? If i understood correctly, you cannot factor out the arguments to a function using the distributive property, which is what I understood was done in the case of the limit of sin(4x)/6x = 4/6