Learn Programming

155 readers
1 users here now

A place to learn programming.
Share free resources here.

Ask questions on heapoverflow.ml

Python docs (tutorial)
Javascript docs (node)
Hard challenges (Project Euler)

founded 2 years ago
MODERATORS
1
 
 

Most introductions to unit testing give very simple examples of functions that simply receive some arguments and produce a result. However a lot of software has to read input from external sources, such as from the internet, from the file system, or from the user during its execution. How does one write tests for such software?

For simple software that only reads a few files from the file system, I imagine can be tested by writing some files for the test to give to the tested program, but what if it becomes more complex? Or what if you are trying to test a web scrapper for a website, would the tests run a web server and simulate the targetted website? Or for the GUI, how would one test that the user can see what they are supposed to see, when they click a certain way at a certain time?

Maybe the parts that read the data shouldn't be tested and only the functions that code relies on should be tested? I don't know.

2
 
 

If you are a dev looking to crush some bugs and make some money or an OSS project that needs some dev help, hop on in! [email protected]

3
 
 

Hi! I'm a self-taught novice programmer trying to write a macro in javascript for ImageJ. I've built a program that I think works, but trying to debug it without a proper debugger has been hell. I'm a hair away from just giving up and rewriting the whole thing in the program's native macro language. I looked online and it seems like I should be able to set up a debugging environment in Visual Studio Code, but I couldn't find any guide for doing that specifically for ImageJ. I use Visual Studio Code to write my javascript, but any advice on any platform or even just what I need to find to get started would be helpful. Thank you!

4
 
 

via HN

5
 
 

cross-posted from: https://lemmy.ml/post/520617

I wanted to start learning Java's Spring Framework and Spring Boot. Coming from Node.JS, I found this article to be an amazing introduction to Spring's concepts.

6
 
 

I've been working through the homework and feeling good. I think I want to take the first exam on Oct 1. Anyone done this before? I'm successfully getting through homework, but looking for tips on what else I can do to prepare to successfully pass the exam.

Although it's free...I already took the morning off from my hourly job to take the exam...so...I really want, not just to pass, but really kill it!

7
8
 
 

This tutorial will show you How to install Java (OpenJDK) on a Raspberry Pi running the newest Raspbian OS.

9
 
 

Learn the math foundations you need to excel at computer science!

(Click "courses" at the top)

10
1
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

The "holy bible" of C programming. (I recommend you download it)

Mirror: http://math.ecnu.edu.cn/~jypan/Teaching/ParaComp/books/The%20C%20Programming%20Language%202nd.pdf

11
 
 

Harvard lecture series

12
 
 

By University of Helsinki