Began coding this year and made my first real project: a Chrome extension/Firefox Add-on learn programming |
- Began coding this year and made my first real project: a Chrome extension/Firefox Add-on
- Udacity just quietly discontinued all 3 of its job-guarantee Nanodegree Plus programs
- Blockchain or AI Programming?
- Advice on where to go with Python:
- Algorithm. Input: pointers to k unsorted arrays of different lengths. Needed output: k sorted arrays
- I'm having trouble translating from this JQuery code to Javascript [homework]
- Getting started programming
- Learning a new stack or sticking to something you're comfortable with while building a project?
- Where to ask simple programming question?
- How did you learn to actually make useful code (for life, work, fun, etc.)?
- Rolling a cube on the xz-plane | Pygame, Opengl
- Yale Professor's Notes on C, C++, Data Structures & Algorithms, and Discrete Math
- How to create a class which restricts methods based on the input file? Creating a database API
- Can't find Doom 3 BFG source
- Trying to understand Compiling, and which language to use.
- Can I extract opcodes in hex workshop?
- Always have trouble identifying the difference between association, aggregation, and composition in practice - since they are quite similar. Can you critique my definition?
- My mediocre job may be teaching me bad habits. Any advice?
- How do I know that I am progressing?
- [C] Entire contents of char* array being overwritten
- How To Best Prepare For An Online Screening/Reviewing A Language's Features?
- Help with SQL Injection Demonstration Web Page
- How to choose a technology and stop drifting?
Began coding this year and made my first real project: a Chrome extension/Firefox Add-on Posted: 07 Dec 2017 02:19 PM PST Hi all, been a long-time lurker of this subreddit and learned a great deal slash found some awesome resources. Thanks everybody on reddit! I wanted to share my first real project I made as a team. Description: a new-tab/homepage catered to front-end developers with multiple features to simplify tasks and save time I'm still new to programming so pls don't rip me apart, but if you have any suggestions/recommendations I would love to hear about them! If you like it, or find it helpful, please also leave a review! Thanks everybody! :D EDIT: For those of you too lazy to download it: Live Demo [link] [comments] |
Udacity just quietly discontinued all 3 of its job-guarantee Nanodegree Plus programs Posted: 07 Dec 2017 01:48 PM PST I don't quite know what to make of this, I just found it interesting. Is it a sign that the entry-level job market is getting tougher? [link] [comments] |
Posted: 07 Dec 2017 11:19 AM PST I am starting to teach myself programming and I am trying to decide on a goal so that I can choose a programming language to learn. Both block chain development and AI programming sound really cool and I want to aim towards learning one of them. Any opinions or information on either of them that might sway me in one way or another are greatly appreciated! [link] [comments] |
Advice on where to go with Python: Posted: 07 Dec 2017 11:41 AM PST So I've created a club for my high school this year and we've begun learning Python together. For a good amount of time, we have been using chromebooks(there's nothing else) and we are using the online "CS50 ide" in order to work around certain restrictions. We have been learning Python for a while now, but I want to be able to take it to another level, aside from somewhat easy projects. I was thinking of something like creating a website or delving into Graphics, but from what I know, the cs50 side doesn't support graphics for python and I can't link HTML files directly to Python like I could with PHP. Any advice? Should I learn a new language? I just want to find a way to use Python because that's what we've been learning, but I'm definitely willing to learn others if I have to. Thanks in advance! [link] [comments] |
Algorithm. Input: pointers to k unsorted arrays of different lengths. Needed output: k sorted arrays Posted: 07 Dec 2017 10:00 PM PST k=Θ(n) The arrays consist only natural numbers 1 to n The sum of the length of all arrays = Θ(n) It should return the k original arrays, each sorted on its own. The running time should be at worst Θ(n). How is it even possible? There's something I must be missing because I have no idea how to approach this. The data I gave you is all the given data. Any ideas? Using counting sort on each array won't work, for it will be Θ(n2), but maybe a different approach using this method? [link] [comments] |
I'm having trouble translating from this JQuery code to Javascript [homework] Posted: 07 Dec 2017 11:41 PM PST So I'm having trouble translating this JQuery code into Javascript, I'm pretty decent at reading Javascript for the most part, and know how this code works, however I followed this guide on YouTube to creating a shopping cart. and it had a little bit of JQuery that I would like to translate into JS, and add more to it. [link] [comments] |
Posted: 07 Dec 2017 09:16 PM PST Discussion on starting programming. https://www.youtube.com/watch?v=XlVsTH9PzFg [link] [comments] |
Learning a new stack or sticking to something you're comfortable with while building a project? Posted: 07 Dec 2017 10:38 AM PST I'm starting a small web based project to add to my portfolio/resume. I've built a small application using the MERN stack (MongoDB, Express, React, Node) before and enjoyed using it quite a bit, but I'm wondering if there's any benefit in learning a new stack to appeal to recruiters/companies. More specifically, I'm wondering if learning/using Java+Spring boot for the back end in my next project is a worthy time investment over simply continuing using Node+Express. The project will be done much faster if I stick with Node, but Java, at least on an enterprise level, is very common among job application 'requirements', so I figure it wouldn't be a complete waste of my time to learn and build something with it. tldr: Learning a new stack, or getting better with one you're already familiar with? Bonus question: Heroku or AWS for hosting small startup projects? Thanks! [link] [comments] |
Where to ask simple programming question? Posted: 07 Dec 2017 07:35 AM PST Is there any forum where you can ask super simple programming questions (java based) and get fairly quick answers without the condescending "I can't believe you don't know this thing which is obvious to everyone who knows programing, why haven't you searched through all the documentation and learned programming already before you dare ask this question!" In other words, I want somewhere to to ask questions like DwPhysics.Param param_physics = new DwPhysics.Param(); What is happening here? What does the period mean? Is it a class? What exactly is a class? is Param_physics a variable? Why do you need to write new? Why is DwPhysics.Param() written like a function but named the same as the class? DwPhysics<DwParticle2D> physics; What does <something> mean? I've never seen that before. Why isn't there anything like = or other operand? What is happening when you write something after something else with <something>? I know this are probably fundamental questions that you're supposed to learn.. by learning programming.. before asking.. but I haven't had the opportunity to take any programming classes and the ones that I'm finding either take forever to get to these type of questions and explain them in a way that's difficult for me to understand or they just spend forever drawing circles on the screen. I just want to ask some fundamental questions and get direct answers so that I can fiddle around and learn how to build stuff myself. I guess what I'm saying is that for people who learn better by asking questions, particularly older people, is there somewhere where total beginners can go to ask questions without being judged? In my opinion when you're just starting is when you need to ask the most questions but people always assume you should already know all the fundamentals before asking questions. [link] [comments] |
How did you learn to actually make useful code (for life, work, fun, etc.)? Posted: 08 Dec 2017 12:30 AM PST I'm taking an APCS class in high school and I'm doing fairly well and I get everything we learn but I can't help but feel like I'm not doing anything practical. I know basic sorting algorithms and the basics of OOP. The most "practical" thing I've done is make a small game but that had nothing to do with the class. When do you get to the point where you see apps or products and think to yourself "that's a cool idea" rather than "how the hell did they do that?" I've heard that I should do side projects and stuff but I feel like I wouldn't even know where to start. Also, I never get any of the slang or phrases on programming subreddits like Git or readability or libraries, etc. [link] [comments] |
Rolling a cube on the xz-plane | Pygame, Opengl Posted: 08 Dec 2017 12:24 AM PST I managed to get my cube rolling along the x and z planes. I coded the appropriate transformations depending on whether the cube's rotation is 0, 90, 180 or 270. The function looks like this: def x_dir_roll(direction, angle_rotated_z, angle): eg. pressing left arrow key would call x_dir_roll(1, angle_rotated_z, 1) 90 times so that we get a smooth rolling effect, direction (1 / -1) depending on whether the key pressed was right or left. each time the function is called, angle_rotated is augmented by one, or by -1 depending on the direction we're going. angle_rotated is periodic so I made my program check for angle_rotated_z = angle_rotated_z % 360 thanks to this I can use the same function rolling left and right The same works for rolling along the z-axis. I was wondering how I might go about combining these two. ie. what kind of a log structure do I need to keep track of the rotation of the cube so that I can use the appropriate transformations? Also, I don't know if I'm on the right track with this at all. I started playing around with OpenGL only a couple of days ago. All help is appreciated! [link] [comments] |
Yale Professor's Notes on C, C++, Data Structures & Algorithms, and Discrete Math Posted: 08 Dec 2017 12:11 AM PST Hello, I came across the webpage of Professor James Aspnes, Director of Undergraduate Studies in the CS department at Yale, a couple of weeks ago and have been blown away by how extensive and well written some of the resources are on it. He has a thorough introduction to discrete math and a great overview of C and C++ with data structures & algorithms. I have found his writing style to be quite engaging, and I really like how he provides bookmarks for the various sections in the texts so one doesn't have to scroll forever or rely on control/command+f. I have noticed professors from various institutions will post notes online on various topics. These can be great resources that for whatever reason are posted for free use. [link] [comments] |
How to create a class which restricts methods based on the input file? Creating a database API Posted: 08 Dec 2017 12:03 AM PST This question is more about how one uses OOP to read in databases. SQLite and sqlite3 are simply examples to work with, and are not the main thrust of the question. (Arguably Python is only used here to explain my point): I am creating a software package which allows users to query SQLite index files which have already been generated. It's basically syntactic to make it super user-friendly to query SQLite files indexed in a certain way, for a very particular case This should be quite straightforward, but I am somewhat confused how to "automatically" read in the SQLite Here's an example (with pseudo-code): Here's my problem: users would have access to only two types of indexed SQLite files. The "Type 1" files are only indexed on A and B---indices C and D do not exist in this SQLite files, and should throw an error if users try to call these functions. The "Type 2" files are only indexed on C and D---indices A and B do not exist in this SQLite files, and should throw an error if users try to call these functions. How do I "restrict" these methods such that if a user calls (for example) I would strongly prefer not to force users to use two separate classes, as that is far too complicated, e.g. What is the best way to do this? [link] [comments] |
Posted: 07 Dec 2017 05:23 PM PST NVIDEA released a Doom 3 BFG source port for the Android. I want the source code, it's covered by GPL, but I can't find it. Anyone know where it is? [link] [comments] |
Trying to understand Compiling, and which language to use. Posted: 07 Dec 2017 07:31 PM PST Hey Everyone. I have been doing python scripting for a while. I am currently looking to start picking up other languages, primarily Java, Go, or C++. (I know a bit of Java, but not functioning as real work). Anyways, I am struggling with one concept that seems like it should be easy to understand, but I cant grasp it. Compiling. I basically want to write some code that I can hand to friends for our gaming server needs, and I want to be able to handle them a file, and have it just work. So far, my understanding of Java is I can create .jar files, but people would still need to install JRE on their desktops/servers if they don't already have it. But I have been told you can also, apparently, compile java into my code and then it would be an exe? Same with Go, if I compile it, the user still needs go on their system? I thought the point of compiling was to not need to install things on the system. On the flip side. I write a lot of python code. I can do things 1000 times easier in python than I can in Java. So is it possible to compile my code WITH python so that when they execute X tool, my Python script (which lets say it parses my LUA tables for me) so that my C++ or Java app can then read the results from that python script? I have read various things on sites about compiling and its a bit confusing still, and I want to make sure I understand it better and pick the right language to start moving forward with, as I do plan to eventually learn all 3 at some level of proficiency. [link] [comments] |
Can I extract opcodes in hex workshop? Posted: 07 Dec 2017 10:50 PM PST hello, May I ask how can I extract opcodes (some says "shellcodes") from an ASM file? I'm using FASM. is there anyway I could extract something like this : "\x31\xc9\xb9\x57\x69\x6e\x45\xeb", I beleive it really is called shellcodes, anyway how do I extract that. note: it's for a malware that I'll be putting in my paper, but of course for research purposes :) [link] [comments] |
Posted: 07 Dec 2017 10:48 PM PST Hi all, I came up with the following definitions for association, aggregation and composition after doing some research. I find that most sources are quite vague, and don't truly illustrate the real different. Is this correct? If not, please help me understand why. Thanks.
Cheers! [link] [comments] |
My mediocre job may be teaching me bad habits. Any advice? Posted: 07 Dec 2017 06:40 PM PST TLDR: Rant about working in a three-man web development team that lacks all kinds of standards. Could I learn that much better in a different environment? Would I be able to get a job in one with my experience? WorkThe web development company I work for is kind of a side-project for the main parent organization, whose main business is completely the opposite of web development. My responsibilities include IT work for the main business (~30 people) as well as entry-level development work. It's my first programming job (been here ~1.5 years), and the "Web/IT" department is comprised of myself and two other guys. Let's call them Jim and Bob. Jim is my direct boss, and as far as I know, it's his first time managing anyone. He's a self-taught programmer, and has carved out a bit of a niche for himself as the CTO after building on what his predecessors left. A very bright guy who gets things done, but is a little stuck in his ways. He knows "his way" to build things, and so he builds things his way, regardless of lacking a coding standard and leaving some of what I think are structural irregularities in their place. I can't fault him too much for this style, as the man gets projects out the door, but I worry about the potential cracks I see in our products. He's open to trying to learn new practices, but only for a short while until it inevitably feels like he's having to relearn things he "already knows." Bob takes care of the majority of the IT problems, and much like Jim, does things the way he knows how. He's like the captain to my boss's colonel, as far as our rankings go. He's pretty knowledgeable about IT and has taught me a great deal, but is very fresh to back-end programming, maybe even more so than me. Bob is pretty good at styling pages, has a good visual eye for sites, and is a very nice guy, but, there are times where he talks out loud through the parts he doesn't understand (and sometimes the parts he does) so much to the point where it's distracting. On the other hand, since he's a talker, he makes up for it by being the salesman of the group and a very vocal part of fixing usability issues with our applications, e.g., UI and page organization decisions. I'm a 29 year old dude who decided to get an Associates degree in Computer Science/Web Dev through online community college courses after being unsatisfied with my undergrad arts degree. I feel like I lucked out getting this job since it seems like there are very few positions in this area that require little to no experience, and it always sounds like most places are laser-focused on GitHub portfolios, of which I have basically none. Jim is a good boss in that he lets me take way more time to complete tasks and read documentation/StackOverflow than I think he should be allowing. So it's not that I'm not appreciative of the opportunity that I've been given, it's just that I'm concerned for any future positions at other companies that I may hold or if I'm doing everything in my power to learn quickly enough. Bob, Jim, and I get on pretty well and have some common interests, but they have some pretty different political and world views. They're also a little older than I am. None of that is much of a problem, it's just harder to completely be myself around them. I've talked to very few people about programming, both in-person and online, since my associates courses required very little interaction with the other students, or even the professors. Regardless of this, I continue to read as much as possible online in order to improve, but can only do so much in a day. Towards the end of most 9-5 days, especially after Jim and Bob have left the office, I feel this overwhelming sense of dread wash over me since I feel like I haven't accomplished enough or that I'm not good enough at this stuff yet, or that I'm not doing enough to min/max my time in order to get better. I lose sleep over it and the little things that I think we could do to make our code better. I almost always feel like I need to study or do side projects when I get home, and part of the reason I stay after in the first place is so I'll have quiet time to do that. But, because of this dread feeling, I rarely do anything when I'm here later than Jim and Bob. Unless I have something I'm really focused on already, I just get on reddit, Facebook, Twitter, or something else to waste time. I only feel like wasting time because I feel so shitty about where I am in my career or overall progress as a programmer, and because I'm exhausted from what I've already done during the day. For a while, I was making overtime for staying after, but it felt like I was stealing from the company since I mostly wasn't getting anything done, and they've recently been nice enough to make me salaried. I waste too much thinking about whether I should be self-teaching or working on real work stuff, and I end up doing little bits of either or doing neither. The end result: I'm getting less done. Some specifics about our little company's coding practices:
For example, we use the CakePHP framework, version 1.3, which came out around 2004, and it's a lot of 1000 line controller functions that just do things in sequence. I'm not as worried about them, but the views are crazy looking and littered with long swathes of PHP. There's very little or no logic separated into the models, and no object-oriented anything, other than what makes up the framework itself. JavaScript usage is limited to jQuery, with most requests as AJAX calls back to a controller. I'm new enough that I don't even know where most of the security holes are, and so I assume they are everywhere. I do know that a lot of the benefits a framework provides are in its baked-in methods, and some of them are being used here, but most aren't. I've attempted to push Jim and Bob into the present towards using a much newer framework and newer version of PHP, at least. During that, I did a good amount of studying about Laravel and watched many Laracast videos (which are pretty great). I even bumbled around doing a couple of work projects using it, but the excitement level and willingness to change ended there for them. Jim took a relatively short look at it, got frustrated that he couldn't do things his way, and folded. My EducationAt ~2 years of schooling and ~1.5 of work experience, I know I'm still pretty new to programming, but it feels like I'm reading the same guides over and over, and too little of it is sinking in. For daily work, I'm able to edit and copy Jim's weird coding style, but it feels a lot like I'm adopting bad practices. On the positive side, I'm 100 pages into Code Complete 2 (Steve McConnell), and it has been fascinating so far. Although, all of the pre-construction steps (problem definition, architecture, software design, etc.) he talks about are more or less completely new to me. I want to develop problem-solving and algorithmic thinking techniques that are put forth by these types of learning materials, but it still feels like a lot of it is going in one ear and out the other, since I'm not using these practices every day. A little bit more whining:
ConclusionBased on what I've read, the answer to my problems is to "just do it more until you get it," and I don't disagree with that. I'm just so depressed most days because it feels like I'm being held back by this mediocre job, and by the time I get home, I'm too wiped to get back on the computer, and just end up staring at the TV.
If you made it this far, thanks for reading. I'm just going to post this word-vomit now. [link] [comments] |
How do I know that I am progressing? Posted: 07 Dec 2017 10:19 PM PST A lot of the time seems to be spent googling something that I've never come across, or have just forgotten. I occasionally feel like I'm not getting anywhere. I've heard that programmers are always googling, even the pros, but don't really know if that's true or not. [link] [comments] |
[C] Entire contents of char* array being overwritten Posted: 07 Dec 2017 06:05 PM PST I am working on a project for my Operating Systems class and i seem to be having an issue with writing to arrays. The project is a approximation of memory management techniques using a long array. Commands are taken in of the form REQUEST <name> <size> (ie REQUEST A 7) and I am following a firstfit algorithm. The first assignment goes off well, link, but the second one link overwrites the first one while writing it's own, and so on for third etc. Here is the part of my code where I assign and print everything. Thanks in advance! [link] [comments] |
How To Best Prepare For An Online Screening/Reviewing A Language's Features? Posted: 07 Dec 2017 09:31 PM PST Hey all, I have an online coding screening in a few days where I'll be expected to solve two problems under an hour-and-a-half time limit. I've elected to use Python for the screening. In practice I find that I can come up with solutions to the problems very quickly but have trouble implementing them, due to what I believe to be lack of familiarity with the language/standard library. I'll have to look up things like "how to remove a character from a string", "how to slice a string", even things like "else if syntax." Sometimes I find myself asking "does Python have a standard library method that does that" ? I'll be allowed to use documentation and standard libraries. I haven't been writing much code recently which is why I'm rusty. My question is what can I do to review the language (syntax, standard methods, etc.) in a timely manner so that I'm not looking so many things up? There's so many things built in to the language through the standard library and small nuances and I just don't know what would be useful to learn/review. [link] [comments] |
Help with SQL Injection Demonstration Web Page Posted: 07 Dec 2017 09:29 PM PST I want to create a site that demonstrates SQL injection through a live example. So far, I provided a web page with 2 forms (which I'll call form A and B respectively): 1 that will filter user input to prevent SQL injection, and 1 that will be completely unprotected against SQL injection. I have also created 2 MySQL databases for my web app. Let's call them database A and database B. Form A will open a connection to database A. Form B will open a connection to database B. For form B, I'm essentially allowing the user to do whatever they want to my database (Even ;-- DROP TABLE users is acceptable). However, is it possible for me to restrict the user so that their queries only affect a single database? I want to give them free reign over database B, but I don't want them to have any access to database A at all. Don't know if this is relevant, but I'm making the connection to the MySQL server using JDBC. For Form A: Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/database_A", "root", ""); For Form B: Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/database_B", "root", ""); [link] [comments] |
How to choose a technology and stop drifting? Posted: 07 Dec 2017 05:12 PM PST For four years, on and off, I've been learning various technologies. It started with Javascript/web, changed to iOS, then, as I began working through a CS degree, C/C++, and now I've started dabbling in Python and cloud stuff. I've gained some breadth but my depth is shallow, which has prevented me from creating real, usable and finished projects. Some of this drift is due to changing career goals: web developer, mobile dev, cloud/backend, aerospace/defense, etc. When something becomes attractive to me, I start down the path only to abandon it for something else. How do you "just pick something" and stick with it? Right now, playing with Angular, AWS, and python is fun, but some shiny thing will surely come along to tempt me in another direction, which gets me nowhere. [link] [comments] |
You are subscribed to email updates from learn programming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment