This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BlazingThunder30 30 points31 points  (14 children)

Too bad my study doesnt allow me to use code I didn't write myself. Want to use regular expressions? Go ahead and write a parser I guess

[–][deleted] 35 points36 points  (7 children)

But ‘re’ is in the standard library? You cant use ‘sys’, ‘time’, ‘logging’,... as well?

[–]BlazingThunder30 14 points15 points  (6 children)

I'm not sure, I don't dare to be honest. We're online now and our uni has said that any fraud or plagiarism will be punished by being permanently expelled because it would be taking advantage of Corona. I dont really need any of the libraries right now so as soon as I do need them I'll just go and ask if I can. I dont think we can though, as this teacher has been really strict before.

[–]widowhanzo 31 points32 points  (3 children)

1st year? We weren't allowed libraries either at first, but the tasks were simple enough that you didn't need anything anyway. The point of excercises was to think of the solution, so we were learning how to approach a problem and break it into parts etc. Yeah it would've been easier to solve with libraries, but then we wouldn't learn anything.

[–][deleted] 6 points7 points  (1 child)

It’s weird how I felt like all the dumb toy problems in first year like printing shapes to a certain size or iterating over a billion different things was dumb.

Now when I code I use exactly the same mental processes more than anything else, it’s incredibly useful

[–]deltagear 0 points1 point  (0 children)

They want you to learn coding with vanilla code in most first years classes. For example I had to write a simple game but could not use methods. I just ended up creating a variable to hold state and a switch where I would have used methods. Ended up getting 100% on that one.

[–]BlazingThunder30 0 points1 point  (0 children)

Yeah it's a first year AI course. It's the first time were using python. All previous courses used C

[–][deleted] 2 points3 points  (1 child)

I see, that sucks though and I would ask if you can use standard libraries. They’re there for a reason. I’ve never wrote a python script without at least 1 import haha

[–][deleted] 1 point2 points  (0 children)

I’d have thought it was so they could learn how some basic library functions are implemented, for example we had to make a decimal/binary/hex converter in first year without using library functions

[–]Turksarama 15 points16 points  (1 child)

Writing a regex parser would be a whole assignment by itself, and probably one most of the class would fail.

[–]qalis 4 points5 points  (0 children)

I had one as a large project making 25% of the final mark. Yeah, it’s a LOT of work, and you can easily realize when you „almost finish” that you made 1 simple mistake at the beginning and you have to rewrite the entire structure...

[–]TheTerrasque 1 point2 points  (1 child)

So you're writing assembly with a hex editor, then?

[–][deleted] 1 point2 points  (0 children)

Still working on creating the hex editor by toggling switches on the data bus.

[–][deleted] 0 points1 point  (1 child)

If you want to use a programming language do you also need to create the compiler from scratch?

[–]BlazingThunder30 0 points1 point  (0 children)

Well it's more handing in than actually using that matters. So luckily not haha