Jump to content

  • Log In with Google      Sign In   
  • Create Account

L. Spiro

Member Since 29 Oct 2003
Offline Last Active Today, 10:13 AM

Posts I've Made

In Topic: Coding-Style Poll

Today, 07:50 AM

that being said, it sounds like you've been hired to produce code that conforms to certain formats and coding conventions. it would probably be a good idea if you just swallowed the bitter pill and wrote their ugly code for them. and be thankful you can define your own saner conventions for your own projects.

Opposite.
We are defining new standards and I am on the committee.
As for me, one of my policies is that happy coders are more productive coders, and one way to make unhappy coders is to make them use a style they dislike a lot.
A coding-style guideline should not be overly restrictive, especially unnecessarily. But the boundary between consistent coding and “comfortable dissonance” is not an easy line to draw.

This poll is really as straightforward as it sounds—no hidden motives about getting pushed into a style I don’t like etc.
The more topics I know that people consider “personal” the better I can consider where we should give people a “personal comfort” pass weighed against the clarity/consistency of the resulting code base.


L. Spiro

In Topic: A question about Epoch

19 September 2016 - 08:31 AM

What language is this? It would be polite to mention it somewhere.

EDIT: Oh, "Epoch" is a programming language???

A language made by ApochPiQ over the last few years.

Seems mature now.

 

 

L. Spiro


In Topic: C++ Going Beyond Basics

13 September 2016 - 04:22 AM

I learned by doing and working in small steps up.

 

Besides “Hello world,” my first program was a “game” in which the computer chose a number and you had to guess it.

I moved up a single step by adding branching logic to make the computer insult you in various ways for getting it wrong.

I moved up a single step by adding a loop to keep the game going rather than halting after 1 pass.

 

These projects were designed for me to learn the basics.

 

Every project is designed to push me to learn something new.  Each project was the next step up from the previous with something new that I had not explored or understood yet.

 

There is nothing mysterious about the process.  Do something new in a project, learn, and repeat.

 

 

L. Spiro


In Topic: Faster Sin and Cos

12 September 2016 - 02:16 AM

It’s possible if I have time.

I am in the middle of writing a blog post about sin() and cos() at the moment and it is going into a lot of detail (more than I originally planned).

I might include a note about your my_atan(), and possibly exp() and some others.  Did you come up with the original code?

 

 

L. Spiro


In Topic: Faster Sin and Cos

10 September 2016 - 02:16 PM

Then you may find these constants more to your liking:
1.00022506713867187500f 0.324211299419403076172f 0.0511969886720180511475f


L. Spiro


PARTNERS