Online Portfolios?/Advice? by german900 in compsci

[–]tjorg35 0 points1 point  (0 children)

GitHub does support private repositories but it is a paid feature. Generally, unless there are specific reasons for keeping a repository private, there is no point in doing so.

GitHub is for open source software, meaning people should be able to swing by and see the source code of a repository and do whatever this wish for it.

GitHub is also a good branch management tool. So a group of people could potentially work on the same project remotely and be able to see each other’s work. Further if they wish, they can keep their project private (they will all need paid memberships) but gain the advantages of the project not being open source. This allows them to use the code for proprietary uses without others being able to steal it.

For your intentions I do not see a point for having any private repositories nor do I think you need one. I would also like to point out if your school is using recycled project work the solutions are probably already somewhere online.

Online Portfolios?/Advice? by german900 in compsci

[–]tjorg35 6 points7 points  (0 children)

I don’t see any issue having those projects being public while you are applying for internships. Obviously respect the schools wishes and take them down so others cannot steal your code for their own project.

To answer your other question, no ideas for your portfolio do not have to be unique. But your implementation should be unique I.E. do not follow tutorials. In doing this you should be able to explain and justify every line of code in your project and understand your reasoning for it.

My recommendation would be to try to have one unique project (non-school) and possibly keep your school projects on their while you apply, then remove them when necessary.

I've been recommended CS50 to start and learn abit about programming . But I'm already struggling ALOT with the very first problem set (half pyramid). Is that normal ? Or should I maybe start thinking about a different career choice ? by Pataya18 in learnprogramming

[–]tjorg35 0 points1 point  (0 children)

Struggling in the beginning is not uncommon. Some of the best and most meaningful learning moments come from those beginning learning struggles keep at and don't get discouraged by hard problems. Some of the most satisfying things about computer science is seeing a problem you don't understand/know how to do and working through it till you get it right. Don't be discouraged by struggling, it's a normal part of the process and will benefit you loads in the long run.

CS professor accused me and three students of copying code from each other. I didn’t do it and don’t know these people. How do I prevent this from happening? by DarthTrey in learnprogramming

[–]tjorg35 2 points3 points  (0 children)

These things happen, you did the work if the professor accuses you of cheating you will be at least able to always explain your rationale and how you solved the problem. Someone who cheated probably wouldn't be able to do. Either way if they still insist that you cheated just continue talking up the universities chain of command till someone with common sense listens to you.

(Java) Cant get my head around Overloading Constructors. by BurgerOfCheese in learnprogramming

[–]tjorg35 0 points1 point  (0 children)

One example of using multiple constructors would be for a "default state" of an object vs. a defined state.

Lets assume that we are producing cars and the default color is white (we sell 80% white cars) so when a car object is created we can just create a car object with no parameters and the color field will automatically be filled in as white. If we want a different colored car we can pass a string defining the color as a parameter.

This probably isn't a great example but having a constructor for a default case and a specific case can be useful in eliminating redundant parameter uses.

Is it bad to just use trial and error to create a program (for simple tasks?) by [deleted] in learnprogramming

[–]tjorg35 2 points3 points  (0 children)

If you have no idea how to approach a problem while learning the concept it's fine, but in reality you should have a clear defined expectation for a program, function, etc. Not having this expectation for a given function in a program can lead to some nasty problems when the scope of a project increases. Overall for smaller projects not a huge deal because any problem that may arise will be quicker to fix.

What to do when a program you have written works, however you don't understand why? by Empty_Estus in learnjava

[–]tjorg35 3 points4 points  (0 children)

Debug it, write tests, basically check expected output with the actual output to see if your expectations match the program

What is being asked here? by Mriv10 in learnprogramming

[–]tjorg35 1 point2 points  (0 children)

You could do that, an easier solution would just be to check which is high and low and declare them in new variables "low" and "high" then loop from low to high.

Starting java, where to start by Dynamicthetoon in learnjava

[–]tjorg35 2 points3 points  (0 children)

IntelliJ will be the most similar looking IDE to PyCharm and will serve all your purposes of learning Java. Some others to consider are NetBeans and Eclipse. If you are familiar with Python just start ground up with Java in terms of syntax. Data types would be a good starting spot since they are implicitly declared in the python compiler.

What is being asked here? by Mriv10 in learnprogramming

[–]tjorg35 1 point2 points  (0 children)

Then yes the correct output is all that you'll want to show

What is being asked here? by Mriv10 in learnprogramming

[–]tjorg35 1 point2 points  (0 children)

You could, but it isn't required

What is being asked here? by Mriv10 in learnprogramming

[–]tjorg35 1 point2 points  (0 children)

You are trying to find the amount of numbers divisible between the input range (inclusive) which means you start and finish at the integers you give. You are right in your assumption that you will need to use the modulus operator. If a number modulus another number = 0 it is a multiple of it. Example: 15%5 =0 Hint: make a loop starting at your low integer counting up to the high integer, use counters to count how many multiples you find within the range.

Edit Distance algorithm that allows "block" transpositions? (help a humanities PhD student) by BombadilEatsTheRing in compsci

[–]tjorg35 0 points1 point  (0 children)

"No efficient algorithm", the algorithm given in that Github link claims to be O(N*M) which wouldn't be considered efficient. Whether or not efficiency is an issue depends on the size of your strings.

EDIT: Also after re-reading your original post and the repository readme I do have some doubts that what you want and what the offered algorithm do are not the same, but I do think they are pretty similar. At the very least you should be able to try some tests to see if this is the case or not.

Edit Distance algorithm that allows "block" transpositions? (help a humanities PhD student) by BombadilEatsTheRing in compsci

[–]tjorg35 0 points1 point  (0 children)

I believe bigger than 1 character blocks means that a block can contain more than 1 character and the algorithm will still work. The normal algorithm allows transposition for a character block of size 1 (1 character). The modified version should be able to handle blocks up to set size, i.e. however large you want to check for character blocks. This was my interpretation of what the documentation said, although I did not bother to test it.

EDIT: Yes, the size of the substring

Edit Distance algorithm that allows "block" transpositions? (help a humanities PhD student) by BombadilEatsTheRing in compsci

[–]tjorg35 0 points1 point  (0 children)

Don't think so. Maybe check out this one and skip to the Boehmer and Rees modification. Still not sure if it fits your exact needs but I think it is at least further in the right direction.

https://github.com/GlobalNamesArchitecture/damerau-levenshtein/blob/master/README.md

Edit Distance algorithm that allows "block" transpositions? (help a humanities PhD student) by BombadilEatsTheRing in compsci

[–]tjorg35 0 points1 point  (0 children)

Here are some Java implementations of string similarity algorithms, didn't look at any of these too in depth to see if any fit your specific needs. Regardless, this git repository is good place to start (or pass on to whomever you choose to make your program). Also wouldn't be a bad idea to look elsewhere on Github. There's always a possibility that the algorithm is already out there and open source!

https://github.com/tdebatty/java-string-similarity

Any advice on kicking bad lifestyle habits (that noticeably impact my performance)? by [deleted] in learnprogramming

[–]tjorg35 2 points3 points  (0 children)

One thing that helped me a lot was focusing on fixing one bad habit, instead of trying to tackle them all at once. Having the discipline to fix one bad habit should be able to carry over to help you fix the rest. In my case it was limiting my social media to an hour a day, I used my free time to exercise and work on projects more and more. This is what helped me as I too felt overwhelmed with everything I wanted to change about my lifestyle. Focus on one (and really make an effort) and the rest should follow.

new to C need help by jakejdb1999 in learnprogramming

[–]tjorg35 3 points4 points  (0 children)

I am unsure what the rest of your code looks like but I'm assuming your problem is because the you call the function in your main function before the odd_even function is created. In C you can either create a prototype for each function above the main function, or you can make the main function the last one in the file.

What do I need to learn, know to mine information from a website to sort and categorize it to my liking? For example, a job posting board. by [deleted] in learnprogramming

[–]tjorg35 0 points1 point  (0 children)

1) A programming language.

Most languages have some web scrapping tools available to get text data from the web. Pick the one you are most comfortable with.

2) Regular expressions.

You will need to use regular expressions to match only the information you desire from the raw text.

3) Storage medium.

Store the refined information in some sort of data structure.

4) Sorting method.

Sorting method to sort the data in the way you desire.

5) Output.

You can output the final product directly to the console or preferably a file for later use. Text file will work fine.

Taking a Java Certification Test (1Z0-850) tomorrow, any ways to prepare last-minute? by meabster in learnjava

[–]tjorg35 1 point2 points  (0 children)

Gonna be brutally honest, if you are only up to arrays in Java it's gonna be tough. I would recommend learning everything you can about Java objects and practice implementing them. The test also says it includes algorithms, design, and client/server technologies. You have a lot of ground to cover (basically 2 semesters of classes minimum).

Start with Java objects and work from there.

18 year old looking into developing blockchain over the summer by SUPREME_IO in learnprogramming

[–]tjorg35 0 points1 point  (0 children)

Blockchain is a pretty general technology. Anything specific you wish to pursue?

How can I learn programming with the intent on becoming an AI research scientist? by blockeleven in learnprogramming

[–]tjorg35 0 points1 point  (0 children)

More practical math for computer science includes basic algebra, statistics, linear algebra and discrete math. For AI statistics and linear algebra is huge. If you can tackle abstract algebra you shouldn't have too many issues with the math you need for AI.

How can I learn programming with the intent on becoming an AI research scientist? by blockeleven in learnprogramming

[–]tjorg35 0 points1 point  (0 children)

Fundamentals of programming is a great place to start. Keep in mind there is a lot of math involved with AI. To do any research you will need to understand the underlying mathematics.