r/LearnToCode • • Aug 02 '23

2D to 3D using AI in Unreal Engine

Thumbnail
youtu.be
2 Upvotes

r/LearnToCode • • Apr 24 '17

There's a livestreamer on Twitch streaming learning Swift. More streamers should do this for fun.

Thumbnail
twitch.tv
2 Upvotes

r/LearnToCode • • Feb 11 '18

Simple JS Machine Learning library I've been working on whilst learning

Thumbnail drroach.github.io
1 Upvotes

r/LearnToCode • • Nov 19 '16

“It would be so nice if something made sense for a change.” - another blog post (this time about Rails) from a student of Makers Academy Remote - an intensive coding bootcamp.

Thumbnail
medium.com
1 Upvotes

r/LearnToCode • • Feb 03 '22

Why does it seem like every resource does this?

6 Upvotes

So I decided to teach myself programming. I've never been involved with computer science before, it's completely new.

I have started with the most basic resources I can find. However it always seems like whoever designed the course has very little idea what it's like coming in completely green.

Prigramiz.com goes from a simple introduction to wanting you to write a code to swap variable. I'm new I have no fucking clue, all it does is frustrate me and force me to use Google.

Why is this an appropriate way to teach? I would NEVER try to pass on a technical skill this way.

Is there any BETTER resources out there for someone completely new to tech?


r/LearnToCode • • Feb 16 '22

Restaurant Manager to Frontend Engineer in 10 Years with Joel Hernandez | Outside The Code EP1

Thumbnail
youtube.com
4 Upvotes

r/LearnToCode • • Feb 12 '22

Too old?

12 Upvotes

I will turn 51 next month. I’ve worked construction, factories, shipping/logistics, automotive industry, R&D lab technician and presently as an Automation/maintenance technician in the aerospace industry. I would consider myself somewhat tech savvy. I’ve just started learning to write code. It’s going well and find it very interesting. I consider myself a “life long learner” with a variety of hobbies(precision shooting, amateur radio, musician). How does the industry view older people entering the field?


r/LearnToCode • • Jan 19 '22

Auto sorting list

1 Upvotes

Hi there,

I have been searching for a way to automatically sort elements that are dragged into a new div. All I can seem to find are ways to sort the list manually by dragging a single element and placing it where you want.

What I want to have happen is the elements inside the div arrange themselves in ascending order.

<div id="test"> 
</div>

<div id="list">
    <div>item 1</div>
    <div>item 2</div>
    <div>item 3</div>
</div>

Lets say I drag the div elements (item 1, item 2, item 3) one at a time into the test div. If I drag them out of order I want to have them auto sort into ascending order again. Can anyone send me in the right direction?

Thanks!


r/LearnToCode • • Jan 30 '22

How to learn Coding if you allready understand Excel

2 Upvotes

Iam quite good at Excel. I still learn new stuff and there is a lot I dont know, but I understand the structure, functions, syntax and know how to solve problems. I would like to learn how to code and wanted to ask: which language or project would you recomend to have a smooth transition and build on the skill I allready have?


r/LearnToCode • • Feb 06 '22

How do you compute for angular spring physics for physics joints in game engines?

3 Upvotes

I'm working on fixing Godot's physics joints. Currently, it uses Euler angles and it doesn't help me in building active ragdolls for my game. I heard that using quaternions is the way to go. So I decided to write my own code to make it use quaternions instead. This is what I have working so far in my prototype in GDScript (c++ pending):

func _ready():
    baseBTOrig = body_a.global_transform.basis.inverse() * body_b.global_transform.basis

func _physics_process(delta):
    apply_rot_spring_quat(delta)


func calc_target_orientation(Abasis:Basis):

        #node B's actual initial Transform that follows node A around in             
        current global space
	var baseBTOActual = Abasis*baseBTOrig

	var qx = Quat(Abasis.x,rest_angle_x*PI/180.0)
	var qy = Quat(Abasis.y,rest_angle_y*PI/180.0)
	var qz = Quat(Abasis.z,rest_angle_z*PI/180.0)
	
	var qBTargRo = qz*qy*qx# Quaternion node B Target Rotation
	var BTargetBasis = Basis()
	BTargetBasis.x =  qBTargRo*baseBTOActual.x
	BTargetBasis.y =  qBTargRo*baseBTOActual.y
	BTargetBasis.z =  qBTargRo*baseBTOActual.z

	return Quat(BTargetBasis)
	

"""
Thanks to:
	DMGregory: https://gamedev.stackexchange.com/questions/182850/rotate-rigidbody-to-face-away-from-camera-with-addtorque/182873#182873
	and
	The Step Event: https://youtu.be/vewwP8Od_7s
	For the calculations
"""

func apply_rot_spring_quat(delta):# apply spring rotation using quaternion
	if Engine.editor_hint:
		return

	var bAV = Vector3()# Node B Angular Velocity
	var aAV = Vector3()# Node A Angular Velocity
	var bI    # Node B inverse inertia tensor
	var aI    # Node A inverse inertia tensor

	if body_b.is_class("RigidBody"):
		bAV = body_b.angular_velocity
		bI = body_b.get_inverse_inertia_tensor()
	else:
		bAV = Vector3(0.0,0.0,0.0)

	if body_a.is_class("RigidBody"):
		aAV = body_a.angular_velocity
		aI = body_a.get_inverse_inertia_tensor()
	else:
		aAV = Vector3(0.0,0.0,0.0)
		
        #Quaternion Node B Transform Basis
	var qBT = Quat(body_b.global_transform.basis)

	#Quaternion Target Orientation
	var qTargetO = calc_target_orientation(body_a.global_transform.basis) 

	var rotChange = qTargetO * qBT.inverse() #rotation change quaternion
	
	var angle = 2.0 * acos(rotChange.w) 
    
	#if node B's quat is already facing the same way as qTargetO the axis shoots to infinity
	#this is my sorry ass attempt to protect the code from it
	if(is_nan(angle)):
		
		if body_b.is_class("RigidBody"):
			body_b.add_torque(-bAV)
		if body_a.is_class("RigidBody"):
			body_a.add_torque(-aAV)
		return

        # rotation change quaternion's "V" component
	var v = Vector3(rotChange.x,rotChange.y,rotChange.z)        

	var axis = v / sin(angle*0.5)# the quats axis

	if(angle>PI):
		angle -= 2.0*PI

	#as node B's quat faces the same way as qTargetO the angle nears 0
	#this slows it down to stop the axis from reaching infinity
	if(is_equal_approx(angle,0.0)):
		if body_b.is_class("RigidBody"):
			body_b.add_torque(-bAV)
		if body_a.is_class("RigidBody"):
			body_a.add_torque(-aAV)
		return

	var targetAngVel = axis*angle/delta
			
	var tb_consolidated = (stiffnessB)*(bI*targetAngVel) - dampingB*(bAV)
	var ta_consolidated = -(stiffnessA)*(aI*targetAngVel) - dampingA*(aAV)

	
	if body_b.is_class("RigidBody") and body_b != null:
		body_b.add_torque(tb_consolidated)

	if body_a.is_class("RigidBody") and body_a != null:
		body_a.add_torque(ta_consolidated)

In short my computation is:

vec3 target_ang_vel = q_rotation_axis * q_angle / delta

vec3 angular_v_b = stiffness_b* inverse_inertia_tensor_b * target_ang_vel - damping_b * body_b.current_angular_velocity

vec3 angular_v_a = -stiffness_a* inverse_inertia_tensor_a * target_ang_vel - damping_a * body_a.current_angular_velocity

body_b.add_torque(angular_v_b)
body_a.add_torque(angular_v_a)

The problem is it spazzes out when the dampening and stiffness parameters are too high and the mass of either rigid body are too small.

Moreover, I tried attaching a long square bar with a mass of 50 on the other end of the joint (like an arm). It vibrated into the 4th dimension when I tried to make it twist and flex the arm upward:

rest_angle_x = -45
rest_angle_y = 0 
rest_angle_z = 45

stiffness_b = Vec3(5000)
stiffness_a = Vec3(5000)
dampening_b = Vec3(5000)
dampening_a = Vec3(5000)

I tried doing the same thing using Godot's default joint settings. Sure it wasn't rotating the way I wanted it to but it didn't go crazy like how mine does:
Generic6DOFJoint:

angular_spring_(xyz)/damping = 5000
angular_spring_(xyz)/stiffness = 5000

Am I missing something? am I doing something wrong? I don't know where to start looking for a solution for this. I'd appreciate all the help that I can get and it would be great if someone could please point me to the right direction.


r/LearnToCode • • Feb 03 '22

Frontend Interview Question and Answer with a FAANG Software Engineer - Rolling Dice | frontendeval

Thumbnail
youtube.com
1 Upvotes

r/LearnToCode • • Jan 11 '22

Frontend Interview Question and Answer with a FAANG Engineer - Multi-Step Form | frontendeval

Thumbnail
youtube.com
5 Upvotes

r/LearnToCode • • Jan 23 '22

Best Bootcamp to learn web-development & land a job for a noob?

Thumbnail self.webdevelopment
6 Upvotes

r/LearnToCode • • Jan 20 '22

Frontend Interview Question and Answer with a FAANG Software Engineer - Modal Overlay | frontendeval

Thumbnail
youtube.com
1 Upvotes

r/LearnToCode • • Jan 30 '22

Best coding languages to learn for game development.

1 Upvotes

r/LearnToCode • • Feb 08 '22

I made a discord community for software engineers (Focusing on GREAT resources)

3 Upvotes

Hi,

I daily share with my friends cool articles or books around software engineering such as frontend, backend, DevOps, system design, and computer science. This is a community that I created yesterday so it's not completed yet, but a week from now there will be so many high-quality resources that you may enjoy ⚡

Join now please 💜

https://discord.gg/2wApWXYc


r/LearnToCode • • Jun 14 '16

Need a career change. Should I enroll in a school for a degree? or just teach myself online?

3 Upvotes

I'm a 24 year old guy in NYC. I graduated in 2014 with a degree in Microbiology. Since then, I have been working in a cancer research lab. After working with a couple PhD students and post-docs, I am pretty turned off to the idea of pursuing a higher degree in my field, however, I have been content with my salary and benefits, and I have allowed myself to stagnate here for the last 2 years, while I slowly pay off student loans, and while my motivation to really change anything in my life has all but burned out.

That is until last Thursday, when my boss said the lab is shutting down, and I will be out of a job by the end of February 2017. I could go to another lab, and make just enough to keep my head above water and not enjoy any of it, or I could make a change while I'm still young and hopefully be happier.

I have always been creative. I like making things, fixing things. Tweaking tiny details to make something perfect. I think coding or computer programming would make me happy, and it certainly seems like something you can make a living with, one way or another.

My question is this. Having ZERO experience in the field, should I try and find (and pay) for a 2 year associates degree in computer science or computer programming, or even a bachelors degree? Or is it reasonable to think that I can just use all of the countless resources that are free online to get myself into this field, and make a lifelong career out of it.

tl;dr Need a new career path. I want to code. Should I pay to take classes at a university? or is it reasonable to believe that I can do it all using free resources online?


r/LearnToCode • • Mar 04 '18

Video Tutorials for CodeFights Arcade

Thumbnail
youtube.com
2 Upvotes

r/LearnToCode • • Jun 23 '16

Coding Tournament!

2 Upvotes

Hey guys, I wanted to let everyone know about this tournament that's going on.

Enter CodeSpells: CodeSpells is a game where you're a wizard in a sandbox world. In this world, unlike other games, you are not given spells. You do not unlock them. You create them yourself. You create them with code. CodeSpells uses Blockly and JavaScript. In-fact, they have an in-game editor for both languages. Likewise, as soon as you've finished coding your spell, it runs in-game without any wait.

Anyway, this tournament I spoke of. It's a PvP tournament against players and wizards in the game. There are three brackets to enter:

  • 1 v 1

  • 2 v 2

  • 3 v 3

CodeSpells is a great way to get into programming, and has motivated a lot of people to pick it up. I hope some of you find this interesting =)

For more info on the tournament, click here.

tl;dr: Coding PvP tournament in a wizard game where you use code to make your spells. More info here.


r/LearnToCode • • Oct 09 '17

Figuring out how I learn.

2 Upvotes

I want to learn how to code. I’m thinking of a basic language like SQL or HTML for starters & then move along from there.

I’ve been told that anyone can code, but you have to figure out how you individually learn.

Are there any good sites that can help me with that task?


r/LearnToCode • • Oct 13 '17

Does Sql work ok with python ?

1 Upvotes

I want to use python with sqlite - is this common or is it more likely php?


r/LearnToCode • • Dec 07 '23

Call for a pause on giant AI experiments?

2 Upvotes

We all remember back in March when influential figures like Elon Musk and Steve Wozniak called for a six-month pause on giant artificial intelligence (AI) experiments, sparking widespread discussions on ethical and practical concerns within the tech community. Despite the attention, the letter's impact on slowing AI research has been negligible.

Fast forward 6 months following the letter's initial publication, it's time to check in with those who are among the closest to the subject in question: developers. So, here's what we got:

  • 61% and 55% of architects and programmers, respectively, disagree or strongly disagree that Gen AI will surpass their skills and render their jobs obsolete

  • 80% of developers believe that generative AI will increase their potential and productivity at work

  • 80% of developers in their first year of developing software strongly agree that AI will be/is a gateway granting them access to new programming tools

Should we expect things to change in 2024?

Share your opinion here.


r/LearnToCode • • Dec 11 '23

Looking for someone to code with

6 Upvotes

Hey im mutt, just been learning to code. Just bee trying what i thought would be helpful do ive learned some SQL, HTML, CSS and ive been learning C atm but depression has been killing me and slowly me down from doing what i want. I just need a buddy to code with and learn things with. I dont need a teacher but i dont mind, i just wanna have a friend that i could have a scheduled time to hang and learn/do coding with


r/LearnToCode • • Nov 15 '23

Spark Effect in Unreal Engine

Thumbnail
youtu.be
1 Upvotes